services/python-requests.git
10 years agoMove noncebit to the only place it is used
Ian Cordasco [Tue, 20 Jan 2015 00:50:50 +0000 (18:50 -0600)]
Move noncebit to the only place it is used

Since we only allow for "auth" qop-value, hardcode it

Fixes #2408

10 years agoUpdate urllib3 to a27758625e4169330fcf965652b1093faf5aaaa2
Ian Cordasco [Sat, 10 Jan 2015 02:55:54 +0000 (20:55 -0600)]
Update urllib3 to a27758625e4169330fcf965652b1093faf5aaaa2

10 years agoMerge pull request #2375 from sigmavirus24/fix-imports-when-unbundled
Kenneth Reitz [Fri, 9 Jan 2015 20:38:30 +0000 (15:38 -0500)]
Merge pull request #2375 from sigmavirus24/fix-imports-when-unbundled

Copy pip's import machinery wholesale

10 years agodrawn towards it rather than pushed away
Kenneth Reitz [Thu, 8 Jan 2015 15:04:58 +0000 (10:04 -0500)]
drawn towards it rather than pushed away

10 years agocertifi
Kenneth Reitz [Thu, 8 Jan 2015 15:01:39 +0000 (10:01 -0500)]
certifi

10 years agocertifi
Kenneth Reitz [Thu, 8 Jan 2015 14:58:31 +0000 (09:58 -0500)]
certifi

10 years agosimpler button
Kenneth Reitz [Thu, 8 Jan 2015 14:55:40 +0000 (09:55 -0500)]
simpler button

10 years agocleanups
Kenneth Reitz [Thu, 8 Jan 2015 14:52:56 +0000 (09:52 -0500)]
cleanups

10 years agoRequests Pro
Kenneth Reitz [Thu, 8 Jan 2015 14:52:50 +0000 (09:52 -0500)]
Requests Pro

10 years agojavascripts
Kenneth Reitz [Tue, 6 Jan 2015 05:56:47 +0000 (00:56 -0500)]
javascripts

10 years agoMerge pull request #2395 from shrayasr/happy-new-year
Cory Benfield [Thu, 1 Jan 2015 08:28:11 +0000 (08:28 +0000)]
Merge pull request #2395 from shrayasr/happy-new-year

Changing year in all copyright information

10 years agoChanging year in all copyright information
Shrayas [Thu, 1 Jan 2015 03:34:50 +0000 (09:04 +0530)]
Changing year in all copyright information

- Happy new year! Thanks for this awesome library :)

10 years agoMerge pull request #2390 from Lukasa/cookiedocs
Kenneth Reitz [Wed, 24 Dec 2014 15:15:37 +0000 (10:15 -0500)]
Merge pull request #2390 from Lukasa/cookiedocs

Clean up cookie docstrings, document cookie jar.

10 years agoEnhance documentation for clarity.
Cory Benfield [Wed, 24 Dec 2014 14:54:49 +0000 (14:54 +0000)]
Enhance documentation for clarity.

10 years agoClean up cookie docs and display them.
Cory Benfield [Wed, 24 Dec 2014 14:33:14 +0000 (14:33 +0000)]
Clean up cookie docs and display them.

10 years agoBump version to 2.5.1 v2.5.1
Ian Cordasco [Tue, 23 Dec 2014 17:54:01 +0000 (11:54 -0600)]
Bump version to 2.5.1

10 years agoAdd release notes for 2.5.1
Ian Cordasco [Tue, 23 Dec 2014 17:50:31 +0000 (11:50 -0600)]
Add release notes for 2.5.1

10 years agoMerge pull request #2389 from sigmavirus24/bug/fix-digest-auth
Ian Cordasco [Tue, 23 Dec 2014 17:40:35 +0000 (11:40 -0600)]
Merge pull request #2389 from sigmavirus24/bug/fix-digest-auth

Fix bug in renegotiating a nonce with the server

10 years agoFix bug in renegotiating a nonce with the server
Ian Cordasco [Tue, 23 Dec 2014 16:40:31 +0000 (10:40 -0600)]
Fix bug in renegotiating a nonce with the server

