Pawel Miech
c97a530638
[httpAdapter] allow empty password in proxy credentials
...
fixes #3659
2016-10-31 14:42:01 +01: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
390a499e81
test different CookieJar types for add_dict_to_cookiejar
2016-10-27 13:22:45 -06:00
Philipp Konrad
548a03acef
requests.post checked data parameters for type like dict.
...
Changed the type check to Mapping.
2016-10-27 17:57:09 +02:00
Cory Benfield
50486cf2be
Merge pull request #3620 from Lukasa/better-idna
...
Better support for internationalized domain names.
2016-10-21 13:09:04 +01:00
lovedboy
d587533446
little modification in consume_socket_content
2016-10-21 16:55:58 +08:00
Mohamed Elawadi
f5b5c293b9
fix issue when the file-like object raises an IOError with tell
2016-10-18 11:09:25 +02:00
Cory Benfield
8dd51d22fc
Enable UTS46 mode.
2016-10-14 15:13:37 +01:00
Cory Benfield
9337b4d95d
Basic tests for internationalized domain names.
2016-10-14 10:53:15 +01:00
Cory Benfield
49b69b57db
Various packaging requirements for idna
2016-10-14 10:21:24 +01:00
Brian Bamsch
5c15fffaca
Rework Bytestring Host Test to use PyTest Httpbin
2016-09-28 20:48:27 -07:00
Brian Bamsch
b28531f4bb
Add test for request when Host header is bytestring
...
Request should successfully set cookie in response, fail if cookie fails
to set as will occur in current state when cookie set tries lookup of
domain
2016-09-25 22:10:57 -07:00
Cory Benfield
439451c3d4
Merge pull request #3591 from nateprewitt/3579_cookie_merge
...
Fix RequestsCookieJar specific update call
2016-09-23 10:32:51 +01:00
Nate Prewitt
31b35ab838
removing redundant logic from prepare_content_length
2016-09-21 16:37:28 -06:00
Nate Prewitt
08a158f486
converting update call to merge_cookies call for cookielib compatibility
2016-09-20 12:20:00 -06:00
Ian Cordasco
ddf7df9b00
Merge pull request #3576 from nateprewitt/3557_revert_and_fix_encoding
...
Fix encoding issue in test_response_reason_unicode_fallback
2016-09-20 09:48:40 -05: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
39e8c0d96f
reverting 3357 and comparing properly encoded strings
2016-09-13 22:51:28 -06:00
Ian Cordasco
42d4eaf6ea
Fix how we test fallback to latin-1 reason encoding
...
This was terribly broken and found while merging master into proposed/3.0.0
2016-09-06 09:55:37 -05:00
Nate Prewitt
cd056cd621
adding ISO-8859-1 fallback for reason decoding
2016-09-02 11:37:48 -06:00
Nate Prewitt
f5c59743e7
adding tests for super_len conditional flow
2016-08-25 16:56:01 -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
Cory Benfield
d3567aacc9
Merge pull request #3510 from nateprewitt/add_close_passthrough
...
adding passthrough in close() for non-urllib3-like Responses
2016-08-18 09:28:20 +01:00
Nate Prewitt
59f12c9669
adding passthrough in close() for non-urllib3-like Responses
2016-08-12 10:54:41 -06:00
Nate Prewitt
4d5091c287
building Response manually
2016-08-11 14:54:26 -06:00
Nate Prewitt
e50c61bc86
removing Content-Type and Transfer-Encoding headers on redirect
2016-08-11 10:58:20 -06:00
Nate Prewitt
d7f56ba938
reverting 3362
2016-08-09 07:36:39 -06:00
Ville Skyttä
5453b88f8f
Spelling fixes
2016-07-26 15:24:29 +03:00
kennethreitz
fb01456061
Merge pull request #3429 from nateprewitt/docstring_cleanup
...
Docstring cleanup
2016-07-20 18:38:38 -04:00
Nate Prewitt
b7809acb47
making class and function docstrings consistent
2016-07-20 11:43:47 -06:00
Nate Prewitt
2d4a89f5dc
adding in pep8 fixes
2016-07-20 10:30:08 -06:00
Nate Prewitt
15a3869006
making module docstrings and coding comments consistent
2016-07-19 14:51:14 -06:00
Nate Prewitt
d262df99bf
removing redundant test
2016-07-14 21:53:10 -06:00
Nate Prewitt
be31a90906
Defining header value type requirements and tests
2016-07-05 17:32:05 -06:00
Andrii Kostenko
7700ecae14
Support responses like HTTP/1.1 404 Unicode chars ( #3385 )
2016-07-05 09:01:19 -05:00
Nate Prewitt
71050e9ab9
adding in slice_length fix and test for chunk_size=None ( #3370 )
2016-07-02 15:56:20 -05:00
Cory Benfield
bd9e8f2271
Merge pull request #3366 from nateprewitt/2947-no-returns-in-header
...
check for headers containing return characters
2016-07-02 20:32:17 +01:00
Nate Prewitt
2669ab797c
check and test for headers containing return characters or leading whitespace
2016-07-02 13:10:47 -06:00
Joy Zheng
0bcf634135
Allow None value for chunk_size again ( #3368 )
2016-06-30 19:11:01 -05:00
Nate Prewitt
92fe51c0af
adding asserted_encoding check on None type encoding to match text() behavior ( #3362 )
2016-06-28 14:22:00 -05:00
Nate Prewitt
cf3c99890d
added in type check for chunk_size
2016-06-27 19:58:15 -06:00
kennethreitz
771ecd7efd
Merge pull request #3236 from eriol/xfail-test
...
Use xfail marker for a test expected to fail without Internet connection
2016-06-20 22:17:23 -04:00
John Vandenberg
400d27f982
Test security warnings ( #3289 )
...
Verify that the expected warnings are emitted
with SubjectAltNameWarning emitted on all environments
due to the https server provided by httpbin_secure.
2016-06-17 08:00:05 -05:00
Daniele Tricoli
5e86103387
Use xfail marker for a test expected to fail without Internet connection
...
This is only a minor improvement on the great work of
https://github.com/kennethreitz/requests/pull/2859 that permits to run
tests on hosts without Internet connection.
2016-05-29 20:47:41 +02:00
Cory Benfield
49b69c4751
Merge pull request #3178 from haikuginger/master
...
Encoding JSON requests to bytes for urllib3 to handle
2016-05-22 17:02:09 +01:00
Brett Higgins
b6d6894f53
Allow graceful interruption of testserver.Server
...
So that failing tests don't cause the server thread to hang
indefinitely, waiting for connections that will never come.
Rationale for suppressing error/traceback from interrupted
_accept_connection in testserver.Server:
https://gist.github.com/brettdh/b6e741227b2297f19d2118077f14dfa5
* Move server socket close to just before join
This way it handles the no-connections, no-exceptions case
as well as the exception case. If the server thread doesn't
exit by itself within 5 seconds of the context manager exit,
the accept will be interrupted.
* Address feedback
- pytest.raises rather than except:pass
- Move socket create/bind back to run()
- Timeout on accepting connections
2016-05-17 10:45:12 -05:00
Ian Cordasco
cd4e6b9aef
Merge pull request #3185 from brettdh/3183-support-all-proxy-env-var
...
Support ALL_PROXY environment variable
2016-05-17 10:42:31 -05:00
Brett Higgins
35744c3e5d
Use iter instead of noop list comprehension
2016-05-16 21:53:20 -04:00
Kumar Varadarajulu
b94decc47c
Combined tests to one tests for should_bypass_proxies method
2016-05-16 10:49:37 +00:00