Conversation
|
@DmitryNikonov JSON API specification describe a content negotiation more strict than you expect. Look at Content Negotiation.
Anyway, look at python-mimeparse. There is a |
PR changes don't affect Content-Type header.
To be clear, I'm still not sure if there's a contradiction with what I wrote in the oppost. Specs say that server MUST reject a request with You may also look at that discussion on the same topic. |
|
@DmitryNikonov Fixed in 0.36.0. Thank you! |
|
@DmitryNikonov Build was failed, but I'll fix it soon. |
|
Thank you very much! |
Allow to sent requests with
Acceptheader that contains more than one media types as long as it containsapplication/vnd.api+jsonor*/*media type.Also allow to use
*/*media type with parameters which is required for properOPTIONSrequests handling is some cases.For example, Firefox generates
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8Acceptheader for that kind of requests.