Skip to content

Commit

Permalink
fix: allow application/json-rpc http content type (#1277)
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-starkware authored Jan 18, 2024
1 parent e637805 commit ae9e612
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/src/transport/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ pub fn is_json(content_type: Option<&hyper::header::HeaderValue>) -> bool {
content.eq_ignore_ascii_case("application/json")
|| content.eq_ignore_ascii_case("application/json; charset=utf-8")
|| content.eq_ignore_ascii_case("application/json;charset=utf-8")
|| content.eq_ignore_ascii_case("application/json-rpc")
|| content.eq_ignore_ascii_case("application/json-rpc;charset=utf-8")
|| content.eq_ignore_ascii_case("application/json-rpc; charset=utf-8")
})
}

Expand Down

0 comments on commit ae9e612

Please sign in to comment.