Cory Benfield
b0657cf163
Guard against users sending unprepared requests.
2013-02-10 06:13:02 +00:00
Cory Benfield
d437c338d0
Add Proxy-Auth header when proxies have credentials.
2013-02-06 18:40:35 +00:00
Kenneth Reitz
9fc7059140
Merge pull request #1151 from sigmavirus24/fix1133
...
Move redirect handling from Session.request to Session.send
2013-02-05 11:42:51 -08:00
Yehuda Sadeh
b07c1ebd85
Fix POST 303 redirect resonse handling
...
This fixes issue #1156 .
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com >
2013-01-31 11:23:09 -08:00
Christopher Bare
9ff8cbe5fb
shorten filename by os.path.basename in guess_filename(obj)
2013-01-30 15:33:43 -08:00
Ian Cordasco
ba485913b6
Thanks to @maxcountryman for the code review
2013-01-30 10:58:32 -05:00
Ian Cordasco
a95bfd3032
Fix the elapsed test and #1133
2013-01-29 23:50:37 -05:00
Cory Benfield
2f7923bc05
More useful docstring.
2013-01-28 18:35:41 +00:00
Cory Benfield
2ac3913733
Make Response objects iterable.
2013-01-28 18:35:41 +00:00
Ian Cordasco
c8ad4f0b73
Move the timing work to Session.send
...
per @kennethreitz 's request
2013-01-28 11:53:02 -05:00
Kenneth Reitz
25545b393b
Merge pull request #1146 from oczkers/master
...
It`s more pep8 now
2013-01-27 19:11:15 -08:00
Chris Lee
318300848f
Use timedelta and change attribute name back to elapsed
2013-01-27 19:07:48 -08:00
Chris Lee
d4aaef1e9a
Time how long each request takes
...
Stored as attribute Response.time_taken
2013-01-27 19:06:50 -08:00
oczkers
40a060cf57
it`s more pep8 now
2013-01-27 02:04:12 +01:00
Kenneth Reitz
9d1d927420
Merge pull request #1103 from dmckeone/master
...
Restore the ability to use a list of 2-tuples for the data keyword argument with requests.post.
2013-01-25 21:02:01 -08:00
Kenneth Reitz
440aeca5d4
Merge pull request #1123 from andrewjesaitis/master
...
Fixes DigestAuth with Sessions
2013-01-25 21:00:33 -08:00
Johnny Goodnow
8d8865aadb
Remove Content-Length from GET/HEAD by default.
...
Now, Content-Length is only auto-added for non-GET/HEAD requests.
2013-01-25 20:50:58 -08:00
Johnny Goodnow
f7c10ca74d
Always add Content-Length to HTTP PATCH.
2013-01-25 12:07:24 -08:00
Johnny Goodnow
44b1e7ebea
Remove default Content-Length from GET requests.
...
Fix #1051 .
2013-01-24 21:13:32 -08:00
sprt
ab2e7df8a9
Merge branch 'master' of git://github.com/kennethreitz/requests
...
Conflicts:
test_requests.py
2013-01-24 18:36:53 +01:00
Scott Burns
2bcc4a774a
Pass kwargs to json.loads
...
Not all JSON is created equally. This commit
addresses when users want to take control of the
json decode process.
2013-01-23 15:25:48 -06:00
Andrew Jesaitis
34268b16c3
Moves num_401_calls counter to HTTPDigestAuth
2013-01-23 10:32:56 -07:00
Ian Cordasco
1cfe59299b
Only call the hook once.
2013-01-23 11:51:37 -05:00
Ian Cordasco
e771aa9386
Comment & replace something that keeps disappearing
2013-01-23 11:28:30 -05:00
sprt
cc7bee19f0
Refactor prepare_hooks()
2013-01-23 15:45:44 +01:00
sprt
088f908d58
Add missing import
2013-01-23 15:45:14 +01:00
sprt
c4ad8afba9
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
requests/sessions.py
2013-01-23 14:42:45 +01:00
Kenneth Reitz
0c09d16b29
Merge pull request #1125 from juanriaza/master
...
HTTPDigestAuth: missing algorithm field
2013-01-22 19:43:50 -08:00
Kenneth Reitz
30573b2d8b
Merge pull request #1116 from Lukasa/master
...
Correct type of Content-Length headers.
2013-01-22 18:51:17 -08:00
Kenneth Reitz
1a87f15e6f
Merge pull request #1117 from sigmavirus24/issue1106
...
Fix #1106
2013-01-22 18:48:31 -08:00
Kenneth Reitz
472a5b4748
Merge pull request #1127 from sigmavirus24/fix1126
...
A simple fix
2013-01-22 17:53:16 -08:00
Mantas Vidutis
6e53290acd
update urllib3 to current master with ssl bugfixes
2013-01-22 14:40:10 -08:00
Ian Cordasco
ca85b4ec6c
Tests pass this time.
2013-01-22 17:22:12 -05:00
Juan Riaza
a6360ca134
missing algorithm field
2013-01-22 16:35:16 +01:00
Kenneth Reitz
3bf46609c8
Merge pull request #1097 from matthewlmcclure/issues/1096
...
Resolves the parts of #1096 in requests proper.
2013-01-22 05:11:14 -08:00
Ian Cordasco
27e814ad76
Fix failing tests.
2013-01-21 20:21:08 -05:00
Andrew Jesaitis
03893d9b7f
Fixes repeated 401s when using DigestAuth with a session
2013-01-21 16:34:11 -07:00
Cory Benfield
297aa04bea
Decrease default line length for iter_lines
2013-01-21 21:15:04 +00:00
Ian Cordasco
e1c4fe21d4
Fix #1106
2013-01-19 11:49:52 -05:00
Cory Benfield
89c8cbbe0c
Ensure Content-Length is a string.
2013-01-19 12:07:34 +00:00
Kenneth Reitz
16ba63ccde
Merge pull request #1114 from vlaci/master
...
Keep-alive support for http proxies
2013-01-18 05:40:26 -08:00
László Vaskó
347a52aa5c
Fixed proxy requests to pool connections.
2013-01-18 13:41:14 +01:00
Shivaram Lingamneni
985a906c6c
Remove support for certifi
...
As per #1105 , certifi is being end-of-lifed. Requests will use either
its own vendored bundle, or possibly (when packaged with OS distributions)
an externally packaged bundle, which can be enabled by patching
requests.certs.where().
2013-01-17 20:44:01 -08:00
Shivaram Lingamneni
b66427eab9
remove the TURKTRUST root certificates, as per #1102
2013-01-17 02:02:49 -08:00
David McKeone
35d4a47cb1
Allow passing POST data with a list of 2-tuples.
2013-01-16 11:53:24 -07:00
sprt
a721d590b4
Make hooks work with prepared requests
2013-01-12 21:46:44 +01:00
Matt McClure
628e393b9a
Resolves the parts of #1096 in requests proper.
2013-01-11 15:04:47 -05:00
Kenneth Reitz
1a7c91f658
Merge remote-tracking branch 'origin/master'
2013-01-10 02:13:06 -05:00
Kenneth Reitz
41687c8fa8
v1.1.0 and docs
2013-01-10 02:13:02 -05:00
Kenneth Reitz
91f6e69cc4
Merge pull request #1092 from jianlius/case-insensitive-update
...
Make merge_kwargs case-insensitive when looking up keys.
2013-01-09 23:07:45 -08:00