gerlowskija commented on PR #1903: URL: https://github.com/apache/solr/pull/1903#issuecomment-1726301468
> I have tried the POST request without Content-type header, and it returns 415 Unsupported Media Type. Why I am saying this? Because as per our last discussion, It supposed to work without this header and hence, we removed it from documentation. Do you have a pointer to that discussion, by chance? I believe you if that's what I said, but maybe there was surrounding context that I should've made explicit or it was in some exceptional case? In general, I think we should allow users to skip the `Content-type` header when there is no request-body. But if a user is providing content, requiring `Content-type` seems reasonable IMO. It's a pretty standard practice in HTTP APIs. Maybe we could add some "best guess" attempt to try to determine the content type (I know I've seen code like this elsewhere in Solr, will have to look that up...). But that can be handled independent of this ticket IMO -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org