Commit Graph

2217 Commits

Author SHA1 Message Date
Remi Rampin 965ada6f66 Fix parse_header_links on empty header 2017-08-16 22:10:20 -04:00
Cory Benfield a3d7cf3f27 v2.18.4 2017-08-15 14:22:52 +01:00
mgasvoda e36083b89c Adding space after colon 2017-08-11 16:19:43 -04:00
mgasvoda 308343508b Removing trailing whitespace 2017-08-11 16:14:13 -04:00
mgasvoda ba21d14976 Improving message formatting 2017-08-11 16:12:36 -04:00
mgasvoda cee8fae65e Adding header name to exception
Adds the name of the header to the invalid header exception raised on TypeError.
2017-08-11 15:37:57 -04:00
Cory Benfield 7c67c4adf9 v2.18.3 2017-08-02 14:22:44 +01:00
Cory Benfield 4f49f6b3ed Correctly raise SSLError from urllib3. 2017-07-29 12:12:11 +01:00
Alex Chan 39b121d791 Add idna version info to requests.help 2017-07-27 21:33:42 +01:00
Alex Gaynor 2629c0906e Merge branch 'master' into patch-2 2017-07-27 11:19:32 -04:00
Mark Szymanski e2f5a135c3 remove legacy super() call 2017-07-26 19:21:45 -05:00
jonathan vanasco 667896c557 some docs on request redirect detection 2017-07-26 15:32:07 -04:00
Bruno Alla b77c1a3deb Correct urllib3 compatibility comment
So that it's in line with the code. I saw the warning raised recently and had to dive into the code for exact compatibility, but I stopped after reading the comment rather than the code. 
Maybe a better solution would be to surface the supported versions in the warning, but I see it was changed recently in https://github.com/requests/requests/pull/4144/
2017-07-26 10:23:01 +01:00
Cory Benfield 6cc891fd32 v2.18.2 2017-07-25 16:21:48 +01:00
Alex Muller d8c2fdf92f Use 'prefix' instead of 'key' in session docstring
This commit makes the API docs more clear. The 'key' is an
implementation detail.
2017-07-20 10:06:34 +02:00
Nate Prewitt f6e07bb27f fix OPENSSL_VERSION_NUMBER check on Python2.6's ssl module 2017-07-03 17:21:56 -06:00
Alex Gaynor c054a722bb Removed legacy fallback for python3.2 2017-06-25 12:51:15 -04:00
Cory Benfield 51de61f914 v2.18.1 2017-06-14 18:50:53 +01:00
Cory Benfield d93b37cee7 Prepare v2.18.0 2017-06-14 16:43:40 +01:00
Justin Mayhew c6a6347156 Remove exec permission from files that shouldn't have it 2017-06-10 20:38:45 -03:00
mlcrazy 613f61d77c Merge remote-tracking branch 'upstream/master' 2017-06-09 14:32:27 -04:00
mlcrazy 1d7fd6c8b3 Fixes error swallowing in set_environ 2017-06-09 14:10:47 -04:00
JiuLi Gao 22d12b0501 typo 2017-06-09 16:56:14 +08:00
Nate Prewitt d8e2367809 convert version compatibility checks to warning 2017-06-08 15:21:25 -06:00
Ed Morley 4847f5b8cd Allow Requests.Response to be used as a context manager
This saves having to wrap the call to requests with
`contextlib.closing()`, allowing it to be used directly in a
`with` statement, like so:

```
with requests.get('http://httpbin.org/get', stream=True) as r:
    # Do things with the response here.
```

Fixes #4136.
2017-06-06 23:30:47 +01:00
Felix Yan 0abb69b1cb Fix a typo: verison -> version 2017-06-06 12:01:41 +08:00
kennethreitz d78ec90e7b cleanup utils.py 2017-05-29 23:04:45 -04:00
kennethreitz 04ed1e5122 cleanup sessions.py 2017-05-29 23:02:23 -04:00
kennethreitz 33619268f9 cleanup models.py 2017-05-29 23:00:09 -04:00
kennethreitz e5894e99b7 improve flake8 help.py 2017-05-29 22:58:01 -04:00
kennethreitz 6495190b00 cleanup help.py (flake8) 2017-05-29 22:55:08 -04:00
kennethreitz 5b363d1a57 improve line continuations for flake8 2017-05-29 22:54:23 -04:00
kennethreitz f6a4ab02da fix empty lines for flake8 2017-05-29 22:44:33 -04:00
kennethreitz 5fa4e74d61 fix flake8 indent error 2017-05-29 22:43:12 -04:00
kennethreitz e55d3d0658 fix spaces in api.py 2017-05-29 22:40:37 -04:00
kennethreitz 7c3861a322 fix flake8 for EOF in __init__.py 2017-05-29 22:40:09 -04:00
kennethreitz 7c2618eb82 flake8: import statement improvements 2017-05-29 22:37:43 -04:00
kennethreitz 5091c15bd7 v2.17.3 2017-05-29 17:54:15 -04:00
kennethreitz dcb8277975 v2.17.2 2017-05-29 17:52:03 -04:00
Ryan Pineo 1278ecdf71 Fix requests.packages not having package attributes
Fixes #4104
2017-05-29 17:27:10 -04:00
kennethreitz 2d763c90ae v2.17.1 2017-05-29 15:59:00 -04:00
Markus Unterwaditzer 588e8f7f64 Preserve identity of unbundled deps
Fix #4102
2017-05-29 21:41:59 +02:00
kennethreitz 916d171f2b Merge branch 'master' of github.com:kennethreitz/requests 2017-05-29 13:17:57 -04:00
kennethreitz 3857431159 v2.17.0 2017-05-29 13:17:49 -04:00
kennethreitz 4ad4670583 Merge pull request #4099 from requests/requests-namespace
Requests namespace
2017-05-29 13:15:20 -04:00
Benjamin Congdon 86f8cb8a35 Remove session redirect cache 2017-05-29 09:53:24 -07:00
kennethreitz 7f14db17c8 new requests namespace 2017-05-29 12:11:43 -04:00
kennethreitz 16c8241a81 v2.16.5 2017-05-28 00:35:36 -04:00
kennethreitz 8b5fa606ec improvements to help utility 2017-05-27 23:51:22 -04:00
kennethreitz 0ae8524e3b v2.16.4 2017-05-27 16:57:50 -04:00