summaryrefslogtreecommitdiff
path: root/requests
Commit message (Collapse)AuthorAgeFilesLines
* The library raises NoneType error when file-pointer (fp) resolves to None.Rajiv Mayani2018-05-171-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.
* Merge branch 'master' into masterIan Stapleton Cordasco2018-05-162-1/+3
|\
| * Add a comment about lowercase env. variables precedence over uppercaseJulien Prigent2018-05-131-0/+2
| |
| * update json param's description to avoid confusionElias Obeid2018-04-301-1/+1
| | | | | | - the Request class doesn't accept JSON, but a JSON serializable object
* | Merge branch 'master' into masterDavid Poole2018-03-054-14/+46
|\ \ | |/
| * Remove remaining references to removed, vendored packages (#4499)Jon Dufresne2018-02-171-1/+1
| | | | | | | | As the vendored packages were removing in version 2.16, all remaining doc references should be replaced with newer practices.
| * Fix typosSemen Zhydenko2018-02-071-1/+1
| | | | | | | | | | nonexistant -> nonexistent neccessary -> necessary
| * pass kwargs from send call to add_headers, per documentationJonathan Elliott Blum2018-02-021-1/+1
| |
| * append previous url fragment on redirectNate Prewitt2018-01-211-1/+6
| |
| * Fix DNS resolution by using hostname instead of netloc and strip username ↵Darren Dormer2018-01-161-8/+11
| | | | | | | | and password when comparing against proxy bypass items.
| * slice function removeddbairaktaris12018-01-041-4/+2
| |
| * Continue to refactor, remove list comprehension, add double quotes test case.dbairaktaris12018-01-041-6/+10
| |
| * implement changes after code reviewdbairaktaris12018-01-031-1/+1
| |
| * implement changes after code reviewdbairaktaris12018-01-031-14/+7
| |
| * Move nested function up to module level and rename. Add more tests for ↵dbairaktaris12018-01-011-15/+31
| | | | | | | | function.
| * cleandbairaktaris12017-12-311-2/+1
| |
| * Reduce overall memory usage of Requests module by removing cgi module ↵dbairaktaris12017-12-311-2/+16
| | | | | | | | dependency in utils.py. Instead wrote a nested function to parse header and return content type and params.
* | Merge branch 'master' into masterDavid Poole2017-11-293-13/+47
|\ \ | |/
| * utils: winreg module may not exist like on windows universal platform.Anton Fedchin2017-11-251-4/+8
| |
| * Add documentation for available status codesZane Bitter2017-11-211-5/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There was no way to determine what actual names were available outside of looking at the source code. They were not listed in the documentation or accessible through the interactive help. In addition, doing `pydoc requests.status_codes` displayed some pretty unhelpful information - the utf-8 encoding string was included in the module name, there was no description, and internal variables used for initialisation leaked into the module scope: DATA code = 511 codes = <lookup 'status_codes'> title = 'network_authentication' titles = ('network_authentication_required', 'network_auth', ... This change prevents the internal variables from leaking, adds a docstring (which has the side-effect of correcting the module name), and appends information on the allowed status code names to the docstring when the module is initialised. The improved module documentation is then used in the API documentation to provide another easy reference to the complete list of status codes.
| * #4373, fix possible winreg value type difference (#4377)Mingyuan Xia2017-11-201-2/+4
| | | | | | | | | | | | | | | | | | | | * #4373, fix possible winreg value type difference * add a test for ProxyOverride and ProxyEnable on win32 * add tests for winreg key ProxyEnable with two possible types * fixing AppVeyor failures
| * Clarify that Response.ok will *only* return True/FalseAlex Chan2017-11-201-2/+2
| |
* | Merge branch 'master' into masterDavid Poole2017-11-192-1/+10
|\ \ | |/
| * Check if host is invalid for proxyNehal J Wani2017-11-152-1/+10
| | | | | | | | | | | | | | | | According to RFC3986, the authority section can be empty for a given URL, however, for a proxy URL, it shouldn't be. This patch adds a check to verify that the parsed URL will have a valid host before creating the proxy manager. Fixes #4353
* | for RFC-7616 add SHA-256 and SHA-512David Poole2017-11-081-0/+12
|/
* support extraction of certificate bundle from a zip archiveArthur Vigil2017-11-052-4/+38
|
* Merge branch 'master' into patch-1Alvaro Gutierrez Perez2017-10-212-4/+4
|\
| * avoid import platformINADA Naoki2017-10-202-4/+4
| | | | | | | | platform module is relatively large: it takes about 5ms to import
* | Fix case-insensitive comparison in get_adapter()Alvaro Gutierrez Perez2017-10-181-1/+1
|/ | | While trying to get the prefix for an url, the url was lowered before comparing but the prefix not, so if it contains non-lowercase characters (eg. https://api.example.com/sOmE_WeiRD_pReFIX/), it won't match.
* Python 3.3 has already been dropped (#4231)Hugo2017-10-151-1/+1
|
* Warn user about possible slowdown when using cryptography version <Taylor Rose2017-10-141-0/+15
| | | | 1.3.4
* Fix parse_header_links on empty headerRemi Rampin2017-08-161-1/+5
|
* v2.18.4v2.18.4Cory Benfield2017-08-151-2/+2
|
* Adding space after colonmgasvoda2017-08-111-1/+1
|
* Removing trailing whitespacemgasvoda2017-08-111-1/+1
|
* Improving message formattingmgasvoda2017-08-111-2/+2
|
* Adding header name to exceptionmgasvoda2017-08-111-2/+2
| | | Adds the name of the header to the invalid header exception raised on TypeError.
* v2.18.3v2.18.3Cory Benfield2017-08-021-2/+2
|
* Correctly raise SSLError from urllib3.Cory Benfield2017-07-291-0/+5
|
* Add idna version info to requests.helpAlex Chan2017-07-271-0/+5
|
* Merge branch 'master' into patch-2Alex Gaynor2017-07-275-9/+17
|\
| * remove legacy super() callMark Szymanski2017-07-261-2/+0
| |
| * some docs on request redirect detectionjonathan vanasco2017-07-261-0/+6
| |
| * Correct urllib3 compatibility commentBruno Alla2017-07-261-1/+1
| | | | | | | | 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/
| * v2.18.2v2.18.2Cory Benfield2017-07-251-2/+2
| |
| * Use 'prefix' instead of 'key' in session docstringAlex Muller2017-07-201-1/+1
| | | | | | | | | | This commit makes the API docs more clear. The 'key' is an implementation detail.
| * fix OPENSSL_VERSION_NUMBER check on Python2.6's ssl moduleNate Prewitt2017-07-031-3/+7
| |
* | Removed legacy fallback for python3.2Alex Gaynor2017-06-251-3/+1
|/
* v2.18.1v2.18.1Cory Benfield2017-06-141-2/+2
|
* Prepare v2.18.0v2.18.0Cory Benfield2017-06-141-2/+2
|