services/python-requests.git
11 years agoUpdate urllib3 to a43319f
Audrius Butkevicius [Thu, 18 Jul 2013 21:06:19 +0000 (21:06 +0000)]
Update urllib3 to a43319f

11 years agoMerge remote-tracking branch 'origin/master'
Kenneth Reitz [Tue, 16 Jul 2013 06:20:28 +0000 (02:20 -0400)]
Merge remote-tracking branch 'origin/master'

11 years agobadge.fury.io
Kenneth Reitz [Tue, 16 Jul 2013 06:20:23 +0000 (02:20 -0400)]
badge.fury.io

11 years agoMerge pull request #1440 from fcurella/patch-0
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

11 years agoMerge pull request #1439 from voberoi/master
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

11 years agoMerge pull request #1441 from Lukasa/1395
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.

11 years agoMerge pull request #1456 from phndiaye/master
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)

11 years agoSet 208 status_code to "already_reported"
Philippe Ndiaye [Sat, 13 Jul 2013 09:08:01 +0000 (11:08 +0200)]
Set 208 status_code to "already_reported"

11 years agoChanged the "im_used" informational status code for the value given by IANA (226)
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

11 years agoDelete invokefile.py
Kenneth Reitz [Sat, 6 Jul 2013 04:04:50 +0000 (14:04 +1000)]
Delete invokefile.py

11 years agoRemove urllib3-specific kwargs from general code
Cory Benfield [Thu, 4 Jul 2013 09:34:43 +0000 (10:34 +0100)]
Remove urllib3-specific kwargs from general code

11 years agoAdded myself to AUTHORS
Flavio Curella [Mon, 1 Jul 2013 20:54:59 +0000 (15:54 -0500)]
Added myself to AUTHORS

11 years agokeep the double quotes, but don't escape them
Flavio Curella [Mon, 1 Jul 2013 20:48:48 +0000 (15:48 -0500)]
keep the double quotes, but don't escape them

11 years agounquote double-quotes cookie values
Flavio Curella [Mon, 1 Jul 2013 18:49:43 +0000 (13:49 -0500)]
unquote double-quotes cookie values

11 years agoAdd test to verify .netrc authentication behavior.
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.

11 years ago.netrc settings shouldn't blow away explicit auth settings on a session
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

11 years agoMerge pull request #1437 from lukaszb/patch-1
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

11 years agoFixed 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

11 years agoMerge pull request #1435 from chinux23/master
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

11 years ago@1434 Fix 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

11 years agoMerge pull request #1429 from Lukasa/docs
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.

11 years agoPackaging warning, in via @andrewgross.
Cory Benfield [Sat, 22 Jun 2013 14:02:18 +0000 (15:02 +0100)]
Packaging warning, in via @andrewgross.

11 years agoMerge pull request #1425 from Lukasa/stream
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.

11 years agoUse the new urllib3 stream generator.
Cory Benfield [Tue, 18 Jun 2013 16:53:28 +0000 (17:53 +0100)]
Use the new urllib3 stream generator.

11 years agoUpdate urllib3 to cffbd6b317
Cory Benfield [Tue, 18 Jun 2013 16:47:23 +0000 (17:47 +0100)]
Update urllib3 to cffbd6b317

11 years agoMerge pull request #1419 from kevinburke/exception-links
Kenneth Reitz [Sat, 15 Jun 2013 05:50:44 +0000 (22:50 -0700)]
Merge pull request #1419 from kevinburke/exception-links

Exception links

11 years agoAdd self to AUTHORS
Kevin Burke [Wed, 12 Jun 2013 22:56:10 +0000 (15:56 -0700)]
Add self to AUTHORS

11 years agoLink to the actual exception references
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

11 years agoMerge pull request #1414 from jschneier/master
Kenneth Reitz [Wed, 12 Jun 2013 18:12:17 +0000 (11:12 -0700)]
Merge pull request #1414 from jschneier/master

fixed typo in docs

11 years agofix doc typo
Josh Schneier [Sun, 9 Jun 2013 15:14:05 +0000 (11:14 -0400)]
fix doc typo

11 years agoMerge pull request #1315 from reclosedev/fix-redirects
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

11 years agoDon't reuse PreparedRequest on redirects
Roman Haritonov [Fri, 19 Apr 2013 06:13:36 +0000 (10:13 +0400)]
Don't reuse PreparedRequest on redirects

11 years agonew failing test_requests_in_history_are_not_overridden()
Roman Haritonov [Fri, 19 Apr 2013 06:12:34 +0000 (10:12 +0400)]
new failing test_requests_in_history_are_not_overridden()

11 years agoMerge pull request #1400 from jam/master
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

11 years agoMerge pull request #1334 from rcarz/master
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

11 years agoMerge pull request #1385 from ViktorHaag/master
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

11 years agoMerge pull request #1381 from expandrive/master
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.

