Julien Prigent
60a5a393d8
Add a comment about lowercase env. variables precedence over uppercase
2018-05-13 06:15:56 -07:00
Semen Zhydenko
22120d423e
Fix typos
...
nonexistant -> nonexistent
neccessary -> necessary
2018-02-07 18:25:22 -06:00
Darren Dormer
2255c34a65
Fix DNS resolution by using hostname instead of netloc and strip username and password when comparing against proxy bypass items.
2018-01-16 10:18:06 +01:00
dbairaktaris1
7deee699ad
slice function removed
2018-01-04 10:48:17 -06:00
dbairaktaris1
cb0914407b
Continue to refactor, remove list comprehension, add double quotes test case.
2018-01-04 10:30:50 -06:00
dbairaktaris1
80a790443e
implement changes after code review
2018-01-03 23:41:41 -06:00
dbairaktaris1
071796d83f
implement changes after code review
2018-01-03 23:40:08 -06:00
dbairaktaris1
1988d9cf72
Move nested function up to module level and rename. Add more tests for function.
2018-01-01 14:20:55 -06:00
dbairaktaris1
cef0830419
clean
2017-12-31 15:02:39 -06:00
dbairaktaris1
d8666e1906
Reduce overall memory usage of Requests module by removing cgi module dependency in utils.py. Instead wrote a nested function to parse header and return content type and params.
2017-12-31 14:46:15 -06:00
Anton Fedchin
714c9dc967
utils: winreg module may not exist like on windows universal platform.
2017-11-25 17:21:59 +03:00
Mingyuan Xia
acd2645444
#4373 , fix possible winreg value type difference ( #4377 )
...
* #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
2017-11-20 20:01:04 +00:00
Arthur Vigil
c86b09b3c6
support extraction of certificate bundle from a zip archive
2017-11-05 12:14:17 -08:00
INADA Naoki
a05aac7007
avoid import platform
...
platform module is relatively large: it takes about 5ms to import
2017-10-20 02:49:22 +09:00
Remi Rampin
965ada6f66
Fix parse_header_links on empty header
2017-08-16 22:10:20 -04: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
mlcrazy
1d7fd6c8b3
Fixes error swallowing in set_environ
2017-06-09 14:10:47 -04:00
kennethreitz
d78ec90e7b
cleanup utils.py
2017-05-29 23:04:45 -04:00
kennethreitz
7f14db17c8
new requests namespace
2017-05-29 12:11:43 -04:00
kennethreitz
4c3d307eb9
Merge pull request #4052 from hile/master
...
Fix regression in API caused by commit 85400d8d6751071ef78f042d1efa72…
2017-05-26 18:34:30 -07:00
kennethreitz
14d6fa1472
__version__.py
2017-05-25 20:07:38 -04:00
kennethreitz
1001bc671a
fix imports
2017-05-25 19:58:44 -04:00
Ilkka Tuohela
a9470fe31f
Fix regression in API caused by commit 85400d8d67
...
- 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.
2017-05-24 08:47:46 +03:00
schlamar
1c38e1f5f6
proxy bypass on Windows without DNS lookups
2017-05-04 10:44:47 +02:00
schlamar
724fd44b97
revert 8e6e47af and c121b98c
2017-05-04 07:46:59 +02:00
Chris Gavin
19ba9f1097
Remove some unused imports.
2017-04-25 22:10:01 +01:00
Thomas Grainger
fcb272cc36
remove seemingly redundant pyflakes references
2017-04-20 13:23:56 +01:00
Xuanwo
1cd173a82c
Fix a typo in utils
...
Signed-off-by: Xuanwo <xuanwo.cn@gmail.com >
2017-04-08 20:56:28 +08:00
Victor Pfautz
2aaf6ac038
Fixed some typos ( #3892 )
...
* Fixed some typos
2017-02-27 16:25:10 +00:00
David Fontenot
c121b98c4e
wrapped proxy_bypass() with cache lookup
...
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
2017-02-23 14:04:16 -08:00
Nate Prewitt
f47aff68f1
properly handled failed seek
2017-02-14 07:45:41 -07:00
John L. Villalovos
85400d8d67
Allow use of 'no_proxy' in the proxies argument
...
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
2017-02-10 09:41:54 -08:00
Герасименко Евгений
1c34ac3ae6
Fixed detection of utf-32-be by BOM.
2016-12-29 10:21:32 +07:00
Cory Benfield
f72684e13c
Merge pull request #3655 from nateprewitt/tzickel_post_redirect_w_streamable
...
Rewind readable body before POST redirect
2016-11-03 10:31:04 +00:00
Nate Prewitt
40402cd0dd
adding rewind for re-POST bodies
2016-11-02 09:56:56 -06:00
Cory Benfield
595a409a18
Merge pull request #3627 from nateprewitt/remove_update_call
...
remove RequestsCookieJar specific update call
2016-10-27 20:53:18 +01:00
Nate Prewitt
dfd85f2099
make add_dict_to_cookiejar cookielib.CookieJar compatible
2016-10-27 13:17:41 -06:00
Mohamed Elawadi
f5b5c293b9
fix issue when the file-like object raises an IOError with tell
2016-10-18 11:09:25 +02:00
Brian Bamsch
3ac70defff
Update Comments & Magic Strings
2016-09-27 20:41:17 -07:00
Brian Bamsch
f002b73026
Move to_native_string to _internal_utils.py to avoid circular dependency
2016-09-26 21:41:01 -07:00
Cory Benfield
5524472cc7
Merge pull request #3535 from nateprewitt/3339_avoid_getvalues
...
avoid use of getvalues in super_len
2016-09-14 08:10:28 +01:00
Nate Prewitt
99364b6b0b
removing use of seek to set total_length
2016-08-24 15:06:53 -06:00
Skipper Seabold
8873a09097
Fall back to streaming
2016-08-24 09:59:33 -06:00
Skipper Seabold
d4965a4ec6
Python 2 compatibility
2016-08-24 09:59:33 -06:00
Skipper Seabold
af7729f64a
Use seek from end rather than getvalue
2016-08-24 09:59:28 -06:00
Michael Hunsinger
7c80222afa
Fixed another scheme proxy over "all" priority
2016-08-22 21:01:13 -06:00
Michael Hunsinger
77b068bb9e
Fixed bug to give scheme proxy priority over "all"
2016-08-21 10:59:33 -06:00