Skip to content
Myr

A cleaner and more complete fix for auth/redirects

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

authored by David Fischer · committed by David Fischer · parent eaf1264 · Browse files · 1 file+2 added−2 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−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:requests/models.py+2 added-2 removed
94 unmodified lines
95 #: content and metadata of HTTP Response, once :attr:`sent <send>`.96 self.response = Response()9798 #: Authentication tuple to attach to :class:`Request <Request>`.99 self._auth = auth100 self.auth = auth_dispatch(auth)101102 #: CookieJar to attach to :class:`Request <Request>`.103 self.cookies = cookies
133 unmodified lines
237 files=self.files,238 method=method,239 # data=self.data,240 # params=self.params,240 auth=self.auth,241 auth=self._auth,242 cookies=self.cookies,243 redirect=True,244 config=self.config245 )
92 unmodified lines
338339 r = auth_func(self, *auth_args)340341 self.__dict__.update(r.__dict__)341 self.auth = auth_args342343 # Build the Urllib2 Request.344 req = _Request(url, data=data, headers=headers, method=self.method)345
176 unmodified lines