services/python-requests.git
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 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

10 years agoMerge pull request #2267 from minrk/unicode-url-py2
Kenneth Reitz [Mon, 6 Oct 2014 09:39:54 +0000 (05:39 -0400)]
Merge pull request #2267 from minrk/unicode-url-py2

allow unicode URLs on Python 2

10 years agoRe-order params for backwards compat
Ian Cordasco [Sun, 5 Oct 2014 23:55:59 +0000 (18:55 -0500)]
Re-order params for backwards compat

10 years agoallow unicode URLs on Python 2
MinRK [Sun, 5 Oct 2014 23:30:11 +0000 (16:30 -0700)]
allow unicode URLs on Python 2

on Python 2 u'é'.decode('utf8') fails with UnicodeEncodeError,
but only AttributeError is caught.

This only calls decode on known bytes objects.

10 years agoMerge pull request #2249 from t-8ch/fix_2247
Kenneth Reitz [Sun, 5 Oct 2014 17:19:14 +0000 (13:19 -0400)]
Merge pull request #2249 from t-8ch/fix_2247

fix #2247

10 years agorequests v2.4.2 v2.4.2
Kenneth Reitz [Sun, 5 Oct 2014 17:15:33 +0000 (13:15 -0400)]
requests v2.4.2

10 years agofix documentation for utils.get_unicode_from_response() :)
Kenneth Reitz [Sun, 5 Oct 2014 17:14:38 +0000 (13:14 -0400)]
fix documentation for utils.get_unicode_from_response() :)

10 years agov2.4.2 changelog
Kenneth Reitz [Sun, 5 Oct 2014 17:13:42 +0000 (13:13 -0400)]
v2.4.2 changelog

10 years agoMerge pull request #2241 from tijko/master
Kenneth Reitz [Sun, 5 Oct 2014 16:48:40 +0000 (12:48 -0400)]
Merge pull request #2241 from tijko/master

raise RuntimeError when a single streamed request calls *iter methods th...

10 years agoMerge pull request #2258 from willingc/add-json
Kenneth Reitz [Sun, 5 Oct 2014 16:46:09 +0000 (12:46 -0400)]
Merge pull request #2258 from willingc/add-json

Add json parameter

10 years agoMerge pull request #2265 from sigmavirus24/session-attrs
Cory Benfield [Sun, 5 Oct 2014 08:05:29 +0000 (09:05 +0100)]
Merge pull request #2265 from sigmavirus24/session-attrs

Remove timeout from __attrs__

10 years agoRemove timeout from __attrs__
Ian Cordasco [Sun, 5 Oct 2014 04:04:35 +0000 (23:04 -0500)]
Remove timeout from __attrs__

We do not allow the user to set the timeout value on the Session any longer so
this is extraneous

10 years agoMerge pull request #2238 from buttscicles/byte-urls
Kenneth Reitz [Thu, 2 Oct 2014 16:20:05 +0000 (12:20 -0400)]
Merge pull request #2238 from buttscicles/byte-urls

Support bytestring URLs on Python 3.x

10 years agoFix a couple of issues I noticed
Ian Cordasco [Tue, 30 Sep 2014 21:03:31 +0000 (16:03 -0500)]
Fix a couple of issues I noticed

- Don't _ prefix json in prepare_body
- Don't initialize json to []
- Don't initialize json to {}
- Reorder parameters to PreparedRequest.prepare
- Remove extra parentheses
- Update docstring

10 years agoSupport bytestring URLs on Python 3.x
Joe Alcorn [Mon, 29 Sep 2014 20:11:45 +0000 (21:11 +0100)]
Support bytestring URLs on Python 3.x

10 years agoA fix for #1979 repeat HTTP digest authentication after redirect.
Yossi Gottlieb [Sat, 27 Sep 2014 17:42:58 +0000 (20:42 +0300)]
A fix for #1979 repeat HTTP digest authentication after redirect.

10 years agoremove unused import
Thomas Weißschuh [Fri, 26 Sep 2014 22:28:29 +0000 (22:28 +0000)]
remove unused import

10 years agofix #2247
Thomas Weißschuh [Thu, 25 Sep 2014 19:47:56 +0000 (19:47 +0000)]
fix #2247

We have to pass urllib3 the url without the authentication information,
else it will be parsed by httplib as a netloc and included in the request line
and Host header

