Sayan Chowdhury
0a52d9405e
minor typo: Fix requests spelling
2013-09-11 20:21:57 +05:30
Cory Benfield
cde6fdd00f
Merge pull request #1587 from kracekumar/patch-1
...
Fixed persistence spelling
2013-09-10 06:43:04 -07:00
kracekumar
a829ef9b46
Fixed persistence spelling
2013-09-10 17:52:29 +05:30
Cory Benfield
c1eb7027fc
Merge pull request #1579 from yang/patch-1
...
Clarify timeout behavior in quickstart doc
2013-09-08 08:05:00 -07:00
Yang Zhang
2cb523b267
Fix typo in Timeouts doc
2013-09-07 00:16:09 -07:00
Yang Zhang
6d0315f78f
Clarify timeout behavior in quickstart doc
2013-09-06 19:27:57 -07:00
Cory Benfield
b891877ee6
Merge pull request #1578 from jparise/jparise-authors
...
Adding myself to the list of contributors.
2013-09-04 23:44:28 -07:00
Jon Parise
9d0d11a369
Adding myself to the list of contributors.
2013-09-04 09:00:03 -07:00
Kenneth Reitz
6c73d864ef
Merge pull request #1575 from jparise/content-encoding
...
Improved content encoding detection.
2013-09-03 19:42:43 -07:00
Jon Parise
b9b5be7c4c
Improved content encoding detection.
...
get_encodings_from_content() can now detect HTML in-document content
encoding declarations in the following formats:
- HTML5
- HTML4
- XHTML 1.x served with text/html MIME type
- XHTML 1.x served as XML
Ref: http://www.w3.org/International/questions/qa-html-encoding-declarations
2013-09-03 16:16:46 -07:00
Cory Benfield
d991fb032a
Merge pull request #1566 from sigmavirus24/update_readme
...
Add link to Contributor Friendly tag in README
2013-09-01 11:25:04 -07:00
Ian Cordasco
9f42a50742
Add link to Contributor Friendly tag
...
Add note that I'm willing to help anyone who is looking to submit a pull request
2013-09-01 13:21:55 -05:00
Cory Benfield
e77344345a
Merge pull request #1556 from ssbarnea/master
...
Added link to StackOverflow questions related to python-requests. This s...
2013-08-27 08:03:33 -07:00
Sorin Sbarnea
a0ffeaa56e
Added link to StackOverflow questions related to python-requests. This should be the default support way for the library, as clearly most questions are supposed to be programming related.
...
Signed-off-by: Sorin Sbarnea <sorin.sbarnea@citrix.com >
2013-08-27 15:39:07 +01:00
Cory Benfield
377ac9501a
Merge pull request #1540 from libbkmz/master
...
Event hooks update
2013-08-18 13:03:03 -07:00
libbkmz
78e5262dbd
Update advanced.rst
2013-08-19 00:01:37 +04:00
Cory Benfield
0f40290039
Merge pull request #1538 from enkore/patch-1
...
Remove superfluous double dot
2013-08-17 23:26:59 -07:00
enkore
4ffc3e4d1f
Remove superfluous double dot
2013-08-18 03:06:34 +02:00
Kenneth Reitz
3dc61e5d68
Merge pull request #1535 from sigmavirus24/ignore_original_response_if_none
...
Skip cookie extraction if necessary
2013-08-16 20:15:18 -07:00
Ian Cordasco
98680b64f4
Skip cookie extraction if necessary
...
If _original_response is never set/is None, then don't try to extract cookies
from the response.
2013-08-16 21:38:20 -05:00
Kenneth Reitz
abfb38bd57
Merge pull request #1508 from dieterv/master
...
remove duplicate comment
2013-07-31 18:36:07 -07:00
Kenneth Reitz
22701d149a
Merge pull request #1500 from gavrie/master
...
Update urllib3 to d89d508
2.0
2013-07-31 18:23:43 -07:00
Kenneth Reitz
d5fd3d3331
Merge pull request #1487 from dpursehouse/rewrite-test_mixed_case_scheme_acceptable
...
Rewrite test cases to remove dependency on httpbin.org and example.com
2013-07-31 18:23:34 -07:00
Kenneth Reitz
d5a8816926
Merge pull request #1498 from Lukasa/incompleteread
...
Wrap IncompleteRead in ChunkedEncodingError.
2013-07-31 18:23:14 -07:00
Kenneth Reitz
6b13ecdc85
Merge pull request #1501 from sigmavirus24/remove_setting_of_hooks
...
Fix duplication of efforts caught by @dofelw
2013-07-31 18:22:58 -07:00
Kenneth Reitz
7eb9a9298e
Merge pull request #1506 from Lukasa/mockrequest
...
Provide 'host' parameter to MockRequest.
2013-07-31 18:22:02 -07:00
Kenneth Reitz
3e6e68baa1
Merge pull request #1507 from buzztabapp/prepared-session-requests
...
Allow preparing of Requests from Session settings without sending.
2013-07-31 18:21:28 -07:00
Robert Estelle
0ab7a52f7c
Merge settings when creating PreparedRequest, don't copy Request.
2013-07-31 13:42:02 -07:00
Dieter Verfaillie
852de116dd
remove duplicate comment
...
This is already mentioned at line 357...
2013-07-31 09:29:24 +02:00
Robert Estelle
0eccb547a2
Add Session.prepare_request test case.
2013-07-30 23:02:13 -07:00
Robert Estelle
d4385f6fc8
Add Request.copy() test case.
2013-07-30 23:01:56 -07:00
Robert Estelle
ee90f0af60
Shallow copy of Request fields in Request.copy()
...
This prevents e.g. modifying the headers of a copied request from
affecting the headers of its source and vice versa. Copying is used with
the intent to mutuate, so allowing this kind of mutation of fields makes
sense.
Is a deep copy better?
2013-07-30 22:59:53 -07:00
Robert Estelle
9edba838b3
Skip unneccessary Request.copy in Session.request
2013-07-30 22:59:11 -07:00
Robert Estelle
b5c136152f
Prepare requests with session settings separately from sending.
2013-07-30 21:39:36 -07:00
Cory Benfield
6ef3710970
Provide 'host' parameter to MockRequest.
2013-07-30 18:21:37 +01:00
Ian Cordasco
37786613e0
Fix duplication of efforts caught by @dofelw
2013-07-29 08:09:07 -05:00
Gavrie Philipson
ea2b639d31
Update urllib3 to d89d508
2013-07-29 11:29:41 +03:00
Cory Benfield
79f3e69f5e
Wrap IncompleteRead in ChunkedEncodingError.
2013-07-28 07:42:17 +01:00
Cory Benfield
9473f15909
Merge pull request #1494 from Lukasa/close
...
Document the Response.close() method.
2013-07-27 23:04:34 -07:00
Kenneth Reitz
77bd9c4a9d
Merge pull request #1476 from sigmavirus24/add_copy_to_prepared_requests
...
[2.0] Add copy method to PreparedRequest objects
2013-07-26 18:16:00 -07:00
Cory Benfield
f401287afb
Document the Response.close() method.
2013-07-25 19:10:42 +01:00
Cory Benfield
3becc47366
Comment markups, courtesy of @sigmavirus24
2013-07-24 16:03:24 +01:00
Kenneth Reitz
7d3d074e66
Merge pull request #1490 from Lukasa/cookiedocs
...
Better cookie docs on sessions.
2013-07-24 06:12:10 -07:00
Cory Benfield
f40a1d6a8a
Better cookie docs on sessions.
2013-07-24 13:25:59 +01:00
David Pursehouse
82c9aa912e
Check the response URL in test_uppercase_scheme_redirect
...
Update the test to check that the URL in the response is the
one that we expect, i.e. the one it was supposed to redirect to.
2013-07-24 17:37:35 +09:00
David Pursehouse
56b5f02551
Rewrite test_uppercase_scheme_redirect to use local httpbin
...
Instead of redirecting to hard-coded 'example.com', use the URL
defined in `HTTPBIN_URL` with the path set to the 'html' endpoint.
2013-07-24 17:18:16 +09:00
David Pursehouse
c4f16c351c
Remove redundant test case test_uppercase_scheme
...
This test verifies that an upper case scheme ('HTTP') works correctly,
but this is already tested in `test_mixed_case_scheme_acceptable`.
2013-07-24 16:58:09 +09:00
David Pursehouse
012cc33d44
Rewrite test_mixed_case_scheme_acceptable to work with local httpbin
...
Instead of using hard-coded urls to httpbin.org, use the url defined
in `HTTPBIN_URL` replacing the scheme as necessary to test the mixed
cases.
Refs #1485
2013-07-24 16:36:10 +09:00
David Pursehouse
415fb53cb4
Remove redundant session in test_mixed_case_scheme_acceptable
2013-07-24 12:15:46 +09:00
Kenneth Reitz
b65b8c5ed3
Merge pull request #1486 from sigmavirus24/use_urljoin
...
Use urlparse.urljointo construct httpbin url
2013-07-23 09:03:05 -07:00