Skip to content

Commit

Permalink
Set content type of digest responses to `application/vnd.opentimestam…
Browse files Browse the repository at this point in the history
…ps.v1`

This is what the OTS clients say they accept. So we should give them it.
  • Loading branch information
petertodd committed Feb 17, 2025
1 parent 92531d6 commit fd2db20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async fn do_post_digest(
let stamp = stamp.serialize();
Ok(Response::builder()
.status(StatusCode::OK)
.header(http::header::CONTENT_TYPE, "application/octet-stream")
.header(http::header::CONTENT_TYPE, "application/vnd.opentimestamps.v1")
.body(Full::new(Bytes::from(stamp)))
.unwrap())
},
Expand Down

0 comments on commit fd2db20

Please sign in to comment.