10 years agoMerge pull request #2248 from jktjkt/docs-CAs
Cory Benfield [Thu, 25 Sep 2014 18:28:05 +0000 (19:28 +0100)]
Merge pull request #2248 from jktjkt/docs-CAs

docs: Clarify how to pass a custom set of CAs

10 years agodocs: Clarify how to pass a custom set of CAs
Jan Kundrát [Thu, 25 Sep 2014 18:06:04 +0000 (20:06 +0200)]
docs: Clarify how to pass a custom set of CAs

This new wording makes it hopefully easier to find how to override the
system-provided list of trusted CAs. I failed to find this through some googling
and had to resort to asking on IRC previously.

10 years agoMerge pull request #2244 from sigmavirus24/bug/2231
Kenneth Reitz [Thu, 25 Sep 2014 02:57:38 +0000 (22:57 -0400)]
Merge pull request #2244 from sigmavirus24/bug/2231

Avoid getting stuck in a loop

10 years agoMerge pull request #2245 from sigmavirus24/doc-fix
Cory Benfield [Tue, 23 Sep 2014 06:25:26 +0000 (07:25 +0100)]
Merge pull request #2245 from sigmavirus24/doc-fix

Correct redirection introduction

10 years agoCorrect redirection introduction
Ian Cordasco [Tue, 23 Sep 2014 02:08:29 +0000 (21:08 -0500)]
Correct redirection introduction

The history attribute contains responses, not requests.

Thanks to Yang Yang for reporting this to me via email

10 years agoAvoid getting stuck in a loop
Ian Cordasco [Tue, 23 Sep 2014 02:01:36 +0000 (21:01 -0500)]
Avoid getting stuck in a loop

This prevents a case where we make a request to URL A, which 301s to B which
would then 301 back to A. Alternatively, for less simple schemes, this will
also prevent us from getting stuck in a loop, e.g., it will prevent the
following from causing an endless loop:

    A -> B -> C -> D -> E -> F --
    ^                             \
    |                             /
    ---<------------<----------<-

10 years agomake StreamConsumedError doubly inherit
Tim Konick [Mon, 22 Sep 2014 19:58:54 +0000 (15:58 -0400)]
make StreamConsumedError doubly inherit

10 years agousing the `StreamConsumedError`
Tim Konick [Mon, 22 Sep 2014 19:51:59 +0000 (15:51 -0400)]
using the `StreamConsumedError`

10 years agoadd-in StreamConsumedError
Tim Konick [Mon, 22 Sep 2014 19:51:10 +0000 (15:51 -0400)]
add-in StreamConsumedError

10 years agorm `else` after `if` then `raise` block
Tim Konick [Mon, 22 Sep 2014 16:46:07 +0000 (12:46 -0400)]
rm `else` after `if` then `raise` block

10 years agoraise RuntimeError when a single streamed request calls *iter methods than once
Tim Konick [Mon, 22 Sep 2014 16:04:29 +0000 (12:04 -0400)]
raise RuntimeError when a single streamed request calls *iter methods than once

10 years agoMerge pull request #2237 from buttscicles/contributing-update
Cory Benfield [Sat, 20 Sep 2014 22:12:38 +0000 (23:12 +0100)]
Merge pull request #2237 from buttscicles/contributing-update

Remove invoke from requirements.txt, docs

10 years agoRemove invoke from requirements.txt, docs
Joe Alcorn [Sat, 20 Sep 2014 19:56:00 +0000 (20:56 +0100)]
Remove invoke from requirements.txt, docs

10 years agoFixup the remaining references to timeline.json.
Cory Benfield [Sat, 20 Sep 2014 14:00:36 +0000 (15:00 +0100)]
Fixup the remaining references to timeline.json.

10 years agoMerge pull request #2227 from mjul/master
Kenneth Reitz [Thu, 18 Sep 2014 01:06:54 +0000 (10:06 +0900)]
Merge pull request #2227 from mjul/master

Added example of how to send multiple files in one request.

10 years agoMoved multiple files upload example to advanced section.
Martin Jul [Tue, 16 Sep 2014 09:54:31 +0000 (11:54 +0200)]
Moved multiple files upload example to advanced section.

10 years agoAdded example of how to send multiple files in one request.
Martin Jul [Tue, 16 Sep 2014 09:38:40 +0000 (11:38 +0200)]
Added example of how to send multiple files in one request.

