diff options
| author | Kenneth Reitz <me@kennethreitz.org> | 2017-05-26 21:17:13 -0400 |
|---|---|---|
| committer | Kenneth Reitz <me@kennethreitz.org> | 2017-05-26 21:17:13 -0400 |
| commit | dfd667df96f9d8102100fdf85292e6dbf4b4e22e (patch) | |
| tree | 1d671f7472a57d7dbf85d22a176f9b95fcb671fe /requests/models.py | |
| parent | f41560c5d46e8cbb8d8f741b2f7d2da29a9d6b94 (diff) | |
| download | python-requests-dfd667df96f9d8102100fdf85292e6dbf4b4e22e.tar.gz | |
who wrote this shit
Diffstat (limited to 'requests/models.py')
| -rw-r--r-- | requests/models.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/requests/models.py b/requests/models.py index 740143b8..6018d27c 100644 --- a/requests/models.py +++ b/requests/models.py @@ -711,15 +711,17 @@ class Response(object): @property def is_permanent_redirect(self): - """True if this Response one of the permanent versions of redirect""" + """True if this Response one of the permanent versions of redirect.""" return ('location' in self.headers and self.status_code in (codes.moved_permanently, codes.permanent_redirect)) def next(self): + """Returns a PreparedRequest for the next request in a redirect chain, if there is one.""" if self.is_redirect: return self._next + @property def apparent_encoding(self): - """The apparent encoding, provided by the chardet library""" + """The apparent encoding, provided by the chardet library.""" return chardet.detect(self.content)['encoding'] def iter_content(self, chunk_size=1, decode_unicode=False): |
