summaryrefslogtreecommitdiff
path: root/requests/utils.py
Commit message (Collapse)AuthorAgeFilesLines
* Add a comment about lowercase env. variables precedence over uppercaseJulien Prigent2018-05-131-0/+2
|
* Fix typosSemen Zhydenko2018-02-071-1/+1
| | | | | nonexistant -> nonexistent neccessary -> necessary
* 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.
* utils: winreg module may not exist like on windows universal platform.Anton Fedchin2017-11-251-4/+8
|
* #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
* support extraction of certificate bundle from a zip archiveArthur Vigil2017-11-051-0/+34
|
* avoid import platformINADA Naoki2017-10-201-2/+2
| | | | platform module is relatively large: it takes about 5ms to import
* Fix parse_header_links on empty headerRemi Rampin2017-08-161-1/+5
|
* 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.
* Fixes error swallowing in set_environmlcrazy2017-06-091-7/+7
|
* cleanup utils.pyKenneth Reitz2017-05-291-2/+3
|
* new requests namespaceKenneth Reitz2017-05-291-1/+1
|
* Merge pull request #4052 from hile/masterKenneth Reitz2017-05-261-1/+1
|\ | | | | Fix regression in API caused by commit 85400d8d6751071ef78f042d1efa72…
| * Fix regression in API caused by commit 85400d8d6751071ef78f042d1efa72bdcf76cc0eIlkka Tuohela2017-05-241-1/+1
| | | | | | | | | | | | | | | | - The added optional parameter changes API and should default to None This utility call is used by for example requestbuilder package directly which breaks because it passes only one argument to the function as it used to be.
* | __version__.pyKenneth Reitz2017-05-251-1/+1
| |
* | fix importsKenneth Reitz2017-05-251-1/+1
|/
* proxy bypass on Windows without DNS lookupsschlamar2017-05-041-1/+51
|
* revert 8e6e47af and c121b98cschlamar2017-05-041-12/+2
|
* Remove some unused imports.Chris Gavin2017-04-251-2/+2
|
* remove seemingly redundant pyflakes referencesThomas Grainger2017-04-201-2/+0
|
* Fix a typo in utilsXuanwo2017-04-081-1/+1
| | | | Signed-off-by: Xuanwo <xuanwo.cn@gmail.com>
* Fixed some typos (#3892)Victor Pfautz2017-02-271-1/+1
| | | | * Fixed some typos
* wrapped proxy_bypass() with cache lookupDavid Fontenot2017-02-231-2/+12
| | | | | | | | | Used to alleviate long gethostbyaddr calls Made new TimedCache and decorator to wrap a function with a cache * Entries looked up older than a minute (default amount) are evicted. * When full, evicts the oldest entry
* properly handled failed seekNate Prewitt2017-02-141-8/+10
|
* Allow use of 'no_proxy' in the proxies argumentJohn L. Villalovos2017-02-101-8/+34
| | | | | | | | | Add the ability to add 'no_proxy' and a value to the 'proxies' dictionary argument. https://github.com/kennethreitz/requests/issues/2817 Closes gh-2817
* Fixed detection of utf-32-be by BOM.Герасименко Евгений2016-12-291-1/+1
|
* Merge pull request #3655 from nateprewitt/tzickel_post_redirect_w_streamableCory Benfield2016-11-031-3/+19
|\ | | | | Rewind readable body before POST redirect
| * adding rewind for re-POST bodiesNate Prewitt2016-11-021-3/+19
| |
* | Merge pull request #3627 from nateprewitt/remove_update_callCory Benfield2016-10-271-3/+1
|\ \ | |/ |/| remove RequestsCookieJar specific update call
| * make add_dict_to_cookiejar cookielib.CookieJar compatibleNate Prewitt2016-10-271-3/+1
| |
* | fix issue when the file-like object raises an IOError with tellMohamed Elawadi2016-10-181-9/+9
|/
* Update Comments & Magic StringsBrian Bamsch2016-09-271-1/+1
|
* Move to_native_string to _internal_utils.py to avoid circular dependencyBrian Bamsch2016-09-261-19/+4
|
* Merge pull request #3535 from nateprewitt/3339_avoid_getvaluesCory Benfield2016-09-141-6/+17
|\ | | | | avoid use of getvalues in super_len
| * removing use of seek to set total_lengthNate Prewitt2016-08-241-10/+8
| |
| * Fall back to streamingSkipper Seabold2016-08-241-1/+5
| |
| * Python 2 compatibilitySkipper Seabold2016-08-241-1/+7
| |
| * Use seek from end rather than getvalueSkipper Seabold2016-08-241-5/+8
| |
* | Fixed another scheme proxy over "all" priorityMichael Hunsinger2016-08-221-1/+1
| |
* | Fixed bug to give scheme proxy priority over "all"Michael Hunsinger2016-08-211-2/+2
|/