You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 18, 2020. It is now read-only.
We have had a lot of trouble where people will send no content-type or
simply 'application/json' and request would fail with 415 Unsupported
Media Type. Without knowing where to look, the error looks quite
unexpected and could give a lot of headache. This commit does two
changes:
- It slightly modifies the 'Accept' instance to use 'contentTypes'
instead of 'contentType'. The latter is defined from the former by
simply taking the head of the list returned by 'contentTypes', which in
our case is 'application/json;charset=utf-8'
- It provides a default content-type 'application/json' when no
content-type is provided
0 commit comments