Cory Benfield
46b7f19857
Changelog for urllib3 update
2015-12-19 08:41:51 +00:00
Cory Benfield
834a9601c3
Update urllib3 to 1.13.1
2015-12-19 08:40:39 +00:00
Cory Benfield
b444f21b1f
Update changelog for 2.9.1
2015-12-18 09:54:42 +00:00
Cory Benfield
589f13ca9d
Handle bytes and unicode URLs for netloc
2015-12-18 09:22:23 +00:00
Cory Benfield
f7cb796241
Merge branch 'fix-1859'
2015-12-18 09:18:10 +00:00
Cory Benfield
96a068b58e
Merge branch 'master' into fix-1859
2015-12-18 09:14:13 +00:00
Ian Cordasco
b32c3bc10f
Merge pull request #2931 from Lukasa/uploading_bytes
...
Fix regression from #2844 regarding binary bodies.
2015-12-16 09:20:26 -06:00
Cory Benfield
fc8fa1aa26
Fix regression from #2844 regarding binary bodies.
2015-12-16 14:56:13 +00:00
Cory Benfield
5f7a3a74aa
v2.9.0
v2.9.0
2015-12-15 15:29:27 +00:00
Ian Cordasco
046a0f215d
Merge pull request #2927 from Lukasa/release/2.9.0
...
Prepare 2.9.0 release.
2015-12-15 09:26:56 -06:00
Cory Benfield
424fe263d8
Suggested wording from @sigmavirus24
2015-12-15 15:20:26 +00:00
Cory Benfield
2f744b5010
Update 2.9.0 release log.
2015-12-15 14:59:14 +00:00
Cory Benfield
3c0f0b9ab5
Update urllib3 to 1.13
2015-12-15 14:47:20 +00:00
Ian Cordasco
3d33f30436
Merge pull request #2926 from bsamek/master
...
Refactor default params
2015-12-11 16:13:53 -06:00
Brian Samek
9aca57d4bf
Revert changes to params
...
This reverts commit 9a20afd6b5 .
Docstring changes were desirable, but changes to params were not.
2015-12-11 16:47:47 -05:00
Brian Samek
9a20afd6b5
Refactor default params
...
Specified the default argument for params that have a default in the docstring
so that the default is easier to see from the code. Modified the docstring in
api.py to match the docstring in sessions.py.
2015-12-11 13:32:09 -05:00
Cory Benfield
2d91365cba
Merge pull request #2923 from bsamek/verifyparam
...
Add hint to :param verify.
2015-12-09 16:33:09 +00:00
Brian Samek
3ad66349ea
Add hint to :param verify.
...
It is not clear that :param verify defaults to True. The way the verify
portion of the docstring is written it looks like it defaults to False, and
you have to pass in True if you'd like the SSL cert to be verified, but the
opposite is the case.
2015-12-09 11:21:21 -05:00
Braulio Valdivielso Martínez
534ee814fc
Tested timeouts in text_response_server requests retrieval
2015-12-08 20:54:12 +01:00
Braulio Valdivielso Martínez
3eeea3771b
Added a way for TestServer request handlers to store data for later retrieval by the main thread (actual requests, for example)
2015-12-08 20:40:58 +01:00
Braulio Valdivielso Martínez
578b032555
Tested TestServer multiple request handling
2015-12-08 16:37:03 +01:00
Braulio Valdivielso Martínez
4a41c591f8
Tested text_response_server
2015-12-08 16:23:02 +01:00
Braulio Valdivielso Martínez
3b2a489e13
Added text_response_server classmethod to TestServer and updated basic_response_server to use it
2015-12-08 16:12:40 +01:00
Ian Cordasco
e48fea7fb3
Merge pull request #2917 from matt-jordan/qop
...
requests/auth: Handle an empty 'qop' attribute in an Authenticate challenge
2015-12-05 22:48:52 -06:00
Matt Jordan
5c19d3e07b
requests/auth: Handle an empty 'qop' attribute in a Authenticate challenge
...
Some malfunctioning HTTP servers may return a qop directive with no token, as
opposed to correctly omitting the qop directive completely. For example:
header: WWW-Authenticate: Digest realm="foobar_api_auth", qop="",
nonce="a12059eaaad0b86ece8f62f04cbafed6", algorithm="MD5",
stale="false"
Prior to this patch, requests would respond with a 'None' Authorization header.
While the server is certainly incorrect, this patch updates requests to be
more tolerant to this kind of shenaniganry. If we receive an empty string for
the value of the qop attribute, we instead treat that as if the qop attribute
was simply not provided.
Closes #2916
2015-12-05 16:14:52 -06:00
Susan Tan
4d5e534467
Remove kenneth's sphinx themes from docs directory
2015-12-04 04:06:17 -08:00
Susan Tan
6e903de068
Switch to alabaster instead of kr sphinx theme for requests docs
...
Add in the pre-existing ad tracker Javascript tags from kr sphinx theme.
2015-12-04 04:06:14 -08:00
Ian Cordasco
40ce36671c
Merge pull request #2896 from BraulioVM/master
...
[WIP] Set 'Transfer-Encoding: chunked' if data is a file with length 0
2015-12-02 08:35:41 -06:00
Braulio Valdivielso Martínez
5ecf789a6f
Avoid server from blocking if an exception is found in the main thread
2015-12-02 02:02:09 +01:00
Braulio Valdivielso Martínez
aac32ac56e
Updated tests relying on the old testserver and added basic test for chunked uploads
2015-12-02 01:53:39 +01:00
Braulio Valdivielso Martínez
6551c290fd
Allow main thread to block testserver before closing
2015-12-02 01:52:32 +01:00
Cory Benfield
dfa97addcc
Merge pull request #2909 from jwilk/spelling
...
Fix typos
2015-12-01 11:28:06 +00:00
Jakub Wilk
23d9b077d8
Fix typos
2015-12-01 12:24:56 +01:00
Cory Benfield
6cfe6e775f
Merge pull request #2902 from jparise/jparise-authors
...
Include a link to my GitHub profile.
2015-11-26 14:57:10 +00:00
Jon Parise
27f5a15364
Include a link to my GitHub profile.
2015-11-26 09:34:01 -05:00
Braulio Valdivielso Martínez
6adabacd81
Close socket properly in test_server_closes
2015-11-26 01:11:18 +01:00
Braulio Valdivielso Martínez
b4b4661f46
Implemented test to verify that the context manager exits after the server is closed
2015-11-26 01:05:16 +01:00
Braulio Valdivielso Martínez
f7917c305a
Make server set stop_event right after closing its socket
2015-11-26 01:04:27 +01:00
Braulio Valdivielso Martínez
11ad502b80
Added basic_response_server classmethod and tested it
2015-11-26 00:29:53 +01:00
Braulio Valdivielso Martínez
2ad3f07982
Make exceptions in the testserver.Server thread not block the main thread
2015-11-25 14:41:03 +01:00
Braulio Valdivielso Martínez
ab0f063d85
Made TestServer.Server listen on an arbitrary open port by default
2015-11-25 14:15:51 +01:00
Braulio Valdivielso Martínez
47e96c4e57
Renamed dummyserver to testserver
2015-11-25 14:05:21 +01:00
Braulio Valdivielso Martínez
b806ce15ba
Make strings in DummyServer test bytestrings
2015-11-25 13:53:54 +01:00
Braulio Valdivielso Martínez
9a2cc99b06
Put docstring inside Server class
2015-11-25 13:52:53 +01:00
Ian Cordasco
c1f51fd100
Merge pull request #2898 from lndbrg/patch-1
...
Update adapters.py
2015-11-24 20:44:51 -06:00
Olle Lundberg
68db4132e3
Update adapters.py
...
Remove duplicate word.
2015-11-25 02:02:41 +01:00
Braulio Valdivielso Martínez
99825de025
Implemented dummy socket server interface and added one test
2015-11-24 23:08:38 +01:00
Braulio Valdivielso Martínez
4c82dbab6f
Fix 'Transfer-Encoding: chunked' change
2015-11-24 13:42:13 +01:00
Braulio Valdivielso Martínez
6f6b2fd1d5
Set 'Transfer-Encoding: chunked' if data file length equals 0
2015-11-23 20:52:06 +01:00
Ian Cordasco
6506dc8f66
Merge pull request #2895 from Lukasa/contributing
...
Add basic CONTRIBUTING.md file
2015-11-20 08:14:59 -06:00