11 years agoMerge pull request #1392 from revolunet/patch-2
Kenneth Reitz [Sat, 8 Jun 2013 10:16:21 +0000 (03:16 -0700)]
Merge pull request #1392 from revolunet/patch-2

Update quickstart.rst

11 years agoMerge pull request #1408 from wasw100/master
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

11 years agoMerge pull request #1412 from t-8ch/update_urllib3
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

11 years agoMerge pull request #1413 from Lukasa/docs
Kenneth Reitz [Sat, 8 Jun 2013 10:13:14 +0000 (03:13 -0700)]
Merge pull request #1413 from Lukasa/docs

Assorted docs updates

11 years agoRemove development reference from docs sidebar.
Cory Benfield [Sat, 8 Jun 2013 10:10:07 +0000 (11:10 +0100)]
Remove development reference from docs sidebar.

11 years agoDocument blocking calls.
Cory Benfield [Sat, 8 Jun 2013 10:09:39 +0000 (11:09 +0100)]
Document blocking calls.

11 years agoupdate urllib3 to 60ba176f5d
Thomas Weißschuh [Sat, 8 Jun 2013 08:22:15 +0000 (08:22 +0000)]
update urllib3 to 60ba176f5d

11 years agocookies.morsel_to_cookie morsel['expires'] can't be strtime, and max-age convert...
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

11 years agocookies.morsel_to_cookie(morsel) raise TypeError repaired.
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(...)

11 years agoAdded myself to AUTHORS.
James Clarke [Sat, 1 Jun 2013 01:19:42 +0000 (18:19 -0700)]
Added myself to AUTHORS.

11 years agoUse urllib to retrieve environment proxies.
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.

11 years agoUpdate quickstart.rst
Julien Bouquillon [Wed, 29 May 2013 09:57:49 +0000 (12:57 +0300)]
Update quickstart.rst

rephrase misleading info about `raise_for_status`

11 years agorebased with upstream/master
Bob Carroll [Sun, 26 May 2013 21:46:36 +0000 (14:46 -0700)]
rebased with upstream/master

11 years agothis didn't merge properly
Bob Carroll [Wed, 1 May 2013 18:37:58 +0000 (11:37 -0700)]
this didn't merge properly

11 years agoadded assertion to test_uppercase_scheme_redirect for the response code
Bob Carroll [Wed, 1 May 2013 17:44:31 +0000 (10:44 -0700)]
added assertion to test_uppercase_scheme_redirect for the response code

11 years agoI probably should add my name too
Bob Carroll [Wed, 1 May 2013 06:31:16 +0000 (23:31 -0700)]
I probably should add my name too

11 years agoresolve_redirects now checks for a scheme before converting the scheme to lowercase...
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

11 years agoresolve_redirects no longer throws an InvalidSchema exception when the scheme is...
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

11 years agov1.2.3 v1.2.3
Kenneth Reitz [Sat, 25 May 2013 16:48:10 +0000 (12:48 -0400)]
v1.2.3

11 years agoadded tests for mixed-case scheme URLs, changed adapters passing down URLs into urlli...
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

11 years ago- fixed func call syntax on lower to lower()
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

11 years agoLower-ify url before checking against prefix with startswith()
Viktor Haag [Fri, 24 May 2013 15:26:00 +0000 (11:26 -0400)]
Lower-ify url before checking against prefix with startswith()

11 years agoOnly switch to chunked if we don't know the length of a file like object. This fixes...
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.

11 years agoMerge remote-tracking branch 'origin/master' v1.2.2
Kenneth Reitz [Tue, 21 May 2013 21:43:53 +0000 (17:43 -0400)]
Merge remote-tracking branch 'origin/master'

11 years agov1.2.2
Kenneth Reitz [Tue, 21 May 2013 21:43:13 +0000 (17:43 -0400)]
v1.2.2

11 years agoMerge pull request #1375 from t-8ch/fix_digest_auth
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

11 years agoMerge remote-tracking branch 'origin/master'
Kenneth Reitz [Tue, 21 May 2013 21:27:15 +0000 (17:27 -0400)]
Merge remote-tracking branch 'origin/master'

11 years agonope
Kenneth Reitz [Tue, 21 May 2013 21:27:06 +0000 (17:27 -0400)]
nope

11 years agoMerge pull request #1376 from papaeye/master
Kenneth Reitz [Tue, 21 May 2013 21:25:49 +0000 (14:25 -0700)]
Merge pull request #1376 from papaeye/master

Fix typo, %t -> %r

11 years agoFix #1374
papaeye [Tue, 21 May 2013 19:30:19 +0000 (04:30 +0900)]
Fix #1374

11 years agodon't replace 'Digest' in digest header value
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

11 years agoFix typo, %t -> %r
papaeye [Tue, 21 May 2013 17:20:51 +0000 (02:20 +0900)]
Fix typo, %t -> %r

