Kenneth Reitz [Mon, 6 Oct 2014 09:44:25 +0000 (05:44 -0400)]
v2.4.3
Kenneth Reitz [Mon, 6 Oct 2014 09:42:55 +0000 (05:42 -0400)]
v2.4.3
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
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
Ian Cordasco [Sun, 5 Oct 2014 23:55:59 +0000 (18:55 -0500)]
Re-order params for backwards compat
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.
Kenneth Reitz [Sun, 5 Oct 2014 17:19:14 +0000 (13:19 -0400)]
Merge pull request #2249 from t-8ch/fix_2247
fix #2247
Kenneth Reitz [Sun, 5 Oct 2014 17:15:33 +0000 (13:15 -0400)]
requests v2.4.2
Kenneth Reitz [Sun, 5 Oct 2014 17:14:38 +0000 (13:14 -0400)]
fix documentation for utils.get_unicode_from_response() :)
Kenneth Reitz [Sun, 5 Oct 2014 17:13:42 +0000 (13:13 -0400)]
v2.4.2 changelog
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...
Kenneth Reitz [Sun, 5 Oct 2014 16:46:09 +0000 (12:46 -0400)]
Merge pull request #2258 from willingc/add-json
Add json parameter
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__
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
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
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
Joe Alcorn [Mon, 29 Sep 2014 20:11:45 +0000 (21:11 +0100)]
Support bytestring URLs on Python 3.x
Thomas Weißschuh [Fri, 26 Sep 2014 22:28:29 +0000 (22:28 +0000)]
remove unused import
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
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
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.
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
Cory Benfield [Tue, 23 Sep 2014 06:25:26 +0000 (07:25 +0100)]
Merge pull request #2245 from sigmavirus24/doc-fix
Correct 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
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 --
^ \
| /
---<------------<----------<-
Tim Konick [Mon, 22 Sep 2014 19:58:54 +0000 (15:58 -0400)]
make StreamConsumedError doubly inherit
Tim Konick [Mon, 22 Sep 2014 19:51:59 +0000 (15:51 -0400)]
using the `StreamConsumedError`
Tim Konick [Mon, 22 Sep 2014 19:51:10 +0000 (15:51 -0400)]
add-in StreamConsumedError
Tim Konick [Mon, 22 Sep 2014 16:46:07 +0000 (12:46 -0400)]
rm `else` after `if` then `raise` block
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
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
Joe Alcorn [Sat, 20 Sep 2014 19:56:00 +0000 (20:56 +0100)]
Remove invoke from requirements.txt, docs
Cory Benfield [Sat, 20 Sep 2014 14:00:36 +0000 (15:00 +0100)]
Fixup the remaining references to timeline.json.
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.
Martin Jul [Tue, 16 Sep 2014 09:54:31 +0000 (11:54 +0200)]
Moved multiple files upload example to advanced section.
Martin Jul [Tue, 16 Sep 2014 09:38:40 +0000 (11:38 +0200)]
Added example of how to send multiple files in one request.
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
Daniel Hahler [Fri, 12 Sep 2014 15:13:43 +0000 (17:13 +0200)]
Document skipping in PreparedRequest; followup to #2222
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`
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/`.
Kenneth Reitz [Tue, 9 Sep 2014 16:42:00 +0000 (12:42 -0400)]
lawl
Kenneth Reitz [Tue, 9 Sep 2014 16:39:36 +0000 (12:39 -0400)]
mils
Kenneth Reitz [Tue, 9 Sep 2014 16:34:34 +0000 (12:34 -0400)]
requests v2.4.1
Cory Benfield [Tue, 9 Sep 2014 14:24:24 +0000 (15:24 +0100)]
Merge pull request #2210 from sigmavirus24/bug/2207
Fix #2207
Cory Benfield [Tue, 9 Sep 2014 07:45:30 +0000 (08:45 +0100)]
Merge pull request #2213 from kennethreitz/req-rsp
Request->Response.
Cory Benfield [Tue, 9 Sep 2014 07:44:40 +0000 (08:44 +0100)]
Request->Response.
Ian Cordasco [Sun, 7 Sep 2014 17:02:23 +0000 (12:02 -0500)]
Fix #2207
@Lukasa wrote the fix in #2207
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.
Cory Benfield [Thu, 4 Sep 2014 18:44:37 +0000 (19:44 +0100)]
Link to Mozilla trust store.
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)
Cory Benfield [Thu, 4 Sep 2014 18:40:15 +0000 (19:40 +0100)]
Remove hard certifi dependency and document.
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
Kenneth Reitz [Thu, 4 Sep 2014 18:39:23 +0000 (11:39 -0700)]
Merge pull request #2191 from kevinburke/comma
add trailing comma
Kenneth Reitz [Thu, 4 Sep 2014 18:39:12 +0000 (11:39 -0700)]
Merge pull request #2187 from kevinburke/more-docs
Document Timeout behaviour
Kenneth Reitz [Thu, 4 Sep 2014 18:37:45 +0000 (11:37 -0700)]
requests[security]
Kenneth Reitz [Thu, 4 Sep 2014 18:36:56 +0000 (11:36 -0700)]
Merge pull request #2195 from sigmavirus24/betterssl
Add betterssl extra
Ian Cordasco [Wed, 3 Sep 2014 21:01:25 +0000 (16:01 -0500)]
Consolidate error handling
Massimiliano Torromeo [Wed, 3 Sep 2014 07:40:27 +0000 (09:40 +0200)]
Open README and HISTORY as utf-8 encoded files (fixes #2196)
Ian Cordasco [Fri, 29 Aug 2014 21:50:45 +0000 (16:50 -0500)]
Add test for invalid port
Ian Cordasco [Fri, 29 Aug 2014 21:43:51 +0000 (16:43 -0500)]
Merge remote-tracking branch 'kevinburke/domain-failure-connection-error' into bug/2192
Ian Cordasco [Fri, 29 Aug 2014 21:39:22 +0000 (16:39 -0500)]
Add betterssl extra
Kevin Burke [Fri, 29 Aug 2014 21:07:28 +0000 (14:07 -0700)]
Add test that invalid domain raises a ConnectionError
Ian Cordasco [Fri, 29 Aug 2014 20:16:30 +0000 (15:16 -0500)]
Capture and re-raise urllib3 ProtocolError
Kevin Burke [Fri, 29 Aug 2014 19:08:03 +0000 (12:08 -0700)]
tildes
Kevin Burke [Fri, 29 Aug 2014 19:06:58 +0000 (12:06 -0700)]
add trailing comma
Kevin Burke [Fri, 29 Aug 2014 18:51:09 +0000 (11:51 -0700)]
s/behavior/behaviour
Kevin Burke [Fri, 29 Aug 2014 18:33:46 +0000 (11:33 -0700)]
Document Timeout behaviour
Kenneth Reitz [Fri, 29 Aug 2014 14:32:18 +0000 (10:32 -0400)]
v2.4.0 changelog
Kenneth Reitz [Fri, 29 Aug 2014 14:30:49 +0000 (10:30 -0400)]
Revert "Documentation update : connection keep alive"
This reverts commit
1b2602344fe783c5422602ff5f7d03bf7928c0f3.
Conflicts:
docs/user/advanced.rst
Carol Willing [Fri, 29 Aug 2014 02:42:21 +0000 (19:42 -0700)]
Fixes typo in test
Carol Willing [Fri, 29 Aug 2014 02:27:45 +0000 (19:27 -0700)]
Changes check on base and json. Fails on tests.
Carol Willing [Thu, 28 Aug 2014 23:45:24 +0000 (16:45 -0700)]
Adds review changes
Carol Willing [Thu, 17 Jul 2014 19:34:31 +0000 (12:34 -0700)]
Adds json parameter for POST requests
Kenneth Reitz [Thu, 28 Aug 2014 17:10:26 +0000 (13:10 -0400)]
3.4 classifier
Kenneth Reitz [Thu, 28 Aug 2014 17:05:30 +0000 (13:05 -0400)]
keep-alive
Kenneth Reitz [Thu, 28 Aug 2014 17:05:23 +0000 (13:05 -0400)]
v2.4.0
Kenneth Reitz [Tue, 26 Aug 2014 19:44:51 +0000 (15:44 -0400)]
Merge pull request #2178 from sigmavirus24/env-retrieval
Add Session method to merge environment settings with per-request settings
Kenneth Reitz [Tue, 26 Aug 2014 19:41:44 +0000 (15:41 -0400)]
Merge pull request #2183 from Lukasa/docupdate
Fix #2180.
Cory Benfield [Tue, 26 Aug 2014 19:20:34 +0000 (20:20 +0100)]
Remove timeline.json from docs.
Ian Cordasco [Sun, 24 Aug 2014 14:54:56 +0000 (09:54 -0500)]
Update verify check and doc-string
Ian Cordasco [Sat, 23 Aug 2014 20:50:15 +0000 (15:50 -0500)]
Add Session method to merge environment settings with per-request settings
Kenneth Reitz [Tue, 26 Aug 2014 19:15:28 +0000 (15:15 -0400)]
Merge pull request #2174 from kevinburke/test-clarification
Clarify which tests to run in the Makefile
Kenneth Reitz [Tue, 26 Aug 2014 19:13:30 +0000 (15:13 -0400)]
Merge pull request #2176 from kevinburke/connect
Add support for connect timeouts
Kenneth Reitz [Tue, 26 Aug 2014 19:10:51 +0000 (15:10 -0400)]
Merge pull request #2179 from kevinburke/urllib3-pypy-ssl
Updates urllib3 to
528ad3c
Kevin Burke [Mon, 25 Aug 2014 20:44:29 +0000 (13:44 -0700)]
Updates urllib3 to
528ad3c
This includes fixes for openssl running with Pypy, so SSL connections can be
made if ndg-httpsclient, pyopenssl and pyasn1 are installed.
see also:
- https://github.com/shazow/urllib3/issues/449
- https://github.com/pypa/pip/issues/1988
Kevin Burke [Mon, 25 Aug 2014 03:22:55 +0000 (20:22 -0700)]
woops
Kevin Burke [Mon, 25 Aug 2014 03:18:05 +0000 (20:18 -0700)]
assert connect timeout inheritance
Kevin Burke [Mon, 25 Aug 2014 02:56:57 +0000 (19:56 -0700)]
ConnectTimeout multiple inheritance
Kevin Burke [Mon, 25 Aug 2014 02:46:46 +0000 (19:46 -0700)]
revert change
Kevin Burke [Sat, 23 Aug 2014 18:52:51 +0000 (11:52 -0700)]
Add support for connect timeouts
Modifies the timeout interface to also accept a tuple (connect, read) which
would be used to set individual connect and read timeouts for Requests. Adds
Advanced documentation explaining the interface and providing guidance for
timeout values.
Kevin Burke [Sat, 23 Aug 2014 17:10:44 +0000 (10:10 -0700)]
clarify comment
Kevin Burke [Sat, 23 Aug 2014 17:02:27 +0000 (10:02 -0700)]
Clarify which tests to run in the Makefile
If you put your Virtualenv in the same folder as Requests (as I
usually do), py.test will pick up any test_* files inside the
virtualenv and attempt to run them too, leading to the following error:
https://gist.github.com/kevinburke/
1aa2b07e01de3a7daa15
Instead specify the test file we would like to run in the Makefile.
Kenneth Reitz [Fri, 22 Aug 2014 13:04:50 +0000 (09:04 -0400)]
Merge pull request #2172 from ContinuousFunction/master
Add to authors and fix case
Cory Benfield [Fri, 22 Aug 2014 10:50:37 +0000 (11:50 +0100)]
Cleanup grammar from previous commit.
Cory Benfield [Fri, 22 Aug 2014 10:47:35 +0000 (11:47 +0100)]
Merge pull request #2173 from tychotatitscheff/master
Documentation update : connection keep alive
tat3657 [Fri, 22 Aug 2014 08:39:05 +0000 (10:39 +0200)]
Documentation update : connection keep alive
ContinuousFunction [Thu, 21 Aug 2014 18:25:29 +0000 (11:25 -0700)]
Adding my name to authors
ContinuousFunction [Thu, 21 Aug 2014 18:16:59 +0000 (11:16 -0700)]
Adding myself to authors.
ContinuousFunction [Thu, 21 Aug 2014 18:12:36 +0000 (11:12 -0700)]
Adding my name to authors.
ContinuousFunction [Thu, 21 Aug 2014 18:05:02 +0000 (11:05 -0700)]
Added space and sentence case
Added space and sentence case as requested by sigmavirus24.
https://github.com/kennethreitz/requests/pull/2168