Comment 4 for bug 1641239

Revision history for this message
Colin Nolan (colin.nolan) wrote :

To follow up on Josh's comment, we have noticed the failure only occurs with Python 3 (tested with 3.5.2 and 3.6.0) but not Python 2.7.10.

Looking further into the issue, we found that the client is not sending both of the Content-Type headers. Instead the (non-deterministic) iteration through the headers by the underlying `requests` library, which converts the header name to a string, leads to the last Content-Type value in the iteration being used:
https://github.com/kennethreitz/requests/blob/master/requests/models.py#L445