Skip to content

Commit

Permalink
Use standard response Content-Type application/json
Browse files Browse the repository at this point in the history
  • Loading branch information
sisou committed Nov 22, 2024
1 parent a089737 commit 3a9da4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ impl<D: Dispatcher> Server<D> {

let response = http::response::Builder::new()
.status(200)
.header("Content-Type", "application/json-rpc")
.header("Content-Type", "application/json")
.body(data.as_bytes().to_owned())
.unwrap(); // As long as the hard-coded status code and content-type is correct, this won't fail.

Expand Down

0 comments on commit 3a9da4d

Please sign in to comment.