Kenneth Reitz
8b141b326a
json errors
2012-12-16 22:03:55 -05:00
Kenneth Reitz
92d57036f3
WHOOOOOOOOOOOOOOOO
2012-12-15 05:50:01 -05:00
Kenneth Reitz
c6183d273c
fewer comments
2012-12-15 05:19:20 -05:00
Kenneth Reitz
3aefb8edc1
backup
2012-12-15 05:18:23 -05:00
Kenneth Reitz
5ce4b69c9f
working!!!
2012-12-15 05:17:37 -05:00
Kenneth Reitz
ab27027aa8
cookies
2012-12-15 04:33:44 -05:00
Kenneth Reitz
2161d8f78d
encode files
2012-12-15 03:34:54 -05:00
Kenneth Reitz
31d10c0b2b
really coming together
2012-12-15 03:31:13 -05:00
Kenneth Reitz
366e8e8498
basics working
2012-12-15 03:04:42 -05:00
Kenneth Reitz
edfd0990b5
prepare
2012-12-15 00:45:12 -05:00
Kenneth Reitz
4a9f3572a3
logging handlers
...
Closes #971
2012-12-14 23:51:53 -05:00
Kenneth Reitz
2acce4221e
always get cookies
2012-12-14 23:39:10 -05:00
Jamshid Afshar
500dc78867
Issue #996 Location should not be followed unless 30X response.
2012-12-11 18:14:13 -06:00
Cory Benfield
93b2be48f0
Prefetch must be false to use response.raw.
...
Resolves issue #979 .
2012-12-04 18:10:33 +00:00
László Vaskó
5eb78876e1
Added support for persistent connections (keep-alive) in proxy mode
2012-12-02 01:28:24 +01:00
Kenneth Reitz
1607a6a3e2
remove danger mode
2012-11-27 12:41:28 -08:00
Kenneth Reitz
95a03532c3
remove strict mode
2012-11-27 12:41:12 -08:00
Kenneth Reitz
27faf7aa69
Merge pull request #955 from Lukasa/issue882
...
Python 3.1 compatibility.
2012-11-26 00:30:49 -08:00
Ian Cordasco
b93fbd30c3
Fix python 3 tests.
2012-11-24 22:43:52 -05:00
Ian Cordasco
61f16d1ddc
Handle files as well.
2012-11-24 22:02:14 -05:00
Ian Cordasco
f003025a37
Attach Content-Length to everything.
...
Closes #223
2012-11-24 21:47:47 -05:00
Cory Benfield
d5f9a2a51c
Avoid using callable().
...
Callable() is not included in Python 3.1, so we shouldn't use it.
2012-11-24 12:15:30 +00:00
Cory Benfield
8da100f652
Respect the no_proxy environment variable.
...
This change is in response to issue #879 .
2012-11-18 12:06:33 +00:00
Cory Benfield
c8b2f7a37b
Update docs to reflect use of params
...
Resolves issue #917 .
2012-11-16 23:05:35 +00:00
Russell Davis
ccf4ca8929
Fix a bug in _encode_params - it wasn't utf-8 encoding strings in values that
...
are iterable but not a list.
2012-11-03 12:58:04 -07:00
Kenneth Reitz
28dc725cfe
Merge pull request #909 from mjpieters/issue765-json-encodings
...
Use a JSON-specific encoding detection when no encoding has been specified
2012-10-27 08:02:55 -07:00
Jonathan Halcrow
724a3889bc
Make sure that url has fragment removed when using a proxy
2012-10-27 09:54:31 -04:00
Martijn Pieters
4decc7986e
Use a JSON-specific encoding detection when no encoding has been specified.
...
JSON *must* be encoded using UTF-8, UTF-16 or UTF-32 (see the [RFC][1]; detect the encoding based on the fact that JSON always starts with 2 ASCII characters.
[1]: http://tools.ietf.org/html/rfc4627#section-3
2012-10-25 17:43:52 +02:00
Kenneth Reitz
aa08f33f98
Merge pull request #884 from everbird/develop
...
Support CJK parameters when post files
2012-10-17 07:21:39 -07:00
Radu Voicilas
820dfb0495
Making the code more PEP8 compliant
2012-10-09 00:42:49 +03:00
Ian Cordasco
4e6cf21d82
Only register callable items in lists
...
Prior to this, you could sneak a list of anything to register_hook and it
would accept it. This will check if the items in the list are callable before
registering them. Also added a regression test to make sure if this gets
changed it will be noticed.
2012-10-09 00:42:49 +03:00
Matt Sweeney
eb6a6b1a23
Simplify error handling when decoding unicode
2012-10-09 00:42:48 +03:00
Matt Sweeney
2bb49ff386
Handle encoding of None when decoding unicode
...
If encoding is None, decoding will throw the following TypeError:
TypeError: unicode() argument 2 must be string, not None
If this is the case, attempt to run without any set encoding
2012-10-09 00:42:48 +03:00
Stephen Zhuang
86b39bf3e3
Support CJK parameters when post files
2012-10-08 16:52:06 +08:00
Ian Cordasco
77677eb71d
Only register callable items in lists
...
Prior to this, you could sneak a list of anything to register_hook and it
would accept it. This will check if the items in the list are callable before
registering them. Also added a regression test to make sure if this gets
changed it will be noticed.
2012-10-01 14:05:27 -04:00
Matt Sweeney
38aced9f90
Simplify error handling when decoding unicode
2012-09-26 12:38:36 -07:00
Matt Sweeney
b1610df282
Handle encoding of None when decoding unicode
...
If encoding is None, decoding will throw the following TypeError:
TypeError: unicode() argument 2 must be string, not None
If this is the case, attempt to run without any set encoding
2012-09-25 15:35:30 -07:00
Ian Cordasco
4dd3d1a1a2
Fix #785 & add regression test.
2012-09-20 11:45:03 -04:00
Kenneth Reitz
d70964a608
Merge pull request #848 from barberj/develop
...
None is not iterable
2012-09-12 10:58:20 -07:00
Eric Hansen
65c19bc0e0
Fix for v3 in deleting empty proxies.
2012-09-12 13:49:34 -04:00
Eric Hansen
2dc7db4730
Fixed issue with empty proxies being passed
2012-09-11 15:40:16 -04:00
barberj
fc1d0fedea
None is not iterable
2012-09-11 08:39:10 -04:00
Kenneth Reitz
b7c3945437
Merge pull request #820 from dergraf/develop
...
Data encoding should take place after calling into auth provider
2012-09-10 20:06:52 -07:00
Ian Cordasco
8081d7b15c
Fixes #817 .
...
Use dicts and lists where necessary but accept both dicts and lists of
2-tuples everywhere.
2012-09-02 23:10:28 -04:00
Shivaram Lingamneni
77cf995165
permissive implementation of iter_content
...
This allows iter_content and iter_lines to succeed without
crashing even after the response content has been fetched
(iter_content gives you an iterator over the prefetched
content)
2012-09-02 01:42:30 -07:00
Andre Graf
06d9faedc6
data encoding must be done after calling an auth provider which might change the data (as auth.OAuth1 does)
2012-08-29 21:20:11 +02:00
Cory Benfield
751e7a0a66
Do not post None values in data.
2012-08-22 22:33:25 +01:00
Kenneth Reitz
c323047dbe
no more multidict
2012-08-21 01:10:55 +10:00
Kenneth Reitz
d8dcd35316
Fixes #711 !
2012-08-21 01:06:33 +10:00
Ian Cordasco
6d418d9132
Fix a fairly critical error on my part.
2012-08-19 16:38:40 -04:00