| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | The library raises NoneType error when file-pointer (fp) resolves to None. | Rajiv Mayani | 2018-05-17 | 1 | -1/+5 |
| | | | | | | | | | | | | | | >>> from requests import post >>> r = post("https://example.com", files={"file-name": None}) However, when a param value or json field is None they are not included in the request body. >>> from requests import get >>> r = get("https://example.com", params={"file-name": None}) >>> r.request.url This commit makes the beahviour consistent for files. | ||||
| * | Clarify that Response.ok will *only* return True/False | Alex Chan | 2017-11-20 | 1 | -2/+2 |
| | | |||||
| * | remove legacy super() call | Mark Szymanski | 2017-07-26 | 1 | -2/+0 |
| | | |||||
| * | Allow Requests.Response to be used as a context manager | Ed Morley | 2017-06-06 | 1 | -0/+6 |
| | | | | | | | | | | | | | | 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. | ||||
| * | cleanup models.py | Kenneth Reitz | 2017-05-29 | 1 | -4/+6 |
| | | |||||
| * | new requests namespace | Kenneth Reitz | 2017-05-29 | 1 | -2/+2 |
| | | |||||
| * | fix models.py | Kenneth Reitz | 2017-05-26 | 1 | -7/+1 |
| | | |||||
| * | fix models.py | Kenneth Reitz | 2017-05-26 | 1 | -5/+6 |
| | | |||||
| * | remove Request.send(session) | Kenneth Reitz | 2017-05-26 | 1 | -6/+2 |
| | | |||||
| * | who wrote this shit | Kenneth Reitz | 2017-05-26 | 1 | -2/+4 |
| | | |||||
| * | API improvements | Kenneth Reitz | 2017-05-26 | 1 | -0/+8 |
| | | |||||
| * | Remove some unused imports. | Chris Gavin | 2017-04-25 | 1 | -2/+2 |
| | | |||||
| * | Fixes DeprecationWarnings in Python 3.6 due to invalid escape sequences. ↵ | Ruben Dura Tari | 2017-04-05 | 1 | -1/+1 |
| | | | | | Fixes #3954 | ||||
| * | Update docstrings for Response.__{bool,nonzero}__ | Ian Cordasco | 2017-02-16 | 1 | -2/+14 |
| | | | | | | Like the docstring added to Response.ok these were misleading and vaguely incorrect. Better to be explicit than implicit. | ||||
| * | Correct docstring for Response.ok | Ian Cordasco | 2017-02-16 | 1 | -1/+7 |
| | | |||||
| * | added docstring for response.ok property | Mislav Cimperšak | 2017-02-16 | 1 | -0/+1 |
| | | |||||
| * | lazily load idna library | Moin | 2017-01-17 | 1 | -11/+27 |
| | | |||||
| * | Revert "Restrict URL preparation to HTTP/HTTPS" | Cory Benfield | 2016-11-30 | 1 | -3/+3 |
| | | | | | This reverts commit 34af72c87d79bd8852e8564c050dd7711c6a08d6. | ||||
| * | Merge pull request #3695 from nateprewitt/idna_bypass | Cory Benfield | 2016-11-25 | 1 | -3/+9 |
| |\ | | | | | idna bypass | ||||
| | * | modifying IDNA encoding check to allow fallback | Nate Prewitt | 2016-11-21 | 1 | -3/+9 |
| | | | |||||
| * | | Make Response.content return None if raw is None | Nicola Soranzo | 2016-11-24 | 1 | -1/+1 |
| | | | | | | | | | Add test. | ||||
| * | | Make Response.content() return None if status_code is None | Nicola Soranzo | 2016-11-23 | 1 | -1/+1 |
| | | | | | | | Fix #3698. | ||||
| * | | Restrict URL preparation to HTTP/HTTPS | Christian Heimes | 2016-11-21 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | | | Requests treats all URLs starting with the string 'http' as HTTP URLs. Preparation with IDNA breaks non-standard URIs like http+unix. Requests now prepares only URLs with prefix http:// and https://. Signed-off-by: Christian Heimes <christian@python.org> | ||||
| * | | Just lstrip instead of strip because trailing whitespace already works. | Hussain | 2016-11-16 | 1 | -2/+2 |
| | | | |||||
| * | | Fixed issue #3696. Added a test for it as well. | Hussain | 2016-11-16 | 1 | -0/+3 |
| |/ | |||||
| * | Document that Response.json() may raise ValueError | Chris Martin | 2016-11-10 | 1 | -0/+1 |
| | | |||||
| * | adding rewind for re-POST bodies | Nate Prewitt | 2016-11-02 | 1 | -0/+14 |
| | | |||||
| * | requests.post checked data parameters for type like dict. | Philipp Konrad | 2016-10-27 | 1 | -1/+1 |
| | | | | | Changed the type check to Mapping. | ||||
| * | Enable UTS46 mode. | Cory Benfield | 2016-10-14 | 1 | -1/+1 |
| | | |||||
| * | Use IDNA2008 to encode hosts. | Cory Benfield | 2016-10-14 | 1 | -2/+3 |
| | | |||||
| * | Remove error swallowing exception catching of AttributeError | Frankie Robertson | 2016-09-29 | 1 | -10/+6 |
| | | |||||
| * | Change module of internal references to to_native_str() | Brian Bamsch | 2016-09-27 | 1 | -2/+2 |
| | | |||||
| * | removing redundant logic from prepare_content_length | Nate Prewitt | 2016-09-21 | 1 | -12/+10 |
| | | |||||
| * | Add workaround to avoid implicit import of encodings.idna. | Carson Lam | 2016-09-17 | 1 | -0/+5 |
| | | |||||
| * | adding comment | Nate Prewitt | 2016-09-05 | 1 | -0/+4 |
| | | |||||
| * | adding ISO-8859-1 fallback for reason decoding | Nate Prewitt | 2016-09-02 | 1 | -1/+4 |
| | | |||||
| * | adding passthrough in close() for non-urllib3-like Responses | Nate Prewitt | 2016-08-12 | 1 | -1/+3 |
| | | |||||
| * | Close and then release the connection | Ian Cordasco | 2016-07-30 | 1 | -1/+1 |
| | | | | | | | | | | | | | | urllib3 closes the underlying connection when we call urllib3.Response.close but does not release it back to the connection pool. This can cause issues when users have a blocking connection pool configured and connections are not readily returned to the pool. Since the underlying connection is closed, we should be able to safely return the connection to the connection pool, so to fix this issue we merely need to not return after closing the response. Closes gh-3461 | ||||
| * | Spelling fixes | Ville Skyttä | 2016-07-26 | 1 | -1/+1 |
| | | |||||
| * | Merge pull request #3429 from nateprewitt/docstring_cleanup | Kenneth Reitz | 2016-07-20 | 1 | -5/+2 |
| |\ | | | | | Docstring cleanup | ||||
| | * | making class and function docstrings consistent | Nate Prewitt | 2016-07-20 | 1 | -5/+2 |
| | | | |||||
| * | | adding in pep8 fixes | Nate Prewitt | 2016-07-20 | 1 | -6/+7 |
| |/ | |||||
| * | Support responses like `HTTP/1.1 404 Unicode chars` (#3385) | Andrii Kostenko | 2016-07-05 | 1 | -2/+6 |
| | | |||||
| * | Merge pull request #3366 from nateprewitt/2947-no-returns-in-header | Cory Benfield | 2016-07-02 | 1 | -4/+8 |
| |\ | | | | | check for headers containing return characters | ||||
| | * | check and test for headers containing return characters or leading whitespace | Nate Prewitt | 2016-07-02 | 1 | -4/+8 |
| | | | |||||
| * | | updating docstring to match functionality | Nate Prewitt | 2016-07-02 | 1 | -0/+6 |
| | | | |||||
| * | | Allow None value for chunk_size again (#3368) | Joy Zheng | 2016-06-30 | 1 | -1/+1 |
| |/ | |||||
| * | added in type check for chunk_size | Nate Prewitt | 2016-06-27 | 1 | -0/+2 |
| | | |||||
| * | Merge pull request #3178 from haikuginger/master | Cory Benfield | 2016-05-22 | 1 | -0/+4 |
| |\ | | | | | Encoding JSON requests to bytes for urllib3 to handle | ||||
| | * | Cleaning up comment on JSON encoding to be more strictly relevant. | Jesse Shapiro | 2016-05-05 | 1 | -3/+2 |
| | | | |||||
