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 6f21cba commit b582d9dCopy full SHA for b582d9d
src/handlers/http/ingest.rs
@@ -291,10 +291,17 @@ where
291
)));
292
}
293
294
+ } else {
295
+ return Err(PostError::Invalid(anyhow::anyhow!(
296
+ "Unsupported Content-Type: {}. Expected application/json or application/x-protobuf",
297
+ content_type
298
+ )));
299
300
301
None => {
- return Err(PostError::Header(ParseHeaderError::InvalidValue));
302
303
+ "Missing Content-Type header. Expected application/json or application/x-protobuf"
304
305
306
307
0 commit comments