Account for content type being included twice#114
Conversation
Chrome appears to be providing content type twice sometimes, this results in
load_json_body not being called.
Content-Type: application/json, application/json; charset=utf-8
|
Could you elaborate on how did you encounter this issue? We encountered a similar issue with graphene-django earlier graphql-python/graphene-django#1404. Not sure if the two issues are related but would be nice to know the root cause of this if possible. |
Our FE code requested with headers Content-Type and separately content-type. Chrome combines and sends as one. |
This was exactly the issue we had too. We fixed the code in I think in this case the best solution if possible is changing the front end code to specify only Right now I'm reluctant to accept this PR. The spec for media types in |
|
Spec is one thing, ergonomics about how developers use you library is another. I'm closing. |
Chrome appears to be providing content type twice sometimes, this results in load_json_body not being called.