summaryrefslogtreecommitdiff
path: root/requests/utils.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
|/
* reverting 3362Nate Prewitt2016-08-091-12/+5
|
* Document bunch of return typesVille Skyttä2016-08-091-5/+60
|
* Merge pull request #3429 from nateprewitt/docstring_cleanupKenneth Reitz2016-07-201-20/+14
|\ | | | | Docstring cleanup
| * making class and function docstrings consistentNate Prewitt2016-07-201-19/+14
| |
| * making module docstrings and coding comments consistentNate Prewitt2016-07-191-1/+0
| |
* | adding in pep8 fixesNate Prewitt2016-07-201-2/+4
|/
* Defining header value type requirements and testsNate Prewitt2016-07-051-4/+9
|
* adding in slice_length fix and test for chunk_size=None (#3370)Nate Prewitt2016-07-021-0/+2
|
* check and test for headers containing return characters or leading whitespaceNate Prewitt2016-07-021-1/+19
|
* adding asserted_encoding check on None type encoding to match text() ↵Nate Prewitt2016-06-281-5/+12
| | | | behavior (#3362)
* Merge pull request #3185 from brettdh/3183-support-all-proxy-env-varIan Cordasco2016-05-171-5/+14
|\ | | | | Support ALL_PROXY environment variable
| * Add 'all' proxy selection to select_proxyBrett Higgins2016-05-131-5/+14
| | | | | | | | | | | | | | It seems it's necessary both in pulling all_proxy from the environment (rebuild_proxies) and deciding which proxy to use (select_proxy). Also added new functional test.
* | consider plain ip notation of an ip in no_proxy if not in cidr notationKumar Varadarajulu2016-05-161-0/+4
|/
* utils: let select_proxy not raise an exception when url has no hostnameJohn R. Lenton2016-04-261-1/+4
|
* Merge remote-tracking branch 'upstream/master' into utils-unit-testsDmitry Dygalo2016-03-131-1/+8
|\ | | | | | | | | Conflicts: tests/test_utils.py
| * Switch to treat files without tell() as zero-lengthCory Benfield2016-03-071-2/+4
| |
| * Allow for exceptions from tell()Cory Benfield2016-03-071-1/+6
| |
* | Added unit tests for utils moduleDmitry Dygalo2016-02-191-14/+11
|/
* Push code review advice from @sigmavirus24Cory Benfield2015-12-191-4/+5
|
* Handle bytes and unicode URLs for netlocCory Benfield2015-12-181-1/+4
|
* Fix super_len for partially read filesIan Cordasco2015-11-101-9/+15
| | | | Closes #2872
* Emit warnings when using text mode files.Cory Benfield2015-10-241-2/+17
|