Skip to content
Myr

Change variable name "_cond" -> "_oauth_signed".

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

authored by ayanamist · committed by ayanamist · parent aded42f · Browse files · 1 file+3 added−3 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+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:requests/auth.py+3 added-3 removed
85 unmodified lines
86 # if files are present the request will not have87 # Content-type: x-www-form-urlencoded. We guess it will have88 # a mimetype of multipart/form-data and if this is not the case89 # we assume the correct header will be set later.90 _cond = True90 _oauth_signed = True91 if r.files and contenttype == CONTENT_TYPE_MULTI_PART:92 # Omit body data in the signing and since it will always93 # be empty (cant add paras to body if multipart) and we wish94 # to preserve body.
5 unmodified lines
100 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 = False105 if _cond:104 _oauth_signed = False105 if _oauth_signed:106 # Both flows add params to the URL by using r.full_url,107 # so this prevents adding it again later108 r.params = {}109
273 unmodified lines