Kenneth Reitz
0a1e527aec
Merge of maxcountryman
2012-03-09 08:51:03 -08:00
Kenneth Reitz
9f55f503b1
merge conflict and fixes for python3
2012-03-09 08:43:12 -08:00
Kenneth Reitz
253cba373b
_detected_encoding
2012-03-09 08:35:51 -08:00
Kenneth Reitz
9451ae2e98
iter_lines py3 compatibility
...
#470
2012-03-09 08:26:12 -08:00
Kenneth Reitz
d203349740
Merge remote-tracking branch 'origin/develop' into develop
2012-03-09 08:07:17 -08:00
Kenneth Reitz
4aad69594d
chunk_size iter_lines
2012-03-09 08:07:10 -08:00
Kenneth Reitz
c7f165ae6f
Merge branch 'iter_lines-fix' of https://github.com/fawek/requests into develop
2012-03-09 08:03:20 -08:00
Kenneth Reitz
77e5443f71
self.config.get('trust_env')
...
just for @mitsuhiko
2012-03-09 07:58:00 -08:00
Chris Dary
0e65dff008
Remove unnecessary bit from previous branch.
...
This reverts commit e2645826be .
2012-03-08 13:22:38 -08:00
Chris Dary
fba77fc65f
Potential fix for #436
2012-03-08 13:10:18 -08:00
Chris Dary
1cf5ec872c
Merge remote-tracking branch 'upstream/develop' into develop
2012-03-08 08:19:33 -08:00
Johannes Gorset
21c2146be4
Facilitate proxy configuration by environment variables
2012-03-08 13:34:23 +01:00
Kenneth Reitz
658d609e9f
default encode_uri to True
2012-03-07 16:46:15 -08:00
Kenneth Reitz
abca7f0ad0
Merge remote-tracking branch 'origin/develop' into develop
2012-03-07 16:30:30 -08:00
Kenneth Reitz
cf5ddecc4c
encode_uri
2012-03-07 16:28:04 -08:00
Kenneth Reitz
c1a44259d6
disablable encode_urls
2012-03-07 16:25:46 -08:00
Kenneth Reitz
54b2cb0b27
move config around a bit
2012-03-07 16:25:27 -08:00
Jakub Wieczorek
228c5e68ae
Considerably simplify and fix the iter_lines() function
...
1. Do not use rstrip() as this would also throw away meaningful whitespaces
2. Avoid assuming what striplines() considers a line break terminator,
the list of those is quite long in Unicode.
3. Add tests for the above edge cases.
2012-03-05 18:39:55 +01:00
Max Countryman
1532effb68
fixing a capitalization error in the send() method doc string
2012-03-01 17:20:01 -05:00
Chris Dary
e2645826be
Decode URL to utf-8 before joining.
...
To avoid UnicodeDecodeError's like on http://blip.fm/~1abvfu
2012-02-28 12:08:37 -05:00
Kenneth Reitz
d3b7f98814
hurray for passing tests
2012-02-25 22:44:46 -05:00
Kenneth Reitz
ea1d5f3648
Fix content-length: 0
...
#454
2012-02-24 18:42:33 -05:00
Kenneth Reitz
de0658f7e8
stick .netrc auth in pipeline
2012-02-20 15:43:38 -05:00
Kenneth Reitz
2c55d269ce
allow 3XX in danger_mode
2012-02-20 13:46:54 -05:00
Kenneth Reitz
e0d1b09ffe
don't raise for redirects if they're not allowed
2012-02-20 13:40:55 -05:00
Kenneth Reitz
fe10eeb5be
SCHEMAS
2012-02-20 12:25:53 -05:00
Kenneth Reitz
e7efce91fb
models cleanup
2012-02-20 12:21:01 -05:00
Cory Benfield
640538adcb
Fail if unsupported schemas are used.
...
requests only supports http and https. This change enforces that.
2012-02-16 20:20:20 +00:00
Kenneth Reitz
dacaae520a
bytes data fix for python3
2012-02-15 03:09:26 -05:00
Kenneth Reitz
ec109c9ac8
path fixes
2012-02-15 02:53:50 -05:00
Kenneth Reitz
00b13673e3
simplify
2012-02-15 02:28:58 -05:00
Kenneth Reitz
91ac5ba110
don't rely on urllib3's decode
2012-02-15 02:07:55 -05:00
Kenneth Reitz
ab4c03adc3
cleanups
2012-02-15 02:03:13 -05:00
Kenneth Reitz
d39cdc45d1
decode response url again
2012-02-15 01:21:38 -05:00
Matt Giuca
b8298b0710
Rename utils.requote_path to requote_uri.
...
It is now applied to a whole URI, not just the path.
2012-02-15 12:03:08 +11:00
Matt Giuca
3bd5406c06
Now requotes the entire URL, not just the path (Issue #429 ).
2012-02-15 12:00:47 +11:00
Matt Giuca
cf54f60367
Fixed URI re-encoding on Python 3 (Issue #369 ).
...
Request.full_url now performs requoting of the path (like it does in Python 2).
Request.path_url no longer quotes the already-quoted path (double quoting).
Fixed utils.requote_path so it works properly in Python 3.
2012-02-14 11:50:02 +11:00
Kenneth Reitz
2f13956357
Merge branch 'unicode_missing_self' of https://github.com/Telofy/requests into develop
2012-01-30 09:35:53 -05:00
Kenneth Reitz
8d700dd1e5
Merge branch 'pr-urlfix-1' of https://github.com/brendoncrawford/requests into develop
2012-01-30 09:33:31 -05:00
Kenneth Reitz
5be412db13
Brendon Crawford
2012-01-30 09:33:14 -05:00
Telofy
a61a861cfb
The self was missing again, and I think the two blocks were redundant.
2012-01-30 12:23:43 +01:00
Brendon Crawford
c363ca476f
Added ability to check if missing trailing slash in path.
...
Previously this URL would not work:
http://example.com?foo=bar
But this URL would work:
http://example.com/?foo=bar
Even though a slash is required for a valid URL, it is a common use case
for the slash to be left out, so it would be a good idea to account for this.
2012-01-29 23:24:54 -08:00
Kenneth Reitz
319b1ed551
Merge branch '239-socket-leak' of https://github.com/acdha/requests into develop
2012-01-29 19:06:41 -05:00
Chris Adams
67f50a0fe5
Less redundant freeing of resources on redirects
...
With 495646bb6a the double flush is no longer
needed.
2012-01-29 18:45:14 -05:00
Chris Adams
b98cc8b4e9
Revert "Initial stop-the-bleeding fix"
...
This reverts commit 730c0e2e2b .
2012-01-29 18:43:13 -05:00
Kenneth Reitz
4516bd45b2
Release redirected connections.
...
#239
2012-01-29 18:00:33 -05:00
Chris Adams
730c0e2e2b
Initial stop-the-bleeding fix
...
This is redundant but it avoids crashing otherwise working code. The code-smell
from duplication suggests that this interface should be refactored slightly.
2012-01-29 17:31:59 -05:00
Chris Adams
3020d0e56a
Consistent self.cookies usage
...
This avoids two variables pointing to the same thing and avoids
a duplicate dict update() call
2012-01-29 16:52:08 -05:00
Chris Adams
49bed18a83
Minor PEP-8 cleanup
2012-01-29 16:51:28 -05:00
David Kemp (Work)
80eafe3b63
fix problem with path being double escaped
2012-01-25 16:21:07 +00:00