s7v7nislands [Fri, 19 Jul 2013 09:12:01 +0000 (17:12 +0800)]
merge
s7v7nislands [Fri, 19 Jul 2013 09:04:53 +0000 (17:04 +0800)]
fix doc
Cory Benfield [Fri, 19 Jul 2013 08:19:55 +0000 (01:19 -0700)]
Merge pull request #1464 from dpursehouse/document-none-not-sent
Fix #1322: Add note in docs about None not being sent as data
David Pursehouse [Fri, 19 Jul 2013 08:00:46 +0000 (17:00 +0900)]
Fix #1322: Add note in docs about None not being sent as data
In the case:
payload = {'key1': 'value1', 'key2': 'value2', 'key3': None}
r = requests.get("http://httpbin.org", params=payload)
the parameter `key3` will not be sent as a parameter in the URL.
Mention this in the documentation.
Kenneth Reitz [Thu, 18 Jul 2013 22:00:28 +0000 (15:00 -0700)]
Merge pull request #1463 from AudriusButkevicius/master
Update urllib3 to a43319f
Audrius Butkevicius [Thu, 18 Jul 2013 21:06:19 +0000 (21:06 +0000)]
Update urllib3 to a43319f
Kenneth Reitz [Tue, 16 Jul 2013 06:20:28 +0000 (02:20 -0400)]
Merge remote-tracking branch 'origin/master'
Kenneth Reitz [Tue, 16 Jul 2013 06:20:23 +0000 (02:20 -0400)]
badge.fury.io
Kenneth Reitz [Mon, 15 Jul 2013 13:54:00 +0000 (06:54 -0700)]
Merge pull request #1440 from fcurella/patch-0
unquote double-quotes cookie values
Kenneth Reitz [Mon, 15 Jul 2013 13:22:53 +0000 (06:22 -0700)]
Merge pull request #1439 from voberoi/master
Make sure netrc doesn't override any authentication settings explicitly set by the client
Kenneth Reitz [Mon, 15 Jul 2013 13:22:41 +0000 (06:22 -0700)]
Merge pull request #1441 from Lukasa/1395
Remove urllib3-specific kwargs from non-urllib3 branch.
Kenneth Reitz [Mon, 15 Jul 2013 13:21:31 +0000 (06:21 -0700)]
Merge pull request #1456 from phndiaye/master
Changed the "im_used" informational status code for the value given by IANA (226)
Philippe Ndiaye [Sat, 13 Jul 2013 09:08:01 +0000 (11:08 +0200)]
Set 208 status_code to "already_reported"
Philippe Ndiaye [Sat, 13 Jul 2013 07:55:50 +0000 (09:55 +0200)]
Changed the "im_used" informational status code for the value given by IANA (226)
See RFC 3229 at http://tools.ietf.org/html/rfc3229#section-10.4.1 and HTTP status codes at http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
Kenneth Reitz [Sat, 6 Jul 2013 04:04:50 +0000 (14:04 +1000)]
Delete invokefile.py
Cory Benfield [Thu, 4 Jul 2013 09:34:43 +0000 (10:34 +0100)]
Remove urllib3-specific kwargs from general code
Flavio Curella [Mon, 1 Jul 2013 20:54:59 +0000 (15:54 -0500)]
Added myself to AUTHORS
Flavio Curella [Mon, 1 Jul 2013 20:48:48 +0000 (15:48 -0500)]
keep the double quotes, but don't escape them
Flavio Curella [Mon, 1 Jul 2013 18:49:43 +0000 (13:49 -0500)]
unquote double-quotes cookie values
Vikram Oberoi [Thu, 27 Jun 2013 21:16:42 +0000 (17:16 -0400)]
Add test to verify .netrc authentication behavior.
Here's what should happen:
- If no credentials are given, use netrc if there's a netrc entry.
- If credentials are given, they should override netrc.
Vikram Oberoi [Thu, 27 Jun 2013 20:43:40 +0000 (16:43 -0400)]
.netrc settings shouldn't blow away explicit auth settings on a session
Cory Benfield [Thu, 27 Jun 2013 18:18:56 +0000 (11:18 -0700)]
Merge pull request #1437 from lukaszb/patch-1
Fixed wrong method call at streaming example
Lukasz Balcerzak [Thu, 27 Jun 2013 11:37:39 +0000 (13:37 +0200)]
Fixed wrong method call at streaming example
405 is returned if POST request is performed to http://httpbin.org/stream/20
Kenneth Reitz [Tue, 25 Jun 2013 22:49:04 +0000 (15:49 -0700)]
Merge pull request #1435 from chinux23/master
@1434 https://github.com/kennethreitz/requests/issues/1434
Chen Huang [Tue, 25 Jun 2013 22:38:59 +0000 (18:38 -0400)]
@1434 Fix https://github.com/kennethreitz/requests/issues/1434
Cory Benfield [Mon, 24 Jun 2013 07:48:48 +0000 (00:48 -0700)]
Merge pull request #1429 from Lukasa/docs
Packaging warning, in via @andrewgross.
Cory Benfield [Sat, 22 Jun 2013 14:02:18 +0000 (15:02 +0100)]
Packaging warning, in via @andrewgross.
Kenneth Reitz [Fri, 21 Jun 2013 09:23:10 +0000 (02:23 -0700)]
Merge pull request #1425 from Lukasa/stream
Use new urllib3 'stream' parameter.
Cory Benfield [Tue, 18 Jun 2013 16:53:28 +0000 (17:53 +0100)]
Use the new urllib3 stream generator.
Cory Benfield [Tue, 18 Jun 2013 16:47:23 +0000 (17:47 +0100)]
Update urllib3 to
cffbd6b317
Kenneth Reitz [Sat, 15 Jun 2013 05:50:44 +0000 (22:50 -0700)]
Merge pull request #1419 from kevinburke/exception-links
Exception links
Kevin Burke [Wed, 12 Jun 2013 22:56:10 +0000 (15:56 -0700)]
Add self to AUTHORS
Kevin Burke [Wed, 12 Jun 2013 22:53:09 +0000 (15:53 -0700)]
Link to the actual exception references
Sphinx has a neat cross-referencing feature where if you include the tilde
character in front of a :py: class, it'll link to the full object but provide
only the last part of class name in the text. For more info see
http://sphinx-doc.org/domains.html#cross-referencing-syntax
Kenneth Reitz [Wed, 12 Jun 2013 18:12:17 +0000 (11:12 -0700)]
Merge pull request #1414 from jschneier/master
fixed typo in docs
Josh Schneier [Sun, 9 Jun 2013 15:14:05 +0000 (11:14 -0400)]
fix doc typo
Kenneth Reitz [Sat, 8 Jun 2013 10:53:16 +0000 (03:53 -0700)]
Merge pull request #1315 from reclosedev/fix-redirects
Don't reuse the same prepared request for all redirects
Roman Haritonov [Fri, 19 Apr 2013 06:13:36 +0000 (10:13 +0400)]
Don't reuse PreparedRequest on redirects
Roman Haritonov [Fri, 19 Apr 2013 06:12:34 +0000 (10:12 +0400)]
new failing test_requests_in_history_are_not_overridden()
Kenneth Reitz [Sat, 8 Jun 2013 10:20:18 +0000 (03:20 -0700)]
Merge pull request #1400 from jam/master
Retrieve environment proxies using standard library functions
Kenneth Reitz [Sat, 8 Jun 2013 10:18:25 +0000 (03:18 -0700)]
Merge pull request #1334 from rcarz/master
resolve_redirects no longer throws an InvalidSchema exception when the scheme is uppercase
Kenneth Reitz [Sat, 8 Jun 2013 10:17:38 +0000 (03:17 -0700)]
Merge pull request #1385 from ViktorHaag/master
Cope with mixed-case URL schemes (like 'HTTP') by lower-ifying 'url' string before calling startswith() on it
Kenneth Reitz [Sat, 8 Jun 2013 10:16:32 +0000 (03:16 -0700)]
Merge pull request #1381 from expandrive/master
Don't force chunked transfer on 0-length file-like object.
Kenneth Reitz [Sat, 8 Jun 2013 10:16:21 +0000 (03:16 -0700)]
Merge pull request #1392 from revolunet/patch-2
Update quickstart.rst
Kenneth Reitz [Sat, 8 Jun 2013 10:14:32 +0000 (03:14 -0700)]
Merge pull request #1408 from wasw100/master
cookies.morsel_to_cookie morsel['expires'] can't be strtime, and morsel['max-age'] convert to expires problem repair
Kenneth Reitz [Sat, 8 Jun 2013 10:13:34 +0000 (03:13 -0700)]
Merge pull request #1412 from t-8ch/update_urllib3
update urllib3 to
60ba176f5d
Kenneth Reitz [Sat, 8 Jun 2013 10:13:14 +0000 (03:13 -0700)]
Merge pull request #1413 from Lukasa/docs
Assorted docs updates
Cory Benfield [Sat, 8 Jun 2013 10:10:07 +0000 (11:10 +0100)]
Remove development reference from docs sidebar.
Cory Benfield [Sat, 8 Jun 2013 10:09:39 +0000 (11:09 +0100)]
Document blocking calls.
Thomas Weißschuh [Sat, 8 Jun 2013 08:22:15 +0000 (08:22 +0000)]
update urllib3 to
60ba176f5d
wasw100 [Thu, 6 Jun 2013 16:02:45 +0000 (00:02 +0800)]
cookies.morsel_to_cookie morsel['expires'] can't be strtime, and max-age convert to expires problem repair
wasw100 [Thu, 6 Jun 2013 11:15:09 +0000 (19:15 +0800)]
cookies.morsel_to_cookie(morsel) raise TypeError repaired.
morsel_to_cookie(mosel) method raise TypeError: create_cookie() got unexpected keyword arguments: ['path_specified', 'domain_specified', 'port_specified', 'domain_initial_dot'].
so we should remove these param from create_cookie(...)
James Clarke [Sat, 1 Jun 2013 01:19:42 +0000 (18:19 -0700)]
Added myself to AUTHORS.
James Clarke [Sat, 1 Jun 2013 01:19:34 +0000 (18:19 -0700)]
Use urllib to retrieve environment proxies.
This has the added benefit of including proxies defined by the OS X System Configuration framework and in the Windows registry, rather than only checking os.environ.
Julien Bouquillon [Wed, 29 May 2013 09:57:49 +0000 (12:57 +0300)]
Update quickstart.rst
rephrase misleading info about `raise_for_status`
Bob Carroll [Sun, 26 May 2013 21:46:36 +0000 (14:46 -0700)]
rebased with upstream/master
Bob Carroll [Wed, 1 May 2013 18:37:58 +0000 (11:37 -0700)]
this didn't merge properly
Bob Carroll [Wed, 1 May 2013 17:44:31 +0000 (10:44 -0700)]
added assertion to test_uppercase_scheme_redirect for the response code
Bob Carroll [Wed, 1 May 2013 06:31:16 +0000 (23:31 -0700)]
I probably should add my name too
Bob Carroll [Wed, 1 May 2013 06:17:18 +0000 (23:17 -0700)]
resolve_redirects now checks for a scheme before converting the scheme to lowercase, added tests or the scheme casing
Bob Carroll [Mon, 29 Apr 2013 20:35:44 +0000 (13:35 -0700)]
resolve_redirects no longer throws an InvalidSchema exception when the scheme is uppercase
Kenneth Reitz [Sat, 25 May 2013 16:48:10 +0000 (12:48 -0400)]
v1.2.3
Viktor Haag [Fri, 24 May 2013 20:14:14 +0000 (16:14 -0400)]
added tests for mixed-case scheme URLs, changed adapters passing down URLs into urllib3 by lower-ifying them so that the underlying pool manager can effectively pool by scheme as dictionary key
Viktor Haag [Fri, 24 May 2013 18:01:30 +0000 (14:01 -0400)]
- fixed func call syntax on lower to lower()
- added test cases for trying to test GETS on mixed-case schemas
Viktor Haag [Fri, 24 May 2013 15:26:00 +0000 (11:26 -0400)]
Lower-ify url before checking against prefix with startswith()
Jeff Mancuso [Thu, 23 May 2013 15:21:29 +0000 (11:21 -0400)]
Only switch to chunked if we don't know the length of a file like object. This fixes the case of trying to upload a 0-length file - chunked upload was being forced. Services like S3 that disallow chunked upload will fail.
Kenneth Reitz [Tue, 21 May 2013 21:43:53 +0000 (17:43 -0400)]
Merge remote-tracking branch 'origin/master'
Kenneth Reitz [Tue, 21 May 2013 21:43:13 +0000 (17:43 -0400)]
v1.2.2
Kenneth Reitz [Tue, 21 May 2013 21:33:25 +0000 (14:33 -0700)]
Merge pull request #1375 from t-8ch/fix_digest_auth
don't replace 'Digest' in digest header value
Kenneth Reitz [Tue, 21 May 2013 21:27:15 +0000 (17:27 -0400)]
Merge remote-tracking branch 'origin/master'
Kenneth Reitz [Tue, 21 May 2013 21:27:06 +0000 (17:27 -0400)]
nope
Kenneth Reitz [Tue, 21 May 2013 21:25:49 +0000 (14:25 -0700)]
Merge pull request #1376 from papaeye/master
Fix typo, %t -> %r
papaeye [Tue, 21 May 2013 19:30:19 +0000 (04:30 +0900)]
Fix #1374
Thomas Weißschuh [Tue, 21 May 2013 17:48:30 +0000 (17:48 +0000)]
don't replace 'Digest' in digest header value
See https://github.com/kennethreitz/requests/issues/1358
papaeye [Tue, 21 May 2013 17:20:51 +0000 (02:20 +0900)]
Fix typo, %t -> %r
Kenneth Reitz [Tue, 21 May 2013 13:19:48 +0000 (06:19 -0700)]
Merge pull request #1373 from ib-lundgren/unicode_fields_to_urllib
Only pass unicode multipart fieldnames to urllib3.
Ib Lundgren [Tue, 21 May 2013 08:46:28 +0000 (09:46 +0100)]
Only pass unicode fieldnames to urllib3.
Kenneth Reitz [Tue, 21 May 2013 02:14:54 +0000 (19:14 -0700)]
Merge pull request #1343 from gazpachoking/#1321
Refactor merge_kwargs
Chase Sterling [Thu, 2 May 2013 16:46:59 +0000 (12:46 -0400)]
Refactor merge_kwargs for clarity and to fix a few bugs
Kenneth Reitz [Mon, 20 May 2013 20:10:43 +0000 (16:10 -0400)]
Merge remote-tracking branch 'origin/master'
Kenneth Reitz [Mon, 20 May 2013 20:10:23 +0000 (16:10 -0400)]
v1.2.1
Kenneth Reitz [Mon, 20 May 2013 20:05:02 +0000 (13:05 -0700)]
Merge pull request #1356 from Zoramite/ConnectionPoolArgs
Adding an argument to the adapter for passing a block argument
Kenneth Reitz [Mon, 20 May 2013 20:04:08 +0000 (13:04 -0700)]
Merge pull request #1361 from Lukasa/1360
Always percent-encode location headers.
Kenneth Reitz [Mon, 20 May 2013 19:57:38 +0000 (12:57 -0700)]
Merge pull request #1370 from sigmavirus24/origin_req_host
Add an extra property for Python 3.3
Ian Cordasco [Mon, 20 May 2013 14:58:03 +0000 (10:58 -0400)]
Attempt a fix for @michaelhelmick
Kenneth Reitz [Fri, 17 May 2013 07:31:11 +0000 (09:31 +0200)]
Merge remote-tracking branch 'origin/master'
Kenneth Reitz [Fri, 17 May 2013 07:31:01 +0000 (09:31 +0200)]
download image!
Kenneth Reitz [Fri, 17 May 2013 06:23:04 +0000 (23:23 -0700)]
Merge pull request #1363 from dave-shawley/master
Fix for #1362
Dave Shawley [Thu, 16 May 2013 15:22:35 +0000 (11:22 -0400)]
Fix for #1362.
`PreparedRequest.prepare_url` incorrectly applied IDNA encoding to the
URLs entire `netloc`. It should only be encoding the hostname portion
of the URL. IDNA encoding was limiting the user info, host, and port
segments to be a maximum of 63 characters which causes problems for
all by the most trivial user + password combinations.
- Replaced usage of `urlparse` in `PreparedRequest.prepare_url` with
`urllib3` equivalent.
- Modified IDNA encoding section so that it only encodes the host
portion of the URL.
Cory Benfield [Thu, 16 May 2013 10:58:18 +0000 (11:58 +0100)]
Always percent-encode location headers.
Kenneth Reitz [Wed, 15 May 2013 16:43:57 +0000 (09:43 -0700)]
Merge pull request #1327 from ambv/adapter_order
Fixes #1320: transport adapters stored in ordered form
Łukasz Langa [Wed, 15 May 2013 11:34:09 +0000 (13:34 +0200)]
Fixes #1320: transport adapters stored in ordered form
Randy Merrill [Sun, 12 May 2013 01:30:31 +0000 (18:30 -0700)]
Adding the _pool_bloc to the list of attrs.
Randy Merrill [Sun, 12 May 2013 01:13:08 +0000 (18:13 -0700)]
Fixing the call to init_poolmanagers to correctly unpickle the adapter.
Randy Merrill [Sun, 12 May 2013 01:04:43 +0000 (18:04 -0700)]
Moving the order of the arguments in the init to not interfere with existing usage.
Randy Merrill [Sat, 11 May 2013 06:46:54 +0000 (23:46 -0700)]
Adding an argument to the adapter for passing a block argument to the connection pool.
This allows for blocking when using threading to prevent the pool from creating more connections that the max-size allows.
Specifically was seeing the following errors without the block=True:
WARNING:requests.packages.urllib3.connectionpool:HttpConnectionPool is full, discarding connection: www.example.com
Kenneth Reitz [Thu, 9 May 2013 08:03:49 +0000 (01:03 -0700)]
Merge pull request #1355 from sigmavirus24/fix_links
Prevent a KeyError when there's no link headers
Ian Cordasco [Thu, 9 May 2013 03:26:49 +0000 (23:26 -0400)]
Prevent a KeyError when there's no link headers
Kenneth Reitz [Tue, 7 May 2013 17:01:32 +0000 (10:01 -0700)]
Merge pull request #1352 from nicoddemus/docs-link-on-readme
Adding link to documentation in README.rst
Kenneth Reitz [Tue, 7 May 2013 17:01:18 +0000 (10:01 -0700)]
Merge pull request #1342 from mexicat/master
Fixed example in authentication docs
Bruno Oliveira [Tue, 7 May 2013 00:40:13 +0000 (21:40 -0300)]
Adding link to documentation in README.rst
Just adding a link to the documentation at python-requests.org