If a session runs long enough (without constant activity) then the server can
expire the nonce the session has negotiated. If that happens the session will
get a new 401 response which we were immediately returning to the user. A user
would then have to essentially reinitialize session.auth each time they get an
unexpected 401.

Also, there's no need for setattr calls when we can simply assign the
attribute on the instance.

10 years agoFix error handling on Python 3
Ian Cordasco [Wed, 17 Dec 2014 04:49:24 +0000 (22:49 -0600)]
Fix error handling on Python 3

10 years agoMerge branch 'master' of https://github.com/ContinuousFunction/requests into pr/2344
Ian Cordasco [Wed, 17 Dec 2014 04:18:51 +0000 (22:18 -0600)]
Merge branch 'master' of https://github.com/ContinuousFunction/requests into pr/2344

10 years agoMerge pull request #2382 from daftshady/exception
Cory Benfield [Tue, 16 Dec 2014 09:19:50 +0000 (09:19 +0000)]
Merge pull request #2382 from daftshady/exception

catch exception more specifically

10 years agocatch exception more specifically in Response.ok
daftshady [Tue, 16 Dec 2014 07:55:13 +0000 (16:55 +0900)]
catch exception more specifically in Response.ok

10 years agoUncommented test in test_requests.py
ContinuousFunction [Mon, 15 Dec 2014 18:41:10 +0000 (13:41 -0500)]
Uncommented test in test_requests.py

Uncommented test_sesion_pickling in test_requests.py and ran the file to
make sure the test passes.

10 years agoMerge branch 'master' of https://github.com/kennethreitz/requests
ContinuousFunction [Mon, 15 Dec 2014 18:24:06 +0000 (13:24 -0500)]
Merge branch 'master' of https://github.com/kennethreitz/requests

10 years agoMerge pull request #2381 from namlede/patch-1
Cory Benfield [Mon, 15 Dec 2014 07:59:47 +0000 (07:59 +0000)]
Merge pull request #2381 from namlede/patch-1

Fix a typo in a comment

10 years agoFix a typo in a comment
Ben Edelman [Mon, 15 Dec 2014 06:37:19 +0000 (01:37 -0500)]
Fix a typo in a comment

I just fixed a minor typo: "throws" is misspelled as "thows".

10 years agoMerge pull request #2379 from arthurdarcet/master
Ian Cordasco [Sat, 13 Dec 2014 19:49:04 +0000 (13:49 -0600)]
Merge pull request #2379 from arthurdarcet/master

utils.guess_filename fails if the given parameter looks like a file object but has a non-string name attribute

10 years agoGive proper attribution to pip
Ian Cordasco [Sat, 13 Dec 2014 03:12:31 +0000 (21:12 -0600)]
Give proper attribution to pip

10 years agoutils.guess_filename fails if the given parameter looks like a file object but has...
Arthur Darcet [Fri, 12 Dec 2014 15:11:32 +0000 (16:11 +0100)]
utils.guess_filename fails if the given parameter looks like a file object but has a non-string name attribute

e.g. a cherrypy uploaded file behave like a regular file, except that its name attribute is an int and passing it directly to requests fails because of that

10 years agoCopy pip's import machinery wholesale
Ian Cordasco [Tue, 9 Dec 2014 02:48:40 +0000 (20:48 -0600)]
Copy pip's import machinery wholesale

10 years agoMerge pull request #2374 from krvc/fix_link
Ian Cordasco [Mon, 8 Dec 2014 23:46:08 +0000 (17:46 -0600)]
Merge pull request #2374 from krvc/fix_link

Updated the broken link to twitter streaming API documentation

10 years agoUpdated the broken link to twitter streaming API documentation
rakesh [Mon, 8 Dec 2014 20:29:55 +0000 (01:59 +0530)]
Updated the broken link to twitter streaming API documentation

10 years agoMerge pull request #2373 from frewsxcv/patch-1
Ian Cordasco [Mon, 8 Dec 2014 18:40:44 +0000 (12:40 -0600)]
Merge pull request #2373 from frewsxcv/patch-1

Enable GitHub syntax highlighting on README

