This is a bug in requests/urllib3. https://github.com/kennethreitz/requests/issues/749#issuecomment-19284753