Cory Benfield
2b8353d3b3
Avoid unnecessary encode/decode cycles.
2014-06-08 10:28:35 +01:00
Cory Benfield
d977ee8a24
Force basic auth strings to native string type
2014-06-08 10:20:32 +01:00
Cory Benfield
22433163b3
Update trivial mentions to RFC 2616.
2014-06-07 09:53:12 +01:00
Kenneth Reitz
702283093a
v2.3.1 changelog
2014-05-30 13:36:18 -04:00
kennethreitz
75cd0a9bd9
Merge pull request #2078 from dgouldin/2077
...
Allow copying of PreparedRequests without headers/cookies
2014-05-30 13:33:29 -04:00
David Gouldin
32f600b083
Allow copying of PreparedRequests without headers/cookies
2014-05-30 10:11:53 -07:00
kennethreitz
69996114d9
Merge pull request #2072 from sigmavirus24/fix-urlencoded-bytes
...
Check for basestring, not just str
2014-05-29 10:39:42 -04:00
Cory Benfield
785e4ab360
Merge pull request #2074 from Lukasa/filedoc
...
Ensure that we open files in binary mode in the docs.
2014-05-28 17:01:10 +01:00
Cory Benfield
a2413e010f
Ensure that we open files in binary mode.
2014-05-28 16:59:57 +01:00
Ian Cordasco
5ab79e2514
Remove unnecessary check for builtin_str
2014-05-28 08:17:18 -05:00
Ian Cordasco
3faff0b8ea
Check for basestring, not just str
...
Fixes #2071
2014-05-27 20:29:44 -05:00
kennethreitz
6c72509f5b
Merge pull request #2059 from jschneier/master
...
remove unused IteratorProxy
2014-05-27 11:28:11 -04:00
kennethreitz
e71282394c
Merge pull request #2064 from mgeisler/simplejson-syntax-error-import
...
compat: handle SyntaxError when importing simplejson
2014-05-27 11:25:54 -04:00
kennethreitz
ddd748e67a
Merge pull request #2065 from mgeisler/tox
...
Fix Python 3.2 compatibility in tests
2014-05-27 11:24:47 -04:00
kennethreitz
0d40d97d3e
Merge pull request #2069 from Lukasa/request
...
Document and initialise Response.request
2014-05-27 11:11:21 -04:00
Cory Benfield
3346ad1134
Document and initialise Response.request
2014-05-26 16:40:45 +01:00
Martin Geisler
c8916a08de
test: restore Python 3.2 compatibility
...
The tests were broken because they used the u'...' Unicode literal
syntax which disappeared in Python 3.0 to 3.2.
We can work around this by conditionally defining a "u" function which
will produce a Unicode literal on Python 2.x. This is basically the
same approach as taken by the six library often used for writing
cross-version compatible code.
2014-05-26 16:20:39 +02:00
Martin Geisler
f4d1bbb7c5
faq: add Python 3.4 to list of supported Python versions
...
No code changes were necessary for this.
2014-05-26 16:20:03 +02:00
Martin Geisler
5eea4a3767
faq: mention that PyPy 2.2 works too
...
The FAQ says that PyPy 1.9 is supported. On my Debian Unstable, I can
install PyPy 2.2.1 and the tests work with that version too.
2014-05-26 16:19:17 +02:00
Martin Geisler
3b0fcb620d
compat: handle SyntaxError when importing simplejson
...
We officially support Python 2.6 to 3.3, but simplejson does not
support Python 3.1 or 3.2:
https://github.com/simplejson/simplejson/issues/66
Importing simplejson on Python 3.2 results in a SyntaxError because
simplejson uses the u'...' syntax (the syntax was not supported in
Python 3.0 to 3.2).
Support for loading simplejson instead of the stdlib json module was
added by #710 :
https://github.com/kennethreitz/requests/pull/710
No mention was made of the lack of support for Python 3.2, but it was
mentioned that simplejson can be faster than the stdlib json module.
2014-05-26 00:56:35 +02:00
Josh Schneier
7815953cb4
remove unused IteratorProxy
2014-05-23 11:52:17 -04:00
Ben Bass
54e96b40b7
allow pool_kwargs to be specified in init_poolmanager
2014-05-18 20:24:35 +01:00
Ben Bass
02618c8df5
improve proxy_manager_for re-usability by subclass
2014-05-18 20:10:35 +01:00
Ben Bass
e3d0ac7c9d
update AUTHORS.rst
2014-05-17 23:22:15 +01:00
Ben Bass
f97e78726e
Factor out HTTPAdapter.proxy_manager_for for #2048
2014-05-17 23:15:51 +01:00
Cory Benfield
a7c218480d
Merge pull request #2047 from Hasimir/master
...
Fixed paragraph formatting in Urllib3/MIT License.
2014-05-17 16:37:31 +01:00
Ben McGinnes
eebae9c63b
Fixed paragraph formatting in Urllib3/MIT License.
2014-05-18 01:16:27 +10:00
Ian Cordasco
c43ecd1c47
Merge pull request #2046 from alex/patch-2
...
Fixed a typo
2014-05-16 16:05:41 -05:00
Kenneth Reitz
76c09e7076
ignot dist
2014-05-16 15:30:48 -04:00
Alex Gaynor
53d3519a35
Fixed a typo
2014-05-16 14:11:05 -04:00
Kenneth Reitz
6366d3dd19
v2.3.0
v2.3.0
2014-05-16 13:55:47 -04:00
Kenneth Reitz
b26c85f081
history update
2014-05-16 13:55:06 -04:00
Kenneth Reitz
343db40375
Merge remote-tracking branch 'origin/master'
2014-05-16 13:44:21 -04:00
kennethreitz
bbed65d100
Merge pull request #2040 from Lukasa/clog
...
Initial 2.3.0 changelog.
2014-05-16 10:37:32 -04:00
Cory Benfield
24986f853c
Merge pull request #2041 from pawroman/patch-1
...
Fix typo in advanced.rst docs
2014-05-13 11:31:24 +01:00
Paweł Romanowski
a7e7241616
Fix typo in advanced.rst docs
...
`Sesssion` -> `Session`
2014-05-13 10:11:40 +02:00
kennethreitz
739d153ef7
Merge pull request #1944 from schlamar/redirect-decoding
...
Catch errors while handling redirects
2014-05-12 16:50:33 -04:00
schlamar
16459910a9
Added test for redirect with wrong gzipped header.
2014-05-12 22:45:45 +02:00
schlamar
5e860c08d8
Added test case to handle response of streamed redirects.
...
Credits go to @zackw.
2014-05-12 22:45:45 +02:00
schlamar
59c8d81381
Read content in Session.send instead of Adapter.send.
2014-05-12 22:42:54 +02:00
schlamar
c2a1f28a2e
Catch possible exceptions while consuming content of redirect responses.
2014-05-12 22:42:53 +02:00
Cory Benfield
679ab5bc20
Initial 2.3.0 changelog.
2014-05-12 20:30:10 +01:00
Kenneth Reitz
c15a8f8a3d
CaseInsensitiveDict now looks like a normal dict
2014-05-12 15:10:15 -04:00
kennethreitz
5893cfcd90
Merge pull request #1972 from avidas/response_str
...
Add __str__ to case insensitive dict
2014-05-12 15:08:31 -04:00
kennethreitz
c023f06aad
Merge pull request #1924 from schlamar/proxy-default-scheme
...
Default proxy scheme to HTTP
2014-05-12 15:05:56 -04:00
kennethreitz
569cd23c00
Merge pull request #1937 from jaraco/master
...
Improved decoding support for Response.iter_content and iter_lines
2014-05-12 15:04:35 -04:00
kennethreitz
be2674bf3c
Merge pull request #2038 from dstufft/update-urllib3
...
Update urllib3 to 4fb351cd2
2014-05-12 14:50:36 -04:00
Donald Stufft
626c48e947
Update urllib3 to 4fb351cd2
2014-05-12 14:43:50 -04:00
Cory Benfield
07f9a7ea02
Remove references to not-yet-made 2.3.0 release.
2014-05-03 10:59:14 +01:00
kennethreitz
02a76b79a1
Merge pull request #2026 from Lukasa/updateurllib3
...
ImportError: No module named 'requests.packages.urllib3.util'
2014-05-02 15:09:39 -04:00