Cory Benfield
658da765ec
Keep non RFC cookie key characters separate.
...
Moved the characters that we accept in keys but that the RFC forbids
into a separate string to keep track of them.
2012-02-14 10:25:40 +00:00
Cory Benfield
f72c13ffda
Accept unusual keys in cookies.
...
The Oreos module throws CookieErrors when it catches keys that have
characters that shouldn't be in them, like colons and braces. Other
services are happy to send out such keys, however. This commit makes
requests non-standards compliant, just like everyone else is.
2012-02-14 00:10:26 +00:00
Luka Zakrajšek
b7842ab34b
Typo fix in oreos/structures.py
2012-02-06 13:42:34 +01:00
Greg Taylor
f8b3141204
Use basestring instead of str to determine when to return headers as-is. This makes sure that unicode instances aren't enumerated.
2012-02-05 13:57:35 -05:00
Kenneth Reitz
b47effe5d8
test #2
2012-02-01 13:35:34 -05:00
Kenneth Reitz
4f10605389
quick test
2012-02-01 13:33:59 -05:00
Kenneth Reitz
986704dc62
v0.10.2
2012-01-30 09:41:09 -05: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
Chris Adams
495646bb6a
async: force prefetch=True on send
...
… otherwise we can run out of sockets before any of the responses are ever
processed
2012-01-29 18:42:48 -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
Kenneth Reitz
04c0bcc9b4
wow.
2012-01-27 11:18:56 -06:00
David Kemp (Work)
80eafe3b63
fix problem with path being double escaped
2012-01-25 16:21:07 +00:00
Mastahyeti
4293e3fdb2
moved call to pre_request hook, allowing for more meaningful use.
2012-01-23 20:56:05 -06:00
Kenneth Reitz
5ed62e1137
don't let that happen...
2012-01-23 02:19:56 -05:00
Kenneth Reitz
f99a2534c9
v0.10.1
2012-01-23 02:18:26 -05:00
Kenneth Reitz
e7bcc3b332
oh snap
2012-01-23 01:32:09 -05:00
Kenneth Reitz
b001fcf968
SimpleCookie
2012-01-23 01:02:16 -05:00
Kenneth Reitz
125619c783
urllib3 update
2012-01-23 01:01:42 -05:00
Kenneth Reitz
fe6882623c
more stuff and things
2012-01-23 00:52:38 -05:00
Kenneth Reitz
11c4315da3
good
2012-01-23 00:43:01 -05:00
Kenneth Reitz
672e66ba5f
compat
2012-01-23 00:34:31 -05:00
Kenneth Reitz
9cae98c167
blah
2012-01-23 00:25:48 -05:00
Kenneth Reitz
b0e2e4f284
blah
2012-01-23 00:15:25 -05:00
Kenneth Reitz
2109afc144
further
2012-01-22 19:42:13 -05:00
Kenneth Reitz
786dfdd7e5
python3 version of urllib3
2012-01-22 15:06:58 -05:00
Kenneth Reitz
128b49a1fb
whitespace
2012-01-21 23:00:28 -05:00
Kenneth Reitz
0dbda6665d
cleanup
2012-01-21 22:59:57 -05:00
Kenneth Reitz
464279f48d
typo
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.com >
2012-01-21 22:58:38 -05:00
Kenneth Reitz
b14a244ab4
simpler
2012-01-21 22:57:24 -05:00
Kenneth Reitz
2c7e920298
don't double decode
2012-01-21 22:56:53 -05:00
Kenneth Reitz
b725bfd3fb
Use chardet for detection when no encoding is provided.
2012-01-21 22:55:41 -05:00
Kenneth Reitz
ada98899f8
build number
2012-01-21 20:00:12 -05:00
Kenneth Reitz
16a7a26452
v0.10.0
2012-01-21 19:58:51 -05:00
Kenneth Reitz
2c04f9d199
Merge remote-tracking branch 'origin/develop' into develop
2012-01-21 17:48:55 -05:00
Kenneth Reitz
70e98e47cf
No encoding? r.text is None.
2012-01-21 17:48:51 -05:00
Kenneth Reitz
b525dc29f7
Merge pull request #370 from piotr-dobrogost/develop
...
tiny map() refactoring
2012-01-21 05:13:15 -08:00
Kenneth Reitz
8e6f98f44e
Merge branch 'redsea' into develop
2012-01-21 07:17:30 -05:00
Kenneth Reitz
5f44d79729
move digest to new register_hook
...
#372
2012-01-21 07:14:26 -05:00
Kenneth Reitz
a3b26c7e5b
Provide new register_hook system.
...
#372
2012-01-21 07:13:58 -05:00
Kenneth Reitz
e9be7c1a58
make list of HOOKS available
2012-01-21 07:07:18 -05:00