Skip to content

Commit 7b2e9f8

Browse files
committed
Return JSON content type in Zulip webhook responses
I suspect that this might have caused the encoding problems.
1 parent b19e02c commit 7b2e9f8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ async fn serve_req(
155155

156156
return Ok(Response::builder()
157157
.status(StatusCode::OK)
158+
.header("Content-Type", "application/json")
158159
.body(Body::from(triagebot::zulip::respond(&ctx, req).await))
159160
.unwrap());
160161
}

0 commit comments

Comments
 (0)