We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98b1b3f commit 67a9d79Copy full SHA for 67a9d79
stackslib/src/net/http/mod.rs
@@ -180,7 +180,7 @@ impl FromStr for HttpContentType {
180
Ok(HttpContentType::Bytes)
181
} else if s == "text/plain" || s.starts_with("text/plain;") {
182
Ok(HttpContentType::Text)
183
- } else if s == "application/json" {
+ } else if s == "application/json" || s.starts_with("application/json;") {
184
Ok(HttpContentType::JSON)
185
} else {
186
Err(CodecError::DeserializeError(format!(
0 commit comments