10 years agoMerge pull request #2223 from blueyed/doc-followup-2222
Ian Cordasco [Fri, 12 Sep 2014 16:54:40 +0000 (11:54 -0500)]
Merge pull request #2223 from blueyed/doc-followup-2222

Document skipping in PreparedRequest; followup to #2222

10 years agoDocument skipping in PreparedRequest; followup to #2222
Daniel Hahler [Fri, 12 Sep 2014 15:13:43 +0000 (17:13 +0200)]
Document skipping in PreparedRequest; followup to #2222

10 years agoMerge pull request #2222 from blueyed/fix-MissingScheme-for-hostport
Cory Benfield [Fri, 12 Sep 2014 14:16:11 +0000 (15:16 +0100)]
Merge pull request #2222 from blueyed/fix-MissingScheme-for-hostport

Add tests to test_invalid_url for `InvalidSchema`

10 years agoAdd more tests to `test_invalid_url`
Daniel Hahler [Fri, 12 Sep 2014 01:10:54 +0000 (03:10 +0200)]
Add more tests to `test_invalid_url`

This adds tests for the behavior introduced in b149be5d, where
`PreparedRequest` was made to skip `parse_url` for e.g.
`localhost:3128/`.

10 years agolawl
Kenneth Reitz [Tue, 9 Sep 2014 16:42:00 +0000 (12:42 -0400)]
lawl

10 years agomils
Kenneth Reitz [Tue, 9 Sep 2014 16:39:36 +0000 (12:39 -0400)]
mils

10 years agorequests v2.4.1 v2.4.1
Kenneth Reitz [Tue, 9 Sep 2014 16:34:34 +0000 (12:34 -0400)]
requests v2.4.1

10 years agoMerge pull request #2210 from sigmavirus24/bug/2207
Cory Benfield [Tue, 9 Sep 2014 14:24:24 +0000 (15:24 +0100)]
Merge pull request #2210 from sigmavirus24/bug/2207

Fix #2207

10 years agoMerge pull request #2213 from kennethreitz/req-rsp
Cory Benfield [Tue, 9 Sep 2014 07:45:30 +0000 (08:45 +0100)]
Merge pull request #2213 from kennethreitz/req-rsp

Request->Response.

10 years agoRequest->Response.
Cory Benfield [Tue, 9 Sep 2014 07:44:40 +0000 (08:44 +0100)]
Request->Response.

10 years agoFix #2207
Ian Cordasco [Sun, 7 Sep 2014 17:02:23 +0000 (12:02 -0500)]
Fix #2207

@Lukasa wrote the fix in #2207

10 years agoMerge pull request #2203 from Lukasa/remove_certifi
Kenneth Reitz [Fri, 5 Sep 2014 15:11:57 +0000 (08:11 -0700)]
Merge pull request #2203 from Lukasa/remove_certifi

Remove hard certifi dependency and document.

10 years agoLink to Mozilla trust store.
Cory Benfield [Thu, 4 Sep 2014 18:44:37 +0000 (19:44 +0100)]
Link to Mozilla trust store.

10 years agoMerge pull request #2199 from mtorromeo/patch-1
Kenneth Reitz [Thu, 4 Sep 2014 18:41:46 +0000 (11:41 -0700)]
Merge pull request #2199 from mtorromeo/patch-1

Open README and HISTORY as utf-8 encoded files (fixes #2196)

10 years agoRemove hard certifi dependency and document.
Cory Benfield [Thu, 4 Sep 2014 18:40:15 +0000 (19:40 +0100)]
Remove hard certifi dependency and document.

10 years agoMerge pull request #2193 from sigmavirus24/bug/2192
Kenneth Reitz [Thu, 4 Sep 2014 18:39:41 +0000 (11:39 -0700)]
Merge pull request #2193 from sigmavirus24/bug/2192

Capture and re-raise urllib3 ProtocolError

10 years agoMerge pull request #2191 from kevinburke/comma
Kenneth Reitz [Thu, 4 Sep 2014 18:39:23 +0000 (11:39 -0700)]
Merge pull request #2191 from kevinburke/comma

add trailing comma

10 years agoMerge pull request #2187 from kevinburke/more-docs
Kenneth Reitz [Thu, 4 Sep 2014 18:39:12 +0000 (11:39 -0700)]
Merge pull request #2187 from kevinburke/more-docs

Document Timeout behaviour

10 years agorequests[security]
Kenneth Reitz [Thu, 4 Sep 2014 18:37:45 +0000 (11:37 -0700)]
requests[security]