10 years agoEnable GitHub syntax highlighting on README
Corey Farwell [Mon, 8 Dec 2014 18:04:27 +0000 (13:04 -0500)]
Enable GitHub syntax highlighting on README

10 years agoMerge pull request #2363 from sigmavirus24/fix-tests
Kenneth Reitz [Wed, 3 Dec 2014 04:46:10 +0000 (20:46 -0800)]
Merge pull request #2363 from sigmavirus24/fix-tests

Update tests to work offline

10 years agoMerge pull request #2365 from sigmavirus24/release/2.5 v2.5.0
Ian Cordasco [Mon, 1 Dec 2014 23:22:17 +0000 (17:22 -0600)]
Merge pull request #2365 from sigmavirus24/release/2.5

Release v2.5.0

10 years agoBump version to 2.5.0
Ian Cordasco [Mon, 1 Dec 2014 23:03:24 +0000 (17:03 -0600)]
Bump version to 2.5.0

10 years agoAdd updates for 2.5.0
Ian Cordasco [Mon, 1 Dec 2014 23:02:42 +0000 (17:02 -0600)]
Add updates for 2.5.0

10 years agoUpdate tests to work offline
Ian Cordasco [Mon, 1 Dec 2014 22:21:41 +0000 (16:21 -0600)]
Update tests to work offline

10 years agoMerge pull request #2216 from sigmavirus24/retries-take-2
Kenneth Reitz [Mon, 1 Dec 2014 19:45:27 +0000 (14:45 -0500)]
Merge pull request #2216 from sigmavirus24/retries-take-2

Retries logic

10 years agoupdatee chardet, urllib3
Kenneth Reitz [Mon, 1 Dec 2014 19:40:32 +0000 (14:40 -0500)]
updatee chardet, urllib3

10 years agoMerge pull request #2349 from sigmavirus24/fix-pickling
Kenneth Reitz [Sun, 30 Nov 2014 19:12:43 +0000 (14:12 -0500)]
Merge pull request #2349 from sigmavirus24/fix-pickling

Properly serialize RecentlyUsedContainers for cache

10 years agoMerge pull request #2348 from danmichaelo/master
Kenneth Reitz [Sun, 30 Nov 2014 19:12:04 +0000 (14:12 -0500)]
Merge pull request #2348 from danmichaelo/master

Docs: Add more section labels for referencing

10 years agoMerge pull request #2353 from mattrobenolt/patch-1
Kenneth Reitz [Sun, 30 Nov 2014 19:11:52 +0000 (14:11 -0500)]
Merge pull request #2353 from mattrobenolt/patch-1

url was already parsed, don't urlparse twice

10 years agourl was already parsed, don't urlparse twice
Matt Robenolt [Mon, 24 Nov 2014 01:54:44 +0000 (17:54 -0800)]
url was already parsed, don't urlparse twice

10 years agoProperly serialize RecentlyUsedContainers for cache
Ian Cordasco [Tue, 18 Nov 2014 04:13:35 +0000 (22:13 -0600)]
Properly serialize RecentlyUsedContainers for cache

RecentlyUsedContainers are threadsafe so they require a lock and as such
cannot be serialized with pickle directly. To handle it, we need to
convert it to a dictionary first and then back when deserializing.

Fixes #2345

10 years agoChanged ConnectionError to InvalidURL
ContinuousFunction [Mon, 17 Nov 2014 00:39:08 +0000 (16:39 -0800)]
Changed ConnectionError to InvalidURL

10 years agoDocs: Add more section labels for referencing
Dan Michael O. Heggø [Mon, 17 Nov 2014 10:39:33 +0000 (11:39 +0100)]
Docs: Add more section labels for referencing

so sections can be linked from other projects using Intersphinx

10 years agoPartially addresses Issue #1572
ContinuousFunction [Sun, 16 Nov 2014 00:58:25 +0000 (16:58 -0800)]
Partially addresses Issue #1572

Addresses the LocationParseError but not the DecodeError from
kennethreitz#1572. When running
test_requests.py, I got an error in test_session_pickling which resulted
in a TypeError. I'm not sure of the reason for the TypeError but I have
commented out that test.

