Ian Cordasco
29ef108158
Use to_native_string instead of builtin_str
...
Fixes #2316
2014-10-31 21:20:04 -05:00
Val Tenyotkin
3602690886
Changing parameter name newline ==> delimiter.
2014-10-24 16:37:35 -07:00
Val Tenyotkin
f5ff05be1e
Adding a custom line delimiter to iter_lines()
2014-10-21 18:03:11 -07:00
Michael DeLay
8339b60fd5
Made more better
2014-10-10 09:58:30 -07:00
mikecool1000
ce1ac88543
Fixed #2250
2014-10-09 12:22:18 -07:00
mikecool1000
4594667f07
Update utils.py
...
Fixed -2250
2014-10-08 19:26:07 -07:00
Kenneth Reitz
46d646064c
v2.4.3
2014-10-06 05:44:25 -04:00
kennethreitz
6da438dabd
Merge pull request #2268 from sigmavirus24/fix-params
...
Re-order params for backwards compat
2014-10-06 05:40:03 -04:00
Ian Cordasco
0e4efab270
Re-order params for backwards compat
2014-10-05 18:55:59 -05:00
MinRK
ca2ebc5b68
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.
2014-10-05 16:30:11 -07:00
kennethreitz
5850b1f53b
Merge pull request #2249 from t-8ch/fix_2247
...
fix #2247
2014-10-05 13:19:14 -04:00
Kenneth Reitz
779c001e44
requests v2.4.2
2014-10-05 13:15:33 -04:00
Kenneth Reitz
79f56e2e7e
fix documentation for utils.get_unicode_from_response() :)
2014-10-05 13:14:38 -04:00
kennethreitz
65cdccb70f
Merge pull request #2241 from tijko/master
...
raise RuntimeError when a single streamed request calls *iter methods th...
2014-10-05 12:48:40 -04:00
kennethreitz
1e79cf6a47
Merge pull request #2258 from willingc/add-json
...
Add json parameter
2014-10-05 12:46:09 -04:00
Ian Cordasco
b1f3a2dd66
Remove timeout from __attrs__
...
We do not allow the user to set the timeout value on the Session any longer so
this is extraneous
2014-10-04 23:04:36 -05:00
Ian Cordasco
8ed941fa69
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
2014-09-30 16:03:31 -05:00
Joe Alcorn
a68d1b4517
Support bytestring URLs on Python 3.x
2014-09-30 19:29:10 +01:00
Thomas Weißschuh
cd5eb62961
remove unused import
2014-09-26 22:28:29 +00:00
Thomas Weißschuh
6e1db21733
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
2014-09-25 19:49:28 +00:00
Ian Cordasco
ac44b48297
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 --
^ \
| /
---<------------<----------<-
2014-09-22 21:01:36 -05:00
Tim Konick
64ba451049
make StreamConsumedError doubly inherit
2014-09-22 15:58:54 -04:00
Tim Konick
6e5f7bb9d3
using the StreamConsumedError
2014-09-22 15:51:59 -04:00
Tim Konick
58e0a6f4a0
add-in StreamConsumedError
2014-09-22 15:51:10 -04:00
Tim Konick
d6470870d0
rm else after if then raise block
2014-09-22 12:46:07 -04:00
Tim Konick
fdf932c61c
raise RuntimeError when a single streamed request calls *iter methods than once
2014-09-22 12:04:29 -04:00
Daniel Hahler
bff8b91638
Document skipping in PreparedRequest; followup to #2222
2014-09-12 18:07:28 +02:00
Kenneth Reitz
dff383ce8f
requests v2.4.1
2014-09-09 12:34:34 -04:00
Ian Cordasco
27c83f7177
Fix #2207
...
@Lukasa wrote the fix in #2207
2014-09-07 12:02:23 -05:00
kennethreitz
1324ca1a0f
Merge pull request #2193 from sigmavirus24/bug/2192
...
Capture and re-raise urllib3 ProtocolError
2014-09-04 11:39:41 -07:00
kennethreitz
209a871b63
Merge pull request #2191 from kevinburke/comma
...
add trailing comma
2014-09-04 11:39:23 -07:00
kennethreitz
07bbe214aa
Merge pull request #2187 from kevinburke/more-docs
...
Document Timeout behaviour
2014-09-04 11:39:12 -07:00
Ian Cordasco
9354855648
Consolidate error handling
2014-09-03 16:01:25 -05:00
Ian Cordasco
da122231e4
Capture and re-raise urllib3 ProtocolError
2014-08-29 15:16:30 -05:00
Kevin Burke
59f5a1089a
add trailing comma
2014-08-29 12:06:58 -07:00
Kevin Burke
dfa41afd43
Document Timeout behaviour
2014-08-29 11:50:11 -07:00
Carol Willing
402f3b4993
Changes check on base and json. Fails on tests.
2014-08-28 19:27:45 -07:00
Carol Willing
b34a496649
Adds review changes
2014-08-28 16:45:24 -07:00
Carol Willing
8f17741849
Adds json parameter for POST requests
2014-08-28 12:53:19 -07:00
Kenneth Reitz
d33ce49aaa
keep-alive
2014-08-28 13:05:30 -04:00
Kenneth Reitz
89cb408bb0
v2.4.0
2014-08-28 13:05:23 -04:00
Ian Cordasco
596ca83f0c
Update verify check and doc-string
2014-08-26 14:20:19 -05:00
Ian Cordasco
b4a7906bca
Add Session method to merge environment settings with per-request settings
2014-08-26 14:20:19 -05:00
kennethreitz
32e403a908
Merge pull request #2176 from kevinburke/connect
...
Add support for connect timeouts
2014-08-26 15:13:30 -04:00
Kevin Burke
8bbc4fcb57
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
2014-08-25 13:44:29 -07:00
Kevin Burke
8f9ce13e43
ConnectTimeout multiple inheritance
2014-08-24 19:56:57 -07:00
Kevin Burke
f0b9b60f62
revert change
2014-08-24 19:46:46 -07:00
Kevin Burke
c2aeaa3959
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.
2014-08-23 15:12:29 -07:00
ContinuousFunction
c7e087cf56
Added space and sentence case
...
Added space and sentence case as requested by sigmavirus24.
https://github.com/kennethreitz/requests/pull/2168
2014-08-21 11:05:02 -07:00
ContinuousFunction
2fc6e8a894
Update on Tracking Previous Requests
...
Modified the comment in sessions.py and rewrote the test in
test_requests.py
2014-08-19 10:51:26 -07:00