Kenneth Reitz
569b59f495
v1.2.1
v1.2.1
2013-05-20 16:10:23 -04:00
Kenneth Reitz
2afe3b2e99
Merge pull request #1370 from sigmavirus24/origin_req_host
...
Add an extra property for Python 3.3
2013-05-20 12:57:38 -07:00
Ian Cordasco
9ce7f0bf5b
Attempt a fix for @michaelhelmick
2013-05-20 10:58:03 -04:00
Kenneth Reitz
7430a49f45
Merge remote-tracking branch 'origin/master'
2013-05-17 09:31:11 +02:00
Kenneth Reitz
538dbaecbe
download image!
2013-05-17 09:31:01 +02:00
Kenneth Reitz
5943afa25d
Merge pull request #1363 from dave-shawley/master
...
Fix for #1362
2013-05-16 23:23:04 -07: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
Kenneth Reitz
eacb91afb1
Merge pull request #1327 from ambv/adapter_order
...
Fixes #1320 : transport adapters stored in ordered form
2013-05-15 09:43:57 -07:00
Łukasz Langa
4c8af1fff4
Fixes #1320 : transport adapters stored in ordered form
2013-05-15 13:34:09 +02:00
Kenneth Reitz
e7786ec14f
Merge pull request #1355 from sigmavirus24/fix_links
...
Prevent a KeyError when there's no link headers
2013-05-09 01:03:49 -07:00
Ian Cordasco
88fda94218
Prevent a KeyError when there's no link headers
2013-05-08 23:26:49 -04:00
Kenneth Reitz
b599886beb
Merge pull request #1352 from nicoddemus/docs-link-on-readme
...
Adding link to documentation in README.rst
2013-05-07 10:01:32 -07:00
Kenneth Reitz
7aedc6bb22
Merge pull request #1342 from mexicat/master
...
Fixed example in authentication docs
2013-05-07 10:01:18 -07:00
Bruno Oliveira
efefc6b778
Adding link to documentation in README.rst
...
Just adding a link to the documentation at python-requests.org
2013-05-06 23:46:59 -03:00
Kenneth Reitz
50e592209f
Merge pull request #1347 from hobarrera/master
...
Issue #749 : Add optional SNI support for python2.
2013-05-04 13:11:46 -07:00
Hugo Osvaldo Barrera
18857a0eed
Issue #749 : Add optional SNI support for python2.
...
SNI support will be enabled for python2 if ndg-httpsclient and pyopenssl are available.
2013-05-03 21:05:42 -03:00
giacomo
8781b56a0e
Fixed example in authentication docs
2013-05-02 18:16:19 +03:00
Kenneth Reitz
e585e496c9
Merge pull request #1341 from cdunklau/docstring_test_1329
...
Minor update to tests, added docstrings
2013-05-01 11:40:02 -07:00
Colin Dunklau
f93275c47f
Minor update to tests, added docstrings
...
Requested by @sigmavirus24.
2013-05-01 12:51:09 -05:00
Kenneth Reitz
4f83ef8328
Merge pull request #1314 from duailibe/master
...
Fix small typo in the Support docs
2013-05-01 10:29:40 -07:00
Kenneth Reitz
0f1bb96f01
Merge pull request #1337 from amercader/master
...
Fix minor issues on the API docs
2013-05-01 10:28:18 -07:00
Kenneth Reitz
e6e9b550c0
Merge pull request #1339 from cdunklau/case_insensitive_headers_cleanup
...
Rewrite CaseInsensitiveDict to work correctly/sanely
2013-05-01 10:27:58 -07:00
Kenneth Reitz
f8f1db8458
Merge pull request #1340 from ambv/tox_ini
...
Remove 3.1 and 3.2 from setup.py, add tox.ini to simplify testing on multiple versions
2013-05-01 10:27:02 -07:00
Łukasz Langa
7e825acd9b
Remove Python 3.1 and 3.2 from the trove classifiers in setup.py
2013-05-01 19:26:12 +02:00
Colin Dunklau
f7596c75dc
Rewrite CaseInsensitiveDict to work correctly/sanely
...
Fixes #649 and #1329 by making Session.headers a CaseInsensitiveDict,
and fixing the implementation of CID. Credit for the brilliant idea
to map `lowercased_key -> (cased_key, mapped_value)` goes to
@gazpachoking, thanks a bunch.
Changes from original implementation of CaseInsensitiveDict:
1. CID is rewritten as a subclass of `collections.MutableMapping`.
2. CID remembers the case of the last-set key, but `__setitem__`
and `__delitem__` will handle keys without respect to case.
3. CID returns the key case as remembered for the `keys`, `items`,
and `__iter__` methods.
4. Query operations (`__getitem__` and `__contains__`) are done in
a case-insensitive manner: `cid['foo']` and `cid['FOO']` will
return the same value.
5. The constructor as well as `update` and `__eq__` have undefined
behavior when given multiple keys that have the same `lower()`.
6. The new method `lower_items` is like `iteritems`, but keys are
all lowercased.
7. CID raises `KeyError` for `__getitem__` as normal dicts do. The
old implementation returned
6. The `__repr__` now makes it obvious that it's not a normal dict.
See PR #1333 for the discussions that lead up to this implementation
2013-04-30 14:52:27 -05:00
amercader
505d2487e3
Fix API documentation issues
...
* 'Cookies' and 'Encodings' sections were not built because the
reference to the functions was wrong.
* 'Exceptions' section had a wrong anchor link ('module-requests', same
one as the main heading).
* Remove 'decode_gzip' function, which is no longer present.
2013-04-30 16:15:56 +02:00
Kenneth Reitz
ab36f3cc6f
Merge pull request #1332 from bboe/urllib3
...
Update urllib3 to 59de03e6163c6928dc01832ed6e48e9f6c34c795.
2013-04-28 16:58:08 -07:00
Bryce Boe
49ca72c802
Update urllib3 to 59de03e6163c6928dc01832ed6e48e9f6c34c795.
...
This update includes two fixes:
* https://github.com/shazow/urllib3/issues/149
* https://github.com/shazow/urllib3/issues/174
2013-04-27 14:33:39 -07:00
Kenneth Reitz
d2ba5798ec
Merge pull request #1330 from Kwpolska/patch-1
...
Fixing a tiny typo, noticed while working on the Polish translation
2013-04-27 04:53:37 -07:00
Chris Warrick
c3bef6b0d9
A tiny typo, noticed while working on the Polish translation.
2013-04-27 14:52:35 +03:00
Kenneth Reitz
98dea03710
Merge pull request #1328 from gazpachoking/session_cj_fix
...
Session CookieJar fix
2013-04-26 00:02:28 -07:00
Chase Sterling
0c609b59ab
Fix session CookieJars without breaking more stuff this time
2013-04-25 23:15:50 -04:00
Chase Sterling
a7fef58756
Add another session cookie test
2013-04-25 23:11:43 -04:00
Chase Sterling
3ff8d43801
Fix cookielib import
2013-04-25 22:40:24 -04:00
Chase Sterling
9763a671da
Fix crash when session.cookies was not a RequestsCookieJar
2013-04-25 22:34:51 -04:00
Chase Sterling
1866f7596e
Add test for session cookiejars other than RequestsCookieJar
2013-04-25 22:32:03 -04:00
Kenneth Reitz
8f3f4e2744
milla
2013-04-20 00:22:13 -04:00
Kenneth Reitz
4438bfcc44
Merge remote-tracking branch 'origin/master'
2013-04-20 00:18:33 -04:00
Kenneth Reitz
65b6ef6036
pt
2013-04-20 00:18:27 -04:00
Lucas Duailibe
1ca423ec80
Fix small typo in the Support docs
2013-04-18 20:59:17 -03:00
Kenneth Reitz
770c3d7548
Merge pull request #1313 from iurisilvio/fix_max_redirects_docs
...
Fix max_redirects docs issue #1301
2013-04-17 12:39:03 -07:00
Iuri de Silvio
736e8cd735
Fix max_redirects docs issue #1301
2013-04-17 12:27:06 -07: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
Kenneth Reitz
d13bf9f113
support for draft-tbray-http-legally-restricted-status-02
...
http://datatracker.ietf.org/doc/draft-tbray-http-legally-restricted-stat
us/?include_text=1
2013-04-15 22:47:20 -04:00
Kenneth Reitz
ae5419db17
translations
2013-04-15 03:22:56 -04:00
Kenneth Reitz
9c2f9f61ef
Translatoins
2013-04-15 03:22:48 -04:00
Kenneth Reitz
636476e704
Merge remote-tracking branch 'origin/master'
2013-04-15 03:21:40 -04:00
Kenneth Reitz
aafca7acdc
translations
2013-04-15 03:21:32 -04:00
Kenneth Reitz
a527ecfabd
Merge pull request #1242 from oviboy/master
...
HTTP Digest Auth case insensitive replacement of "Digest "
2013-04-13 20:28:43 -07:00
Kenneth Reitz
967cfbe663
Merge pull request #1299 from schlamar/fix-decompression
...
Use streaming decompression feature of urllib3.
2013-04-13 20:27:46 -07:00