11 years agoMerge pull request #1373 from ib-lundgren/unicode_fields_to_urllib
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.

11 years agoOnly pass unicode fieldnames to urllib3.
Ib Lundgren [Tue, 21 May 2013 08:46:28 +0000 (09:46 +0100)]
Only pass unicode fieldnames to urllib3.

11 years agoMerge pull request #1343 from gazpachoking/#1321
Kenneth Reitz [Tue, 21 May 2013 02:14:54 +0000 (19:14 -0700)]
Merge pull request #1343 from gazpachoking/#1321

Refactor merge_kwargs

11 years agoRefactor merge_kwargs for clarity and to fix a few bugs
Chase Sterling [Thu, 2 May 2013 16:46:59 +0000 (12:46 -0400)]
Refactor merge_kwargs for clarity and to fix a few bugs

11 years agoMerge remote-tracking branch 'origin/master'
Kenneth Reitz [Mon, 20 May 2013 20:10:43 +0000 (16:10 -0400)]
Merge remote-tracking branch 'origin/master'

11 years agov1.2.1 v1.2.1
Kenneth Reitz [Mon, 20 May 2013 20:10:23 +0000 (16:10 -0400)]
v1.2.1

11 years agoMerge pull request #1356 from Zoramite/ConnectionPoolArgs
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

11 years agoMerge pull request #1361 from Lukasa/1360
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.

11 years agoMerge pull request #1370 from sigmavirus24/origin_req_host
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

11 years agoAttempt a fix for @michaelhelmick
Ian Cordasco [Mon, 20 May 2013 14:58:03 +0000 (10:58 -0400)]
Attempt a fix for @michaelhelmick

11 years agoMerge remote-tracking branch 'origin/master'
Kenneth Reitz [Fri, 17 May 2013 07:31:11 +0000 (09:31 +0200)]
Merge remote-tracking branch 'origin/master'

11 years agodownload image!
Kenneth Reitz [Fri, 17 May 2013 07:31:01 +0000 (09:31 +0200)]
download image!

11 years agoMerge pull request #1363 from dave-shawley/master
Kenneth Reitz [Fri, 17 May 2013 06:23:04 +0000 (23:23 -0700)]
Merge pull request #1363 from dave-shawley/master

Fix for #1362

11 years agoFix 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.

11 years agoAlways percent-encode location headers.
Cory Benfield [Thu, 16 May 2013 10:58:18 +0000 (11:58 +0100)]
Always percent-encode location headers.

11 years agoMerge pull request #1327 from ambv/adapter_order
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

11 years agoFixes #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

11 years agoAdding the _pool_bloc to the list of attrs.
Randy Merrill [Sun, 12 May 2013 01:30:31 +0000 (18:30 -0700)]
Adding the _pool_bloc to the list of attrs.

11 years agoFixing the call to init_poolmanagers to correctly unpickle the adapter.
Randy Merrill [Sun, 12 May 2013 01:13:08 +0000 (18:13 -0700)]
Fixing the call to init_poolmanagers to correctly unpickle the adapter.

11 years agoMoving the order of the arguments in the init to not interfere with existing usage.
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.

11 years agoAdding an argument to the adapter for passing a block argument to the connection...
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

11 years agoMerge pull request #1355 from sigmavirus24/fix_links
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

11 years agoPrevent 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

11 years agoMerge pull request #1352 from nicoddemus/docs-link-on-readme
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

11 years agoMerge pull request #1342 from mexicat/master
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

11 years agoAdding link to documentation in README.rst
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

11 years agoMerge pull request #1347 from hobarrera/master
Kenneth Reitz [Sat, 4 May 2013 20:11:46 +0000 (13:11 -0700)]
Merge pull request #1347 from hobarrera/master

Issue #749: Add optional SNI support for python2.

11 years agoIssue #749: Add optional SNI support for python2.
Hugo Osvaldo Barrera [Fri, 3 May 2013 23:55:48 +0000 (20:55 -0300)]
Issue #749: Add optional SNI support for python2.

SNI support will be enabled for python2 if ndg-httpsclient and pyopenssl are available.

11 years agoFixed example in authentication docs
giacomo [Thu, 2 May 2013 15:16:19 +0000 (18:16 +0300)]
Fixed example in authentication docs

11 years agoMerge pull request #1341 from cdunklau/docstring_test_1329
Kenneth Reitz [Wed, 1 May 2013 18:40:02 +0000 (11:40 -0700)]
Merge pull request #1341 from cdunklau/docstring_test_1329

Minor update to tests, added docstrings

11 years agoMinor update to tests, added docstrings
Colin Dunklau [Wed, 1 May 2013 17:48:21 +0000 (12:48 -0500)]
Minor update to tests, added docstrings

Requested by @sigmavirus24.