10 years agoUpdate HTTPAdapter docstring
Ian Cordasco [Sat, 25 Oct 2014 13:31:03 +0000 (08:31 -0500)]
Update HTTPAdapter docstring

10 years agoAdd last few changes and add a quick test
Ian Cordasco [Sat, 25 Oct 2014 03:23:15 +0000 (22:23 -0500)]
Add last few changes and add a quick test

10 years agoUpdate urllib3 to df4ec5cce1
Ian Cordasco [Sat, 25 Oct 2014 02:58:11 +0000 (21:58 -0500)]
Update urllib3 to df4ec5cce1

10 years agoUpdate how we handle retries to be consistent with documentation
Ian Cordasco [Wed, 10 Sep 2014 16:57:20 +0000 (11:57 -0500)]
Update how we handle retries to be consistent with documentation

10 years agoMerge pull request #2309 from sigmavirus24/add-deprecation-warnings
Kenneth Reitz [Wed, 12 Nov 2014 17:36:03 +0000 (12:36 -0500)]
Merge pull request #2309 from sigmavirus24/add-deprecation-warnings

Add DeprecationWarnings to inform users of plans

10 years agoMerge pull request #2308 from kevinburke/read-timeout-retry
Kenneth Reitz [Wed, 12 Nov 2014 17:35:24 +0000 (12:35 -0500)]
Merge pull request #2308 from kevinburke/read-timeout-retry

Note about read timeout errors and max_retries

10 years agoMerge pull request #2332 from asnelzin/fix-2329
Kenneth Reitz [Wed, 12 Nov 2014 17:34:48 +0000 (12:34 -0500)]
Merge pull request #2332 from asnelzin/fix-2329

Add overriding Content-Length

10 years agoMerge pull request #2326 from sigmavirus24/close-functional-sessions
Kenneth Reitz [Wed, 12 Nov 2014 17:34:14 +0000 (12:34 -0500)]
Merge pull request #2326 from sigmavirus24/close-functional-sessions

Close sessions created in the functional API

10 years agoMerge pull request #2333 from akitada/reinit-pos
Ian Cordasco [Wed, 12 Nov 2014 15:53:32 +0000 (09:53 -0600)]
Merge pull request #2333 from akitada/reinit-pos

Fix HTTPDigestAuth not to treat non-file as a file

10 years agoFix HTTPDigestAuth not to treat non-file as a file
Akira Kitada [Wed, 12 Nov 2014 14:46:22 +0000 (23:46 +0900)]
Fix HTTPDigestAuth not to treat non-file as a file

Ensure pos is set to None when the body is not a file
so that HTTPDigestAuth detects the type of the body correctly.

10 years agoFixed.
Alexander Nelzin [Wed, 12 Nov 2014 12:35:27 +0000 (15:35 +0300)]
Fixed.

10 years agoAdded test for overriding Content-Length.
Alexander Nelzin [Wed, 12 Nov 2014 12:23:23 +0000 (15:23 +0300)]
Added test for overriding Content-Length.

10 years agoMerge pull request #2299 from mattrobenolt/master
Ian Cordasco [Fri, 7 Nov 2014 20:18:41 +0000 (14:18 -0600)]
Merge pull request #2299 from mattrobenolt/master

Cap the redirect_cache size to prevent memory abuse

10 years agoClose sessions created in the functional API
Ian Cordasco [Fri, 7 Nov 2014 14:55:17 +0000 (08:55 -0600)]
Close sessions created in the functional API

This is related to #1882 and #1685. By calling close on the session, we
clear the PoolManager operated by the Session and close all sockets.

Fixes #1882
Partially-fixes #1685

10 years agoMerge pull request #2323 from Lukasa/strict
Ian Cordasco [Fri, 7 Nov 2014 14:12:23 +0000 (08:12 -0600)]
Merge pull request #2323 from Lukasa/strict

Pass strict to urllib3.

10 years agoPass strict to urllib3.
Cory Benfield [Fri, 7 Nov 2014 08:19:18 +0000 (09:19 +0100)]
Pass strict to urllib3.

