Cory Benfield
cef2589436
Merge pull request #2740 from qingyunha/master
...
params of proxy_headers are inconsistent with its docstrings
2015-08-24 13:43:01 +01:00
qingyunha
9d88810d52
modify proxy_headers docstrings
2015-08-24 19:48:17 +08:00
Cory Benfield
5d6d1bc284
Merge pull request #2737 from mjpieters/fix_dict_iteration_issue_2706
...
Avoid altering dictionary size during iteration
2015-08-21 09:08:19 +01:00
Martijn Pieters
4947cd01ae
Avoid altering dictionary size during iteration, by gathering keys that need to be deleted first.
...
Fixes `RuntimeError` on Python 3 introduced in 53ea23128e
2015-08-21 08:44:09 +01:00
Ian Cordasco
c7c26fb8eb
Merge pull request #2730 from bmispelon/doc-codeblock-fix
...
Fixed minor rendering issue in documentation code blocks
2015-08-15 15:02:06 -05:00
Baptiste Mispelon
7197afa887
Fixed minor rendering issue in documentation code blocks
2015-08-15 21:56:24 +02:00
Cory Benfield
3cf4ec41b9
Merge pull request #2729 from smiley/patch-1
...
Add own name to "AUTHORS" after PR #2724
2015-08-15 14:42:21 -04:00
Smiley Barry
2411b1f56a
Added name to AUTHORS after PR #2724
2015-08-15 21:00:13 +03:00
Ian Cordasco
53ea23128e
Merge pull request #2706 from ak1r4/fix-merge-setting
...
Fix merge setting for not preserving original order of dict parameters
2015-08-15 10:39:46 -05:00
Cory Benfield
fdc76f12e5
Merge pull request #2728 from lukasgraf/docs-fix-timeout-links
...
Docs: Fix links to `timeouts` section by using :ref:
2015-08-15 09:24:20 -04:00
Lukas Graf
f40bd0f707
Docs: Fix links to timeouts section by using :ref: instead of
...
linking to .html files.
2015-08-15 12:03:05 +02:00
Cory Benfield
98a59e4894
Merge pull request #2724 from smiley/master
...
Add documentation in "More complicated POST requests" (Quickstart) to resolve #2686
2015-08-14 15:30:00 -04:00
Smiley Barry
b1de7e7287
Changed phrasing to be a little clearer.
2015-08-14 17:31:54 +03:00
Smiley Barry
5a9097dc4b
Update quickstart.rst
...
Added note about the `json` parameter in `requests.post`.
2015-08-14 17:15:51 +03:00
Ian Cordasco
408d75d47a
Merge pull request #2713 from lukasgraf/master
...
Docs: Clarify that method-level parameters are not persisted in sessions.
2015-08-07 20:18:21 -05:00
Lukas Graf
1bb91653cc
Docs: Clarify that method-level params are not persisted in sessions.
2015-08-08 01:57:06 +02:00
kennethreitz
313143959e
Merge pull request #2712 from lukasgraf/master
...
Document use of sessions as context managers
2015-08-07 16:41:21 -04:00
Lukas Graf
8f3ddbeefb
Mention connection pooling in session docs.
2015-08-07 20:48:07 +02:00
Lukas Graf
75c1776bde
Document use of sessions as context managers.
2015-08-07 20:48:03 +02:00
Akira J
276202f51e
Fix merge setting for not preserving original order of dict parameters
2015-08-04 22:47:12 +01:00
Cory Benfield
9b067db19e
Merge pull request #2704 from sYnfo/patch-1
...
Mention SNI being backported to Python2.7.9 in FAQ
2015-08-04 09:54:30 -04:00
Matej Stuchlik
e8a4784c8f
Mention SNI being backported to Python2.7.9 in FAQ
...
That happened as part of PEP 466 - "Network Security Enhancements for Python 2.7"
2015-08-04 15:05:35 +02:00
Cory Benfield
9648301e1e
Merge pull request #2680 from peplin/patch-1
...
Fix docs for passing a list of values for a query string
2015-07-19 10:57:01 +01:00
Christopher Peplin
6648defcdd
Fix docs for passing a list of values for a query string
...
The special `[]` notation at the end of the field name is not necessary to get a field to appear with multiple values in the query string.
2015-07-18 18:50:29 -04:00
Cory Benfield
b4c1feac43
Merge pull request #2679 from sigmavirus24/bug/2668
...
Remove broken CaseInsensitiveDict repr test
2015-07-18 16:48:26 +01:00
Ian Cordasco
b8a297baab
Remove broken CaseInsensitiveDict repr test
...
Fixes #2668
2015-07-18 10:47:26 -05:00
Ian Cordasco
d0aecb271f
Merge pull request #2506 from Lukasa/chunkeddocs
...
Expand on chunked handling.
2015-07-18 10:44:31 -05:00
Cory Benfield
2b5cdc56f3
Expand on chunk length
2015-07-18 16:41:29 +01:00
Ian Cordasco
0be38a0c37
Merge pull request #2672 from petedmarsh/fix-custom-headers-example
...
Fix quickstart "Custom Headers" example intro
2015-07-15 20:51:06 -05:00
Peter Marsh
beaa7e4180
Fix quickstart "Custom Headers" example intro
...
Previously this section prefaced an example with:
For example, we didn't specify our content-type
But, the actual example set a custom user-agent header on the request. This
changes it to say "user-agent" instead which matches the given example.
2015-07-15 23:31:21 +01:00
Cory Benfield
2b26489f74
Merge pull request #2666 from gvangool/extra_tests
...
Adds extra tests for CaseInsensitiveDict
2015-07-14 07:57:58 +01:00
Gert Van Gool
3b325f1bc5
assert that the copy() is not the original
2015-07-14 08:10:13 +02:00
Gert Van Gool
47e71d1774
Don't test the NotImplemented, just make sure it's False
2015-07-13 15:07:38 +02:00
Gert Van Gool
147a305da8
Adds extra tests for CaseInsensitiveDict
...
- Test for NotImplemented in __eq__
- Adds test for copy()
- Adds test for __repr__()
2015-07-13 14:33:50 +02:00
Ian Cordasco
2440b6f089
Merge pull request #2661 from Lukasa/timeouts_are_tricky
...
Only pass useful timeouts to _get_conn
2015-07-04 15:19:37 -05:00
Cory Benfield
e9a1e35f89
Only pass useful timeouts to _get_conn
2015-07-03 17:00:38 +01:00
Cory Benfield
e4d59bedfd
Merge pull request #2656 from dpursehouse/get_netrc_auth_errors
...
Allow get_netrc_auth to raise parse/permission errors to caller
2015-06-29 08:24:21 +01:00
David Pursehouse
884cb7a7fb
Change ignore_errors to raise_errors in get_netrc_auth
...
Change-Id: Ib82c7c614edafc15e5db858d9c1b9a73aebd8a95
2015-06-29 12:22:57 +09:00
David Pursehouse
a560e09427
Allow get_netrc_auth to raise parse/permission errors to caller
...
If the netrc file exists but cannot be parsed or read, get_netrc_auth
silently fails.
Add a new argument `ignore_errors` which when set to False will cause
any parse/permission errors to be raised to the caller. The default
value is True, which means the default behavior is unchanged.
Fixes #2654
Change-Id: I7436aaaf593178673ab84fd9e7ab4bcb0e3fe75e
2015-06-29 10:56:51 +09:00
Ian Cordasco
f5dacf8446
Merge pull request #2648 from msabramo/display_url_for_exceptions
...
Display URL as part of HTTP error messages
2015-06-22 16:16:28 -05:00
Marc Abramowitz
e3bdec5934
Display URL as part of HTTP error messages
...
It seems convenient to include the URL in the error message in case you
get an unexpected error.
E.g.:
In [1]: import requests
In [2]: resp = requests.get('http://www.google.com/eofdfdfdfdfd ')
In [3]: resp
Out[3]: <Response [404]>
In [4]: resp.raise_for_status()
---------------------------------------------------------------------------
HTTPError Traceback (most recent call last)
<ipython-input-4-00e7077cfb5b> in <module>()
----> 1 resp.raise_for_status()
/Users/marca/dev/git-repos/requests/requests/models.py in raise_for_status(self)
835
836 if http_error_msg:
--> 837 raise HTTPError(http_error_msg, response=self)
838
839 def close(self):
HTTPError: 404 Client Error: Not Found for url: http://www.google.com/eofdfdfdfdfd
2015-06-22 13:22:59 -07:00
Ian Cordasco
9bbab338fd
Merge pull request #2640 from Lukasa/issue/2636
...
Avoid double releasing chunked upload connections
2015-06-13 08:54:40 -05:00
Cory Benfield
2e62df456a
Avoid double releasing chunked upload connections
...
Resolves #2636
2015-06-13 08:10:53 +01:00
Cory Benfield
8b5e457b75
Merge branch 'colindickson-master'
2015-05-26 20:54:51 +01:00
colin
fd31453aa2
fix unittest typo
2015-05-26 20:53:31 +01:00
Ian Cordasco
a92a2a4263
Merge pull request #2615 from awiddersheim/docs/add_section_labels
...
Docs: Add more section labels for referencing
2015-05-26 09:12:33 -05:00
Andrew Widdersheim
7ba130a0cb
Docs: Add more section labels for referencing
...
Allows for sections to be linked from other projects using Intersphinx.
2015-05-26 09:16:24 -04:00
Cory Benfield
dfdf371a0f
Merge pull request #2610 from colindickson/master
...
fix contextlib.closing bug for sessions where content is not consumed…
2015-05-25 18:15:57 +01:00
colin
f608547bef
Merge remote-tracking branch 'origin/master'
...
Conflicts:
test_requests.py
2015-05-24 15:02:36 -04:00
colin
1da62a65d9
fix contextlib.closing bug for sessions where content is not consumed (issue #2593 )
2015-05-24 15:01:34 -04:00