papaeye
715a57dec8
Fix typo, %t -> %r
2013-05-22 02:20:51 +09:00
Ib Lundgren
003c795afe
Only pass unicode fieldnames to urllib3.
2013-05-21 09:46:28 +01:00
Dave Shawley
6e76ab7188
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.
2013-05-16 13:12:34 -04:00
Ian Cordasco
88fda94218
Prevent a KeyError when there's no link headers
2013-05-08 23:26:49 -04:00
Kenneth Reitz
6046fcffe8
Merge pull request #1279 from jemerick/unicode_multipart_post
...
Unicode strings in multipart post requests
2013-04-16 12:55:58 -07:00
schlamar
59f916ca4a
Use streaming decompression feature of urllib3.
2013-04-10 08:08:33 +02:00
Ian Cordasco
afcc883d7f
Fix #1293
2013-04-06 11:26:52 -04:00
Jason Emerick
e7247ce3f6
model the encode_files data handling after encode_params
2013-04-02 14:22:49 -04:00
Kenneth Reitz
9c18febf45
Merge pull request #1277 from pborreli/typos
...
Fixed typos
2013-04-01 21:36:39 -07:00
Jason Emerick
f37b968475
use compat.str instead of compat.builtin_str
2013-04-01 18:14:52 -04:00
Pascal Borreli
037b38badb
Fixed typos
2013-04-01 18:02:18 +00:00
Alex Gaynor
39acf1dbd2
is should not be used for comparing numbers
2013-03-31 23:20:46 -07:00
Ian Cordasco
0cd23d8d6e
Fix the tests and unseparate comments from code
...
See the comments on the previous few commits on GitHub.
2013-03-28 08:33:34 -04:00
Ian Cordasco
1d5c4f3f0f
This should take care of #1266
...
We were sending 'None' as the Content-Length on requests where the body was a
generator. This commit should prevent that entirely.
2013-03-27 23:26:11 -04:00
Justin Fenn
6963b8490c
Clarify streaming behavior in iter_lines doc
2013-03-25 12:20:33 -07:00
Kenneth Reitz
92f7478174
first
2013-03-22 15:48:27 -04:00
Kenneth Reitz
19d38d502f
actually cleanup url authentication
2013-03-22 15:47:20 -04:00
Kenneth Reitz
1325409560
simplify get_auth_from_url call
2013-03-22 00:12:58 -04:00
Jamu Kakar
7d217bf9bd
- Pull credentials out of the URL when possible.
2013-03-21 17:55:08 -07:00
Dmitry Medvinsky
c4f9340fb4
Add ability to pass response to HTTPError()
...
Just a little refactoring, but it seems nicer to me to be able to pass
the response when constructing the `HTTPError` instance instead of
constructing it and then changing the member variable.
2013-03-03 10:05:42 +04:00
sprt
b80f8aa475
URLError doesn't exist anymore
2013-03-01 20:20:53 +01:00
Ian Cordasco
be62645dd5
Revert "If Content-Length is already set.."[1]
...
This reverts commit 544d08d0f6 .
[1]"If Content-Length is already set, don't over ride it"
2013-02-25 09:29:05 -05:00
Kenneth Reitz
cdec20af65
Merge pull request #1181 from denis-ryzhkov/master
...
Fix of UnicodeDecodeError on unicode header name that can be converted to ascii.
2013-02-12 08:43:02 -08:00
Denis Ryzhkov
56f4b7ca68
Deleted is_py2 check from unicode_header_name fix thanks to Lukasa.
2013-02-12 09:51:46 +03:00
Piotr Dobrogost
4c8d1b9a7d
removed no longer used redirect codes from models
...
added numeric values of redirect codes in comments
2013-02-11 23:07:12 +01:00
Denis Ryzhkov
6da7e22a4a
Fix of UnicodeDecodeError on unicode header name that can be converted to ascii.
2013-02-11 15:37:58 +03:00
Ian Cordasco
544d08d0f6
If Content-Length is already set, don't override
...
Re: #1159
2013-02-01 11:58:23 -05:00
Cory Benfield
2f7923bc05
More useful docstring.
2013-01-28 18:35:41 +00:00
Cory Benfield
2ac3913733
Make Response objects iterable.
2013-01-28 18:35:41 +00:00
Kenneth Reitz
25545b393b
Merge pull request #1146 from oczkers/master
...
It`s more pep8 now
2013-01-27 19:11:15 -08:00
Chris Lee
318300848f
Use timedelta and change attribute name back to elapsed
2013-01-27 19:07:48 -08:00
Chris Lee
d4aaef1e9a
Time how long each request takes
...
Stored as attribute Response.time_taken
2013-01-27 19:06:50 -08:00
oczkers
40a060cf57
it`s more pep8 now
2013-01-27 02:04:12 +01:00
Kenneth Reitz
9d1d927420
Merge pull request #1103 from dmckeone/master
...
Restore the ability to use a list of 2-tuples for the data keyword argument with requests.post.
2013-01-25 21:02:01 -08:00
Johnny Goodnow
8d8865aadb
Remove Content-Length from GET/HEAD by default.
...
Now, Content-Length is only auto-added for non-GET/HEAD requests.
2013-01-25 20:50:58 -08:00
Johnny Goodnow
f7c10ca74d
Always add Content-Length to HTTP PATCH.
2013-01-25 12:07:24 -08:00
Johnny Goodnow
44b1e7ebea
Remove default Content-Length from GET requests.
...
Fix #1051 .
2013-01-24 21:13:32 -08:00
sprt
ab2e7df8a9
Merge branch 'master' of git://github.com/kennethreitz/requests
...
Conflicts:
test_requests.py
2013-01-24 18:36:53 +01:00
Scott Burns
2bcc4a774a
Pass kwargs to json.loads
...
Not all JSON is created equally. This commit
addresses when users want to take control of the
json decode process.
2013-01-23 15:25:48 -06:00
Ian Cordasco
1cfe59299b
Only call the hook once.
2013-01-23 11:51:37 -05:00
Ian Cordasco
e771aa9386
Comment & replace something that keeps disappearing
2013-01-23 11:28:30 -05:00
sprt
cc7bee19f0
Refactor prepare_hooks()
2013-01-23 15:45:44 +01:00
sprt
c4ad8afba9
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
requests/sessions.py
2013-01-23 14:42:45 +01:00
Kenneth Reitz
30573b2d8b
Merge pull request #1116 from Lukasa/master
...
Correct type of Content-Length headers.
2013-01-22 18:51:17 -08:00
Ian Cordasco
ca85b4ec6c
Tests pass this time.
2013-01-22 17:22:12 -05:00
Kenneth Reitz
3bf46609c8
Merge pull request #1097 from matthewlmcclure/issues/1096
...
Resolves the parts of #1096 in requests proper.
2013-01-22 05:11:14 -08:00
Cory Benfield
297aa04bea
Decrease default line length for iter_lines
2013-01-21 21:15:04 +00:00
Cory Benfield
89c8cbbe0c
Ensure Content-Length is a string.
2013-01-19 12:07:34 +00:00
David McKeone
35d4a47cb1
Allow passing POST data with a list of 2-tuples.
2013-01-16 11:53:24 -07:00
sprt
a721d590b4
Make hooks work with prepared requests
2013-01-12 21:46:44 +01:00