Kenneth Reitz [Wed, 15 Feb 2012 07:28:53 +0000 (02:28 -0500)]
simplify
Kenneth Reitz [Wed, 15 Feb 2012 07:07:55 +0000 (02:07 -0500)]
don't rely on urllib3's decode
Kenneth Reitz [Wed, 15 Feb 2012 07:03:26 +0000 (02:03 -0500)]
binary data upload bug test
Kenneth Reitz [Wed, 15 Feb 2012 07:03:13 +0000 (02:03 -0500)]
cleanups
Kenneth Reitz [Wed, 15 Feb 2012 07:01:36 +0000 (02:01 -0500)]
latin1, remove unicode_literals
Fixes #407
Kenneth Reitz [Wed, 15 Feb 2012 06:47:08 +0000 (01:47 -0500)]
sp
Kenneth Reitz [Wed, 15 Feb 2012 06:46:06 +0000 (01:46 -0500)]
RuntimeError
Kenneth Reitz [Wed, 15 Feb 2012 06:42:57 +0000 (01:42 -0500)]
whitespace
Kenneth Reitz [Wed, 15 Feb 2012 06:42:52 +0000 (01:42 -0500)]
make all the tests
Kenneth Reitz [Wed, 15 Feb 2012 06:25:29 +0000 (01:25 -0500)]
Merge branch '400-header_expand-unicode' of https://github.com/acdha/requests into develop
Kenneth Reitz [Wed, 15 Feb 2012 06:21:38 +0000 (01:21 -0500)]
decode response url again
Kenneth Reitz [Wed, 15 Feb 2012 06:18:41 +0000 (01:18 -0500)]
history for 0.10.2
Kenneth Reitz [Wed, 15 Feb 2012 06:08:10 +0000 (01:08 -0500)]
Merge branch 'develop' of https://github.com/Lukasa/requests into develop
Kenneth Reitz [Wed, 15 Feb 2012 06:00:52 +0000 (01:00 -0500)]
Merge branch 'mgiuca-uri-cleanup-nonpath' into develop
Matt Giuca [Wed, 15 Feb 2012 01:06:34 +0000 (12:06 +1100)]
Added Matt Giuca to AUTHORS.
Matt Giuca [Wed, 15 Feb 2012 01:03:08 +0000 (12:03 +1100)]
Rename utils.requote_path to requote_uri.
It is now applied to a whole URI, not just the path.
Matt Giuca [Wed, 15 Feb 2012 01:00:47 +0000 (12:00 +1100)]
Now requotes the entire URL, not just the path (Issue #429).
Matt Giuca [Wed, 15 Feb 2012 00:47:02 +0000 (11:47 +1100)]
Added test cases for URI cleaning in the query part (Issue #429).
Cory Benfield [Tue, 14 Feb 2012 14:11:25 +0000 (14:11 +0000)]
Change the RFC we reference.
Cory Benfield [Tue, 14 Feb 2012 12:58:35 +0000 (12:58 +0000)]
Make clearer the source of forbidden characters
Cory Benfield [Tue, 14 Feb 2012 10:25:40 +0000 (10:25 +0000)]
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.
Kenneth Reitz [Tue, 14 Feb 2012 09:30:10 +0000 (04:30 -0500)]
Merge branch 'py3-uri-encoding' of https://github.com/mgiuca/requests into develop
Matt Giuca [Tue, 14 Feb 2012 01:57:49 +0000 (12:57 +1100)]
Simplify requote_path.
It no longer needs to split on '/' since '/' will not be encoded.
Matt Giuca [Tue, 14 Feb 2012 01:51:03 +0000 (12:51 +1100)]
Fixed URI encoding of reserved characters (Issue #369).
Previously, util.requote_path would unquote and requote all characters,
causing reserved characters to become encoded (changing the semantics of the
URI). Now, it has special code for unquoting just the unreserved characters,
then quotes only illegal characters.
This ensures that illegal characters are fixed, and URIs are normalised, but
reserved characters do not erroneously become quoted.
Test case test_session_with_escaped_url now passes.
Matt Giuca [Tue, 14 Feb 2012 01:49:31 +0000 (12:49 +1100)]
Changed test case test_path_is_not_double_encoded.
Uses the space character instead of ~ as a test (since ~ is unreserved, it
shouldn't really be encoded at all).
Matt Giuca [Tue, 14 Feb 2012 01:20:48 +0000 (12:20 +1100)]
Added test case testing URI normalisation.
Tests that percent-encoded unreserved characters get de-encoded.
Matt Giuca [Tue, 14 Feb 2012 01:15:32 +0000 (12:15 +1100)]
Added test case for Issue #369.
Tests that legal reserved and unreserved characters in the path are not
percent-encoded. Currently fails.
Matt Giuca [Tue, 14 Feb 2012 00:50:02 +0000 (11:50 +1100)]
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.
Matt Giuca [Tue, 14 Feb 2012 00:47:14 +0000 (11:47 +1100)]
Added test case for quoted and illegal characters in the URL.
This is a test case for issue #369.
It passes in Python 2, but fails in Python 3 (though the test suite doesn't
actually work in Python 3, it can be shown to fail with some modification).
Kenneth Reitz [Tue, 14 Feb 2012 00:14:39 +0000 (16:14 -0800)]
Merge pull request #425 from Lukasa/develop
Issue #335: Accept unusual keys in cookies.
Cory Benfield [Tue, 14 Feb 2012 00:03:03 +0000 (00:03 +0000)]
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.
Chris Adams [Mon, 13 Feb 2012 15:52:25 +0000 (10:52 -0500)]
header_expand: handle Unicode strings (closes #400)
Kenneth Reitz [Sun, 12 Feb 2012 10:16:48 +0000 (02:16 -0800)]
Merge pull request #410 from eriolv/develop
Fix SyntaxError on Python3 because "except Error, e" is not supported anymore
Kenneth Reitz [Mon, 6 Feb 2012 17:08:03 +0000 (09:08 -0800)]
Merge pull request #413 from bancek/patch-1
Typo fix in oreos/structures.py
Luka Zakrajšek [Mon, 6 Feb 2012 12:42:34 +0000 (13:42 +0100)]
Typo fix in oreos/structures.py
Greg Taylor [Sun, 5 Feb 2012 02:55:55 +0000 (21:55 -0500)]
Use basestring instead of str to determine when to return headers as-is. This makes sure that unicode instances aren't enumerated.
Daniele Tricoli [Sun, 5 Feb 2012 03:18:22 +0000 (04:18 +0100)]
Since requests 0.10.1 dropped Python5 support, to catch an exception and
store the exception object in a variable the "as" keyword can be used so
Python3 will not raise a SyntaxError
Kenneth Reitz [Fri, 3 Feb 2012 18:24:00 +0000 (13:24 -0500)]
Update docs/community/faq.rst
Kenneth Reitz [Thu, 2 Feb 2012 22:23:47 +0000 (17:23 -0500)]
:trollface:
because i can.
Kenneth Reitz [Wed, 1 Feb 2012 18:35:34 +0000 (13:35 -0500)]
test #2
Kenneth Reitz [Wed, 1 Feb 2012 18:33:59 +0000 (13:33 -0500)]
quick test
Kenneth Reitz [Tue, 31 Jan 2012 07:15:55 +0000 (02:15 -0500)]
Native Instruments!
Kenneth Reitz [Mon, 30 Jan 2012 14:41:09 +0000 (09:41 -0500)]
v0.10.2
Kenneth Reitz [Mon, 30 Jan 2012 14:35:53 +0000 (09:35 -0500)]
Merge branch 'unicode_missing_self' of https://github.com/Telofy/requests into develop
Kenneth Reitz [Mon, 30 Jan 2012 14:33:31 +0000 (09:33 -0500)]
Merge branch 'pr-urlfix-1' of https://github.com/brendoncrawford/requests into develop
Kenneth Reitz [Mon, 30 Jan 2012 14:33:14 +0000 (09:33 -0500)]
Brendon Crawford
Telofy [Mon, 30 Jan 2012 11:23:43 +0000 (12:23 +0100)]
The `self` was missing again, and I think the two blocks were redundant.
Brendon Crawford [Mon, 30 Jan 2012 07:24:54 +0000 (23:24 -0800)]
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.
Kenneth Reitz [Mon, 30 Jan 2012 00:06:41 +0000 (19:06 -0500)]
Merge branch '239-socket-leak' of https://github.com/acdha/requests into develop
Chris Adams [Sun, 29 Jan 2012 23:45:14 +0000 (18:45 -0500)]
Less redundant freeing of resources on redirects
With
495646bb6a89802a60208c2ab09749edba1f8e51 the double flush is no longer
needed.
Chris Adams [Sun, 29 Jan 2012 23:43:13 +0000 (18:43 -0500)]
Revert "Initial stop-the-bleeding fix"
This reverts commit
730c0e2e2bef77968a86962f9d5f2bebba4d19ec.
Chris Adams [Sun, 29 Jan 2012 23:42:46 +0000 (18:42 -0500)]
async: force prefetch=True on send
… otherwise we can run out of sockets before any of the responses are ever
processed
Kenneth Reitz [Sun, 29 Jan 2012 23:00:33 +0000 (18:00 -0500)]
Release redirected connections.
#239
Chris Adams [Sun, 29 Jan 2012 22:31:57 +0000 (17:31 -0500)]
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.
Chris Adams [Sun, 29 Jan 2012 21:52:08 +0000 (16:52 -0500)]
Consistent self.cookies usage
This avoids two variables pointing to the same thing and avoids
a duplicate dict update() call
Chris Adams [Sun, 29 Jan 2012 21:51:28 +0000 (16:51 -0500)]
Minor PEP-8 cleanup
Kenneth Reitz [Sun, 29 Jan 2012 04:10:03 +0000 (23:10 -0500)]
only do oreos for 2
Kenneth Reitz [Fri, 27 Jan 2012 17:18:56 +0000 (11:18 -0600)]
wow.
Kenneth Reitz [Fri, 27 Jan 2012 17:16:47 +0000 (11:16 -0600)]
lazy tests
David Kemp (Work) [Thu, 26 Jan 2012 18:45:38 +0000 (18:45 +0000)]
add failing test for unicode headers (python 2.x only)
Kenneth Reitz [Thu, 26 Jan 2012 06:40:30 +0000 (22:40 -0800)]
Merge pull request #389 from johtso/patch-1
Fix httpbin urls with missing .org in docs
Johannes [Thu, 26 Jan 2012 02:13:04 +0000 (02:13 +0000)]
Fix httpbin urls with missing .org
Kenneth Reitz [Wed, 25 Jan 2012 16:26:08 +0000 (11:26 -0500)]
Merge remote-tracking branch 'origin/develop' into develop
Kenneth Reitz [Wed, 25 Jan 2012 16:26:04 +0000 (11:26 -0500)]
David Kemp
Kenneth Reitz [Wed, 25 Jan 2012 16:25:26 +0000 (08:25 -0800)]
Merge pull request #387 from davidarkemp/develop
fix problem with path being double escaped
David Kemp (Work) [Wed, 25 Jan 2012 16:21:07 +0000 (16:21 +0000)]
fix problem with path being double escaped
Kenneth Reitz [Wed, 25 Jan 2012 14:04:41 +0000 (09:04 -0500)]
Merge branch 'develop' of https://github.com/mastahyeti/requests into develop
Kenneth Reitz [Wed, 25 Jan 2012 14:03:20 +0000 (09:03 -0500)]
moar tests
Piotr Dobrogost [Tue, 24 Jan 2012 20:56:59 +0000 (21:56 +0100)]
Standard tests from RequestsTestSuite run using async api
Ben [Tue, 24 Jan 2012 15:59:41 +0000 (09:59 -0600)]
added myself to authors.rst
Mastahyeti [Tue, 24 Jan 2012 02:56:05 +0000 (20:56 -0600)]
moved call to pre_request hook, allowing for more meaningful use.
Kenneth Reitz [Mon, 23 Jan 2012 07:52:38 +0000 (02:52 -0500)]
80k
Kenneth Reitz [Mon, 23 Jan 2012 07:49:10 +0000 (02:49 -0500)]
@takluyver
Kenneth Reitz [Mon, 23 Jan 2012 07:43:38 +0000 (02:43 -0500)]
text
Kenneth Reitz [Mon, 23 Jan 2012 07:42:34 +0000 (02:42 -0500)]
r.text
Kenneth Reitz [Mon, 23 Jan 2012 07:42:05 +0000 (02:42 -0500)]
explain binary response data
Kenneth Reitz [Mon, 23 Jan 2012 07:34:42 +0000 (02:34 -0500)]
better feature list
Kenneth Reitz [Mon, 23 Jan 2012 07:32:09 +0000 (02:32 -0500)]
r.text
Kenneth Reitz [Mon, 23 Jan 2012 07:31:16 +0000 (02:31 -0500)]
readme update
Kenneth Reitz [Mon, 23 Jan 2012 07:28:01 +0000 (02:28 -0500)]
PYTHON 3
Kenneth Reitz [Mon, 23 Jan 2012 07:21:35 +0000 (02:21 -0500)]
pythons
Kenneth Reitz [Mon, 23 Jan 2012 07:21:30 +0000 (02:21 -0500)]
new pythons!
Kenneth Reitz [Mon, 23 Jan 2012 07:19:56 +0000 (02:19 -0500)]
don't let that happen...
Kenneth Reitz [Mon, 23 Jan 2012 07:18:26 +0000 (02:18 -0500)]
v0.10.1
Kenneth Reitz [Mon, 23 Jan 2012 07:03:16 +0000 (02:03 -0500)]
dammit, i changed again
Kenneth Reitz [Mon, 23 Jan 2012 07:01:53 +0000 (02:01 -0500)]
fix 26
Kenneth Reitz [Mon, 23 Jan 2012 06:59:13 +0000 (01:59 -0500)]
assert isinstance
Kenneth Reitz [Mon, 23 Jan 2012 06:58:32 +0000 (01:58 -0500)]
assert isinstance
Kenneth Reitz [Mon, 23 Jan 2012 06:56:58 +0000 (01:56 -0500)]
no more unittest2
Kenneth Reitz [Mon, 23 Jan 2012 06:54:00 +0000 (01:54 -0500)]
yikes
Kenneth Reitz [Mon, 23 Jan 2012 06:52:33 +0000 (01:52 -0500)]
hmm
Kenneth Reitz [Mon, 23 Jan 2012 06:48:40 +0000 (01:48 -0500)]
cchch changes
Kenneth Reitz [Mon, 23 Jan 2012 06:47:39 +0000 (01:47 -0500)]
requirements.txt
Kenneth Reitz [Mon, 23 Jan 2012 06:46:41 +0000 (01:46 -0500)]
new certifi
Kenneth Reitz [Mon, 23 Jan 2012 06:44:07 +0000 (01:44 -0500)]
fixes
Kenneth Reitz [Mon, 23 Jan 2012 06:44:01 +0000 (01:44 -0500)]
reqs fixes
Kenneth Reitz [Mon, 23 Jan 2012 06:32:09 +0000 (01:32 -0500)]
oh snap
Kenneth Reitz [Mon, 23 Jan 2012 06:02:16 +0000 (01:02 -0500)]
SimpleCookie
Kenneth Reitz [Mon, 23 Jan 2012 06:01:42 +0000 (01:01 -0500)]
urllib3 update
Kenneth Reitz [Mon, 23 Jan 2012 05:52:38 +0000 (00:52 -0500)]
more stuff and things