Ian Cordasco
|
e7bc9bf1b2
|
Preserve the original request.
Let's make a copy to preserve it.
|
2013-02-10 17:11:16 -05:00 |
|
Ian Cordasco
|
e2ad0d0fe8
|
We shouldn't be sending the data on redirect.
As such, we should remove the body from the old request as well as the
Content-Length header.
|
2013-02-10 17:11:16 -05:00 |
|
Ian Cordasco
|
3299771e34
|
Fix the potential issue mentioned in #1151
See: https://github.com/kennethreitz/requests/pull/1151#issuecomment-12905796
This is solved by just reusing the PreparedRequest from the last request.
|
2013-02-10 17:11:16 -05:00 |
|
Kenneth Reitz
|
f2be5fae27
|
Merge pull request #1161 from sigmavirus24/fix1159
If Content-Length is already set, don't override
|
2013-02-10 14:07:08 -08:00 |
|
Kenneth Reitz
|
90cd37fda0
|
Merge pull request #1119 from Lukasa/diags
Better diagnostics when trying to send unprepared request
|
2013-02-10 14:06:38 -08:00 |
|
Cory Benfield
|
b0657cf163
|
Guard against users sending unprepared requests.
|
2013-02-10 06:13:02 +00:00 |
|
Kenneth Reitz
|
03f6908fe9
|
Merge pull request #1162 from Lukasa/proxy_auth
Proxy Authorization Headers
|
2013-02-06 13:05:04 -08:00 |
|
Kenneth Reitz
|
c68f928254
|
Merge pull request #1168 from Lukasa/freeze
Feature freeze.
|
2013-02-06 11:53:55 -08:00 |
|
Cory Benfield
|
ff954e16f1
|
Feature freeze.
|
2013-02-06 19:01:24 +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 |
|
Ian Cordasco
|
544d08d0f6
|
If Content-Length is already set, don't override
Re: #1159
|
2013-02-01 11:58:23 -05:00 |
|
Kenneth Reitz
|
ae55676a50
|
Merge pull request #1158 from yehudasa/master
Fix check that breaks handling of 303 response in some cases (v2)
|
2013-02-01 07:30:47 -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 |
|
Kenneth Reitz
|
113b67c069
|
moar
|
2013-01-31 14:35:42 +00:00 |
|
Kenneth Reitz
|
12246afab8
|
HMG
|
2013-01-31 13:20:14 +00:00 |
|
Kenneth Reitz
|
85da715f40
|
Merge pull request #1153 from cbare/master
use only base filename in multipart file upload
|
2013-01-30 15:56:21 -08:00 |
|
Kenneth Reitz
|
b554b0c1cb
|
Merge pull request #1152 from ekatsah/patch-1
Update docs/user/advanced.rst
|
2013-01-30 15:54:20 -08:00 |
|
Christopher Bare
|
9ff8cbe5fb
|
shorten filename by os.path.basename in guess_filename(obj)
|
2013-01-30 15:33:43 -08:00 |
|
ekatsah
|
79727abb32
|
Update docs/user/advanced.rst
Rephrasing a line in the docs, add explicite mention of "client side certificate" (for indexing and clarity)
|
2013-01-30 21:22:24 +01: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 |
|
Kenneth Reitz
|
207a2744aa
|
Merge pull request #1143 from Lukasa/master
Response as iterator
|
2013-01-28 20:52:17 -08:00 |
|
Cory Benfield
|
95084c9ca8
|
Fix test for Py3.
|
2013-01-28 18:35:41 +00: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 |
|
Kenneth Reitz
|
231e343a3b
|
Merge pull request #1148 from sigmavirus24/timing_switch
Move the timing work to Session.send
|
2013-01-28 09:40:10 -08: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 |
|
Kenneth Reitz
|
dfa89e299a
|
Merge pull request #1138 from clee/master
Time each request
|
2013-01-27 19:10:16 -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
|
ac5e6807fa
|
Merge pull request #1145 from sigmavirus24/master
Mock the links test
|
2013-01-26 09:05:19 -08:00 |
|
Ian Cordasco
|
250896b7f3
|
Mock the links test.
|
2013-01-26 11:55:08 -05: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 |
|
Kenneth Reitz
|
b6af86225d
|
Merge pull request #1140 from ralphbean/cookie-test
Test for cookie parameters.
|
2013-01-25 20:58:35 -08:00 |
|
Kenneth Reitz
|
c50f8f7cc8
|
Merge pull request #1142 from theaeolianmachine/removeGETContentLength
Remove default Content-Length from GET requests.
|
2013-01-25 20:58:20 -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
|
4cac9f07c4
|
Add myself to AUTHORS.
|
2013-01-25 00:19:09 -08:00 |
|
Johnny Goodnow
|
f453892960
|
Fix python 2.6 unittest compatability issue.
|
2013-01-24 21:25:14 -08:00 |
|
Johnny Goodnow
|
44b1e7ebea
|
Remove default Content-Length from GET requests.
Fix #1051.
|
2013-01-24 21:13:32 -08:00 |
|
Ralph Bean
|
4ce6440795
|
purported py2.6 support for cookies test.
|
2013-01-25 00:10:51 -05:00 |
|
Kenneth Reitz
|
22623bd8c2
|
Merge pull request #1099 from sprt/master
Make hooks work with prepared requests
|
2013-01-24 10:00:24 -08:00 |
|
Ralph Bean
|
5861254d8f
|
Test for cookie parameters.
|
2013-01-24 12:47:55 -05:00 |
|
sprt
|
ab2e7df8a9
|
Merge branch 'master' of git://github.com/kennethreitz/requests
Conflicts:
test_requests.py
|
2013-01-24 18:36:53 +01:00 |
|
Kenneth Reitz
|
beec48c8f8
|
Merge pull request #1137 from whit537/unperson_test
Remove a test per @kennethreitz in IRC
|
2013-01-23 17:37:13 -08:00 |
|
Kenneth Reitz
|
b2427223c1
|
Merge pull request #1136 from steveklabnik/test_link_header
introduce a test for link headers.
|
2013-01-23 17:34:55 -08:00 |
|