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 bf2b2cf commit 94e5022Copy full SHA for 94e5022
src/handlers/http/ingest.rs
@@ -282,10 +282,17 @@ where
282
)));
283
}
284
285
+ } else {
286
+ return Err(PostError::Invalid(anyhow::anyhow!(
287
+ "Unsupported Content-Type: {}. Expected application/json or application/x-protobuf",
288
+ content_type
289
+ )));
290
291
292
None => {
- return Err(PostError::Header(ParseHeaderError::InvalidValue));
293
294
+ "Missing Content-Type header. Expected application/json or application/x-protobuf"
295
296
297
298
0 commit comments