Skip to content

Commit debef52

Browse files
authored
Merge pull request #2081 from Kobzol/json-content-header
Return JSON content type in Zulip webhook responses
2 parents b19e02c + 7b2e9f8 commit debef52

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)