10 years agoMerge pull request #2253 from yossigo/digest_redirect_fix
Kenneth Reitz [Sat, 1 Nov 2014 14:04:29 +0000 (10:04 -0400)]
Merge pull request #2253 from yossigo/digest_redirect_fix

A fix for #1979: repeat HTTP digest authentication after redirect.

10 years agoMerge pull request #2317 from sigmavirus24/bug/2316
Kenneth Reitz [Sat, 1 Nov 2014 14:04:09 +0000 (10:04 -0400)]
Merge pull request #2317 from sigmavirus24/bug/2316

Use to_native_string instead of builtin_str

10 years agoUse to_native_string instead of builtin_str
Ian Cordasco [Sat, 1 Nov 2014 02:20:04 +0000 (21:20 -0500)]
Use to_native_string instead of builtin_str

Fixes #2316

10 years agoUpdate documentation about max_retries to reflect code
Kevin Burke [Mon, 27 Oct 2014 16:56:18 +0000 (09:56 -0700)]
Update documentation about max_retries to reflect code

10 years agoCap the redirect_cache size to prevent memory abuse
Matt Robenolt [Fri, 24 Oct 2014 03:49:18 +0000 (20:49 -0700)]
Cap the redirect_cache size to prevent memory abuse

10 years agoMerge pull request #2306 from ssadler/fix-failing-test-test_prepare_unicode_url
Ian Cordasco [Mon, 27 Oct 2014 00:32:46 +0000 (19:32 -0500)]
Merge pull request #2306 from ssadler/fix-failing-test-test_prepare_unicode_url

Fix failing test test_prepare_unicode_url

10 years agoAdd DeprecationWarnings to inform users of plans
Ian Cordasco [Mon, 27 Oct 2014 00:24:37 +0000 (19:24 -0500)]
Add DeprecationWarnings to inform users of plans

After a long discussion in IRC and on several issues, the developers of
requests have decided to remove specific functions from requests.utils
in version 3.0.0. To give users ample time to prepare for this, we've
added DeprecationWarnings long in advance. See also the planning of this
in issue #2266.

10 years agoNote about read timeout errors and max_retries
Kevin Burke [Sun, 26 Oct 2014 19:46:23 +0000 (12:46 -0700)]
Note about read timeout errors and max_retries

10 years agofix failing test "test_prepare_unicode_url" \(take 3\)
Scott Sadler [Sun, 26 Oct 2014 13:45:12 +0000 (14:45 +0100)]
fix failing test "test_prepare_unicode_url" \(take 3\)

10 years agoRevert "fix failing test "test_prepare_unicode_url""
Scott Sadler [Sun, 26 Oct 2014 13:41:56 +0000 (14:41 +0100)]
Revert "fix failing test "test_prepare_unicode_url""

This reverts commit 26ed7c2e1dce4271f3a3b111a167a6dcca3acddf.

10 years agofix failing test "test_prepare_unicode_url"
Scott Sadler [Sun, 26 Oct 2014 11:49:46 +0000 (12:49 +0100)]
fix failing test "test_prepare_unicode_url"

10 years agoRevert "fix failing test "test_prepare_unicode_url""
Scott Sadler [Sun, 26 Oct 2014 11:40:05 +0000 (12:40 +0100)]
Revert "fix failing test "test_prepare_unicode_url""

This reverts commit cfd6e25749dd17c6b511043a6720b672f74029ed.

10 years agoMerge pull request #2295 from 2deviant/feature-custom-newline
Kenneth Reitz [Sat, 25 Oct 2014 18:33:52 +0000 (14:33 -0400)]
Merge pull request #2295 from 2deviant/feature-custom-newline

Adding a custom line delimiter to iter_lines()

10 years agoupdate AUTHORS
Scott Sadler [Sat, 25 Oct 2014 11:54:47 +0000 (13:54 +0200)]
update AUTHORS

10 years agofix failing test "test_prepare_unicode_url"
Scott Sadler [Sat, 25 Oct 2014 11:54:34 +0000 (13:54 +0200)]
fix failing test "test_prepare_unicode_url"

10 years agoChanging parameter name `newline` ==> `delimiter`.
Val Tenyotkin [Fri, 24 Oct 2014 23:37:35 +0000 (16:37 -0700)]
Changing parameter name `newline` ==> `delimiter`.

