mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-12-20 09:06:33 +00:00
Set the correct content type for the ActivityStream responder
This commit is contained in:
parent
3fe2625e86
commit
ea29dd91dc
1 changed files with 3 additions and 1 deletions
|
@ -69,7 +69,9 @@ impl<T> ActivityStream<T> {
|
|||
|
||||
impl<'r, O: Object> Responder<'r> for ActivityStream<O> {
|
||||
fn respond_to(self, request: &Request) -> Result<Response<'r>, Status> {
|
||||
serde_json::to_string(&self.0).respond_to(request)
|
||||
serde_json::to_string(&self.0).respond_to(request).map(|r| Response::build_from(r)
|
||||
.raw_header("Content-Type", "application/activity+json")
|
||||
.finalize())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue