Skip to content
Myr

Try to keep the header too if content-type is application/x-www-form-urlencoded

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by ayanamist · committed by ayanamist · parent 46ff4b3 · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:requests/auth.py+2 added-1 removed
94 unmodified lines
95 r.url, r.headers, _ = self.client.sign(96 unicode(r.full_url), unicode(r.method), None, r.headers)97 elif decoded_body != None and contenttype in (CONTENT_TYPE_FORM_URLENCODED, ''):98 # Normal signing99 if not contenttype:99 r.headers['Content-Type'] = CONTENT_TYPE_FORM_URLENCODED100 r.headers['Content-Type'] = CONTENT_TYPE_FORM_URLENCODED101 r.url, r.headers, r.data = self.client.sign(102 unicode(r.full_url), unicode(r.method), r.data, r.headers)103 else:104 _cond = False
278 unmodified lines