10 years agoClean up handle_redirect.
Yossi Gottlieb [Thu, 23 Oct 2014 10:46:44 +0000 (13:46 +0300)]
Clean up handle_redirect.

10 years agoAdding a custom line delimiter to iter_lines()
Val Tenyotkin [Wed, 22 Oct 2014 01:03:11 +0000 (18:03 -0700)]
Adding a custom line delimiter to iter_lines()

10 years agoMerge pull request #2290 from syedsuhail/fix-2282
Cory Benfield [Sun, 19 Oct 2014 09:42:28 +0000 (10:42 +0100)]
Merge pull request #2290 from syedsuhail/fix-2282

Fix #2279. Update layout css

10 years agoFix #2279. Update layout css
syedsuhail [Sun, 19 Oct 2014 08:36:02 +0000 (14:06 +0530)]
Fix #2279. Update layout css

10 years agoMerge pull request #2289 from syedsuhail/fix-2288
Cory Benfield [Sun, 19 Oct 2014 07:56:36 +0000 (08:56 +0100)]
Merge pull request #2289 from syedsuhail/fix-2288

Fix #2288 . Change urllib3 and chardet workflow

10 years agoFix #2288. Change urllib3 and chardet workflow
syedsuhail [Sun, 19 Oct 2014 07:48:26 +0000 (13:18 +0530)]
Fix #2288. Change urllib3 and chardet workflow

10 years agoMerge pull request #2282 from morganthrapp/patch-1
Kenneth Reitz [Tue, 14 Oct 2014 15:22:48 +0000 (11:22 -0400)]
Merge pull request #2282 from morganthrapp/patch-1

Update sidebarintro.html

10 years agoUpdate sidebarintro.html
morganthrapp [Tue, 14 Oct 2014 14:56:05 +0000 (10:56 -0400)]
Update sidebarintro.html

Fix issue #2279. "Gittip" changed to "Gratipay". Tip button extended from 48px to 60px.

10 years agoMerge pull request #2273 from sigmavirus24/add-changelog-to-sidebar
Kenneth Reitz [Sun, 12 Oct 2014 14:55:34 +0000 (10:55 -0400)]
Merge pull request #2273 from sigmavirus24/add-changelog-to-sidebar

Add Release History to the sidebar

10 years agoMerge pull request #2271 from mikecool1000/fix-2250
Ian Cordasco [Fri, 10 Oct 2014 18:30:18 +0000 (13:30 -0500)]
Merge pull request #2271 from mikecool1000/fix-2250

Fixed #2250

10 years agoMade more better
Michael DeLay [Fri, 10 Oct 2014 16:58:30 +0000 (09:58 -0700)]
Made more better

10 years agoAdd Release History to the sidebar
Ian Cordasco [Fri, 10 Oct 2014 02:07:01 +0000 (21:07 -0500)]
Add Release History to the sidebar

Closes #2269

10 years agoFixed #2250
mikecool1000 [Thu, 9 Oct 2014 19:22:18 +0000 (12:22 -0700)]
Fixed #2250

10 years agoUpdate utils.py
mikecool1000 [Thu, 9 Oct 2014 02:26:07 +0000 (19:26 -0700)]
Update utils.py

Fixed -2250

10 years agoClean up, support all redirects, fix potential endless 401 loop.
Yossi Gottlieb [Tue, 7 Oct 2014 21:06:01 +0000 (00:06 +0300)]
Clean up, support all redirects, fix potential endless 401 loop.

10 years agov2.4.3 v2.4.3
Kenneth Reitz [Mon, 6 Oct 2014 09:44:25 +0000 (05:44 -0400)]
v2.4.3

10 years agov2.4.3
Kenneth Reitz [Mon, 6 Oct 2014 09:42:55 +0000 (05:42 -0400)]
v2.4.3

10 years agoMerge pull request #2268 from sigmavirus24/fix-params
Kenneth Reitz [Mon, 6 Oct 2014 09:40:03 +0000 (05:40 -0400)]
Merge pull request #2268 from sigmavirus24/fix-params

Re-order params for backwards compat