Nate Prewitt
03957eb1c2
v2.25.0
Tests / build (macOS-latest, 2.7) (push) Has been cancelled
Tests / build (macOS-latest, 3.5) (push) Has been cancelled
Tests / build (macOS-latest, 3.6) (push) Has been cancelled
Tests / build (macOS-latest, 3.7) (push) Has been cancelled
Tests / build (macOS-latest, 3.8) (push) Has been cancelled
Tests / build (macOS-latest, 3.9) (push) Has been cancelled
Tests / build (ubuntu-latest, 2.7) (push) Has been cancelled
Tests / build (ubuntu-latest, 3.5) (push) Has been cancelled
Tests / build (ubuntu-latest, 3.6) (push) Has been cancelled
Tests / build (ubuntu-latest, 3.7) (push) Has been cancelled
Tests / build (ubuntu-latest, 3.8) (push) Has been cancelled
Tests / build (ubuntu-latest, 3.9) (push) Has been cancelled
Tests / build (ubuntu-latest, pypy3) (push) Has been cancelled
Tests / build (windows-latest, 2.7) (push) Has been cancelled
Tests / build (windows-latest, 3.5) (push) Has been cancelled
Tests / build (windows-latest, 3.6) (push) Has been cancelled
Tests / build (windows-latest, 3.7) (push) Has been cancelled
Tests / build (windows-latest, 3.8) (push) Has been cancelled
Tests / build (windows-latest, 3.9) (push) Has been cancelled
2020-11-11 11:55:50 -08:00
Nate Prewitt
320a10d142
Remove Pipfile/Pipfile.lock
2020-11-11 10:29:13 -08:00
Nate Prewitt
9cd2d33489
Move CI to Github Actions
2020-11-11 10:29:13 -08:00
Nate Prewitt
2f70990cd3
Merge pull request #5643 from tarmath/netrc
...
Respect the NETRC environment variable
2020-11-01 08:52:01 -08:00
Mathieu Pichette
ba543713d3
Respect the NETRC environment variable
2020-10-31 21:01:30 -07:00
Ian Stapleton Cordasco
1431502331
Merge pull request #5614 from smstong/master
...
small typo corrected.
2020-10-05 13:15:43 -05:00
Jonathan
4840d4a376
small typo corrected.
...
a small typo was corrected.
2020-10-04 20:45:07 -04:00
Ian Stapleton Cordasco
4f6c018715
Merge pull request #5611 from psf/add-codescanning
...
Create codeql-analysis.yml
2020-10-02 17:10:53 -05:00
Ian Stapleton Cordasco
d09c0e0f24
Update codeql-analysis.yml
...
Remove proposed/3.0.0 branch, only ever run against Python sans matrix option
2020-10-02 14:06:24 -05:00
Ian Stapleton Cordasco
941ac53ba0
Create codeql-analysis.yml
2020-10-01 09:19:34 -05:00
Ian Stapleton Cordasco
799a97d360
Merge pull request #5608 from abdullahselek/master
...
Add official Python 3.8 support on Appveyor
2020-09-30 15:35:12 -05:00
Abdullah Selek
ae6144599a
Add official Python 3.8 support on Appveyor
2020-09-30 20:52:35 +01:00
Ae-Mc
333fa8d3f2
Remove reading HISTORY.md in setup.py
2020-09-29 10:36:31 -05:00
Martin
967a05bfff
Update renamed GitHub handle
2020-09-11 10:36:21 -05:00
Nate Prewitt
1f7c88880b
Merge pull request #5570 from ajorg-aws/master
...
Apply the Apache-2.0 license correctly
2020-08-27 11:09:01 -07:00
Andrew Jorgensen
22b5a39098
Apply the Apache-2.0 license correctly
...
This follows instructions from the Apache Foundation. It also ensures
that the license will be correctly detected by license scanning tools.
Note that by adding a NOTICE file triggers Section 4.d of the license,
which is usually intended by users of the license.
The text that was in the LICENSE file before this change is intended
(by the authors of the license) to be used as a file header, and not as
a full license notice for a project, but it is commonly used this way,
so I would of course understand if this change is rejected.
2020-08-27 09:44:27 -07:00
Sagar Giri
2a7832b5b0
Update index.rst
...
Update misleading text about python support
2020-08-25 17:50:13 -07:00
Nate Prewitt
48237afd9d
updating doc links and formatting
2020-08-18 15:13:59 -07:00
Seth Michael Larson
0b01355870
Pin more helpful links to sidebar
2020-08-18 15:13:59 -07:00
Seth Michael Larson
43ed689d97
Trim release section, add back Twitter support
2020-08-18 15:13:59 -07:00
Seth Michael Larson
551a0bf0df
Recommend Pip, remove todo/philo docs, pare down support avenues
2020-08-18 15:13:59 -07:00
Seth Michael Larson
0830062100
Remove images, analytics, 'keep up to date'
2020-08-18 15:13:59 -07:00
Seth Michael Larson
533c384b87
Make README markdown compatible
2020-08-18 15:13:59 -07:00
Matt Silverlock
02eb5a2cd3
Document the dangers of using verify=False
2020-08-16 21:31:05 -05:00
Ben Bodenmiller
2d39c0db05
Docs: list CURL_CA_BUNDLE as supported ( #5509 )
...
* Docs: list CURL_CA_BUNDLE as supported
2020-07-23 21:57:30 -07:00
Nate Prewitt
1b41763472
cleanup advanced docs header
2020-06-26 10:51:20 -08:00
Nate Prewitt
8149e9fe54
Merge pull request #5505 from ollien/prepared-requests-docs-correction
...
Clarify that PreparedRequests should not be manually created
2020-06-19 09:04:21 -07:00
Nick Krichevsky
9cae7be94f
Clarify that PreparedRequests should not be manually created
...
Closes #5504
2020-06-18 22:06:41 -04:00
Kartik Chugh
1ca1c52e69
Google App Engine ( #5475 )
...
* Continuity: Google App Engine
2020-06-17 13:09:34 -07:00
Nate Prewitt
0797c61fd5
v2.24.0
2020-06-17 08:50:25 -07:00
Nate Prewitt
daa2b297a3
updating usage information
2020-06-17 08:50:25 -07:00
Nate Prewitt
7c71982260
Merge pull request #5496 from dbaxa/optimise-prepare-body
...
Avoid an unnecessary computation of the length of data for non-stream requests (which determine content-length based upon body content).
2020-06-17 08:21:38 -07:00
David Black
71a05cf289
Avoid an unnecessary computation of the length of data for non-stream requests (which determines content-length based upon body content).
2020-06-16 20:53:07 +10:00
Bharat Raghunathan
737dd0c3c6
Update number of dependents on requests ( #5495 )
...
* Update dependents on requests
2020-06-15 12:56:07 -07:00
Kevin Kirsche
8ac5929ae1
Fix typo in README ( #5468 )
2020-06-15 08:23:17 -07:00
Nate Prewitt
2b3436e0e7
Merge pull request #5492 from dbaxa/avoid-calling-resolve_redirects-whe-not-following-redirects
...
Remove what appears to be an un-needed call to self.resolve_redirects when not following redirects as part of creating a request's history.
2020-06-15 07:44:38 -07:00
David Black
fa2dbe9a91
Remove what appears to be an un-needed call to self.resolve_redirects when not following redirects as part of creating a request's history.
2020-06-15 20:16:47 +10:00
Thomas Grainger
9ed5db8ed2
fix raise_for_status docstring ( #5293 )
...
the exception isn't stored it's created new each call
2020-05-08 22:08:51 -07:00
Miro Hrončok
427e8eb1e7
Fix test_conflicting_post_params to work on pytest 5 ( #5305 )
...
The non-contextmanager form of pytest.raises was removed in pytest 5.
http://doc.pytest.org/en/latest/deprecations.html#raises-warns-with-a-string-as-the-second-argument
It was used here to support Python < 2.7, but that is no longer needed.
https://github.com/psf/requests/pull/1503#issuecomment-22333666
Fixes https://github.com/psf/requests/issues/5304
2020-05-08 21:58:03 -07:00
Seth Michael Larson
251f73f65d
Add changelog entry for pyOpenSSL change
2020-05-01 16:33:51 -07:00
Seth Michael Larson
db47b9b4a0
Don't use pyOpenSSL unless no SNI is detected
2020-05-01 16:33:51 -07:00
Nate Prewitt
bfb93d4b7d
update bleach security vulnerability
2020-04-03 14:39:06 -07:00
Nate Prewitt
9ea85109a5
fixing rst markup
2020-04-03 14:31:44 -07:00
Dustin Rodrigues
c577eb8d5f
fix README typo
2020-04-03 13:59:17 -07:00
Alessio Izzo
bebf5250b0
Remove explicit unicode literal in README.md and doc ( #5336 )
...
* [remove] remove "u" prefix in README and documentation examples
2020-03-25 12:44:51 -07:00
Seth Michael Larson
2758124a13
Also update GitHub's Security Disclosure document ( #5370 )
2020-02-27 21:33:09 -06:00
Nate Prewitt
4fc7f4a255
Update disclosure contact info ( #5369 )
2020-02-27 12:05:07 -06:00
Nate Prewitt
65989ddfe9
changing of the guard
...
Thanks for everything Ian. Welcome Seth!
2020-02-26 20:47:28 -08:00
Nate Prewitt
0a760ff025
updating pipfile.lock for bleach security issue ( #5364 )
2020-02-26 20:21:47 -08:00
Redowan Delowar
ca6f9af5db
Normalize exception docstrings ( #5338 )
2020-02-23 11:56:46 -06:00
Nate Prewitt
b7c6aba848
v2.23.0
2020-02-19 10:44:27 -08:00
Nate Prewitt
fd13816d01
Revert "Fix for response with UTF-8 BOM #4976 "
...
This reverts commit 19cff44ec1 .
This reverts commit 9e27326d68 .
This reverts commit f507a3ef12 .
2020-02-18 18:56:39 -06:00
Nate Prewitt
24bcb9eab6
Revert "Use urllib for chunked requests"
...
This reverts commit 2da7fe0858 .
2020-02-18 18:56:39 -06:00
Nate Prewitt
b15056d1d3
Revert " #4965 fix: Accessing response.content twice removes forgets read error."
...
This reverts commit bd10047244 .
This reverts commit d91fe00983 .
2020-02-18 18:56:39 -06:00
Ned Batchelder
80011a7917
Remove an obsolete attribute from __attrs__
...
The extra attribute in __attrs__ makes an unpickled session have one more attribute than the original. Removing it makes the original and the unpickled be identical.
2020-02-18 09:17:21 -08:00
Chris Withers
c46f55bd48
Limit dependencies to major instead of minor ( #5342 )
2020-02-18 08:58:27 -06:00
Alexander Zhukov
e11302018b
Fix the syntax highlighting in the example ( #5276 )
...
Co-authored-by: Nate Prewitt <nate.prewitt@gmail.com >
2020-02-17 23:19:38 -08:00
Nate Prewitt
23f6faa7cd
Merge pull request #5346 from stock1218/master
...
Update pipenv links in README and installation guide.
2020-02-17 21:44:33 -08:00
John Samuels
ae0a497b0c
Update link to pipenv in installation guide.
2020-02-17 21:47:34 +00:00
John Samuels
b1631b03bc
Update link to pipenv in README.
2020-02-17 21:46:26 +00:00
Nate Prewitt
a9906536ee
Merge pull request #5326 from nawatts/intersphinx-mapping-config
...
Fix intersphinx_mapping config for Python standard library
2020-01-31 14:24:52 -10:00
Nick Watts
d5c4cac0f4
Fix intersphinx_mapping config for Python standard library
2020-01-25 18:19:22 -05:00
Nate Prewitt
7b565d886c
Merge pull request #5325 from nawatts/install-pip-link
...
Change link for pip installation instructions
2020-01-25 10:19:34 -08:00
Nick Watts
7138d8b0e3
Change link for pip installation instructions
2020-01-25 12:09:10 -05:00
johnthagen
9b95b4e7b4
Add PyPy3 to Travis test suite ( #5193 )
2020-01-21 11:00:51 -06:00
Hugo van Kemenade
d2f65af033
Move community files under .github/ ( #5206 )
2020-01-19 09:41:09 -06:00
Sumana Harihareswara
a9ee0eef5a
Add Python 2 support entry in FAQ ( #5303 )
...
* Add Python 2 support entry in FAQ
Fixes : #5211
Signed-off-by: Sumana Harihareswara <sh@changeset.nyc >
* Adding Python 3 recommendation
Co-authored-by: Nate Prewitt <nate.prewitt@gmail.com >
2020-01-09 09:55:20 -08:00
John Kooker
782e94d141
Update example code in README.md ( #5292 )
...
Show the current project description.
2020-01-09 09:26:42 -08:00
Nate Prewitt
ad18d14573
Merge pull request #5306 from hugovk/update-python-versions-in-faq
...
Update supported Python versions
2020-01-09 09:06:47 -08:00
Hugo
f462eecf48
Update supported Python versions
2020-01-06 11:24:02 +02:00
Nate Prewitt
eedd674628
Merge pull request #5250 from MasterOdin/patch-1
...
Fix link to requests-threads in community/recommended doc
2019-11-22 18:50:54 -08:00
Matthew Peveler
4a540ff5f1
Fix link to requests-threads on community/recommended
2019-10-30 16:15:13 -03:00
Sorin Sbarnea
d2590ee46c
Change documentation website to requests.readthedocs.io ( #5236 )
...
Fixes : #5212
2019-10-24 20:02:55 -07:00
Charles Reid
4cd95aa496
update translation links from http -> https ( #5237 )
2019-10-24 19:46:04 -07:00
Nate Prewitt
56fd46f9bf
Merge pull request #5243 from hugovk/test-3.8-final
...
Test on Python 3.8 final
2019-10-24 19:32:25 -07:00
Hugo
2ff8106d62
Test on Python 3.8 final
2019-10-22 18:40:03 +03:00
Ernest W. Durbin III
fab1fd10d0
Merge pull request #5216 from Leetcore/patch-1
...
documentation link fixed
2019-09-30 05:52:29 -04:00
Alex K
74b72ce426
documentation link fixed
...
websites is down, link to requests.readthedocs.io
2019-09-29 18:10:59 +02:00
Hugo
6e05165a29
Test on Python 3.8 beta
2019-09-26 15:06:29 -07:00
Hugo
0178903841
Xenial is now the default
2019-09-26 15:06:29 -07:00
☿ Kenneth Reitz
0d180a5cbb
Merge pull request #5208 from psf/partII
...
Part II: The Principle of Polarity
2019-09-23 16:08:40 -04:00
☿ Kenneth Reitz
8345819b70
Update README.md
2019-09-23 14:31:19 -04:00
☿ Kenneth Reitz
5f824fb019
Update README.md
2019-09-23 14:30:16 -04:00
☿ Kenneth Reitz
1311c96eae
Update README.md
2019-09-23 14:29:35 -04:00
☿ Kenneth Reitz
c4c60864f8
Update README.md
2019-09-23 14:28:52 -04:00
Kenneth Reitz
e8a9bd7415
The Principle of Polarity
...
Everything is dual; Everything has poles; Everything has its pair of opposites; Like and unlike are the same; Opposites are identical in nature, but different in degree; Extremes meet; All truths, are but half-truths; All paradoxes may be reconciled.
2019-09-23 14:17:08 -04:00
Kenneth Reitz
729fd3cf42
Revert "deepmind"
...
This reverts commit 14c323492a .
2019-09-23 14:07:17 -04:00
Kenneth Reitz
1d3787a0ea
AUTHORS.rst
2019-09-23 14:07:01 -04:00
Nate Prewitt
0357b0724b
Merge pull request #5195 from lzutao/patch-1
...
Fix formatting of status code example
2019-09-19 08:32:13 -07:00
Nate Prewitt
189fea7a11
Merge pull request #5197 from 5uper5hoot/patch-1
...
Fix misspelling
2019-09-19 08:29:29 -07:00
Nate Prewitt
a5f4f3c9a3
resolve more-itertools py2.7 issues
...
more-itertools is a transitive testing dependency that no longer supports
python2.7. In order to keep the test suite going, we're pinning under
6.0.0 (the breaking version) until we have better syntax in pipfile.
2019-09-19 08:17:21 -07:00
Nate Prewitt
e08981ee46
updating project url
2019-09-19 07:52:28 -07:00
Nate Prewitt
afb508f6a7
removing duplicate entry
2019-09-19 07:42:23 -07:00
Nate Prewitt
09fd857eb1
Revert "Add trusted domains"
...
This reverts commit fbe48fbb7c .
2019-09-19 07:42:23 -07:00
☿ Kenneth Reitz
1462917951
Update README.md
2019-09-18 19:24:42 -04:00
Peter Schutt
2962c236c9
Fix misspelling
...
Just noticed a small typo!
2019-09-18 21:09:22 +10:00
Kenneth Reitz
9d4fd3c968
Update README.md
2019-09-18 05:47:48 -04:00
Kenneth Reitz
12640ec242
Merge branch 'master' of github.com:psf/requests
2019-09-18 05:41:40 -04:00
Kenneth Reitz
5cb55a84a7
squash!
2019-09-18 05:41:33 -04:00
Kenneth Reitz
2cb3abea55
Update README.md
2019-09-18 05:41:05 -04:00
Kenneth Reitz
38d9a4f65f
Merge branch 'master' of github.com:psf/requests
2019-09-18 05:40:25 -04:00
Kenneth Reitz
fbc5ed552e
psf
2019-09-18 05:40:18 -04:00
Kenneth Reitz
5099688bfc
Update README.md
2019-09-18 05:38:32 -04:00
Kenneth Reitz
4cd65385f8
Update README.md
2019-09-18 05:38:12 -04:00
Kenneth Reitz
87f9a58d45
Update README.md
2019-09-18 05:37:47 -04:00
Kenneth Reitz
9369b5a37a
kr
2019-09-18 05:37:03 -04:00
Kenneth Reitz
23fe729356
Merge branch 'master' of github.com:psf/requests
2019-09-18 05:33:21 -04:00
Kenneth Reitz
1a7d1406cb
cleanups
2019-09-18 05:33:15 -04:00
Kenneth Reitz
92b88fcffb
Update README.md
2019-09-18 05:26:27 -04:00
Kenneth Reitz
ac851d8ac3
Merge branch 'master' of github.com:psf/requests
2019-09-18 05:26:03 -04:00
Kenneth Reitz
a025522d08
flourish
2019-09-18 05:25:59 -04:00
Kenneth Reitz
a3735e2517
Update README.md
2019-09-18 05:10:42 -04:00
Kenneth Reitz
06826504da
Merge branch 'master' of github.com:psf/requests
2019-09-18 05:10:10 -04:00
Kenneth Reitz
14c323492a
deepmind
2019-09-18 05:10:03 -04:00
Kenneth Reitz
c196511934
Update README.md
2019-09-18 05:02:36 -04:00
Kenneth Reitz
a9860c4fae
Update README.md
2019-09-18 05:02:07 -04:00
Kenneth Reitz
f82382588f
Update README.md
2019-09-18 05:01:17 -04:00
Kenneth Reitz
72176ab9ac
Update README.md
2019-09-18 04:59:40 -04:00
Kenneth Reitz
eb2c14889f
Update README.md
2019-09-18 04:59:26 -04:00
Kenneth Reitz
cfdd00f3a3
Update README.md
2019-09-18 04:57:16 -04:00
Kenneth Reitz
b15bccf35e
Update README.md
2019-09-18 04:56:18 -04:00
Kenneth Reitz
f348d51818
Update README.md
2019-09-18 04:56:04 -04:00
Kenneth Reitz
dc1526f85d
Update README.md
2019-09-18 04:55:34 -04:00
Kenneth Reitz
c21c039ec8
Update FUNDING.yml
2019-09-18 04:54:31 -04:00
Kenneth Reitz
49acab8033
Update FUNDING.yml
2019-09-18 04:54:20 -04:00
Kenneth Reitz
0f71067f64
Update README.md
2019-09-18 04:52:39 -04:00
Kenneth Reitz
9f35ebd795
Update README.md
2019-09-18 04:52:22 -04:00
Kenneth Reitz
de1c200dff
Update README.md
2019-09-18 04:51:58 -04:00
Kenneth Reitz
458496d43e
Update README.md
2019-09-18 04:51:23 -04:00
Kenneth Reitz
446911b853
Update README.md
2019-09-18 04:51:10 -04:00
Kenneth Reitz
3ed0f8fba0
Update README.md
2019-09-18 04:50:39 -04:00
Kenneth Reitz
d66ffdbb2b
Update README.md
2019-09-18 04:49:57 -04:00
Kenneth Reitz
99197c2058
Update README.md
2019-09-18 04:49:43 -04:00
Kenneth Reitz
179f943300
Update README.md
2019-09-18 04:48:05 -04:00
Kenneth Reitz
75f062dcef
Update README.md
2019-09-18 04:47:36 -04:00
Kenneth Reitz
a7944ba94f
Update README.md
2019-09-18 04:46:49 -04:00
Kenneth Reitz
cf77263ad4
Update README.md
2019-09-18 04:45:14 -04:00
Kenneth Reitz
af85e68f1f
Update README.md
2019-09-18 04:44:37 -04:00
Kenneth Reitz
536b583bc9
Update README.md
2019-09-18 04:44:26 -04:00
Kenneth Reitz
0f1251bc13
Update README.md
2019-09-18 04:43:41 -04:00
Kenneth Reitz
a29be8f9cc
Update LICENSE
2019-09-18 04:42:26 -04:00
Kenneth Reitz
ac9f0d7c97
Update README.md
2019-09-18 04:40:07 -04:00
Kenneth Reitz
be2fe0c6af
Update README.md
2019-09-18 04:39:30 -04:00
Kenneth Reitz
abe22b1da6
Update README.md
2019-09-18 04:39:17 -04:00
Kenneth Reitz
e11caeb39f
Update README.md
2019-09-18 04:38:51 -04:00
Kenneth Reitz
30a16088c4
Update README.md
2019-09-18 04:37:53 -04:00
Kenneth Reitz
6831d2d8e4
Merge branch 'master' of github.com:psf/requests
2019-09-18 04:35:36 -04:00
Kenneth Reitz
a5bcc9c46e
pngsquash
2019-09-18 04:35:29 -04:00
Kenneth Reitz
186dcee8a0
Update README.md
2019-09-18 04:31:58 -04:00
Kenneth Reitz
caf91bd175
Update README.md
2019-09-18 04:29:05 -04:00
Kenneth Reitz
80562c9f83
Update README.md
2019-09-18 04:28:47 -04:00
Kenneth Reitz
2256fd2bc4
Update README.md
2019-09-18 04:28:32 -04:00
Kenneth Reitz
316f748226
Update README.md
2019-09-18 04:28:17 -04:00
Kenneth Reitz
c6ab21c103
Update README.md
2019-09-18 04:27:19 -04:00
Kenneth Reitz
1d41e8dc97
Update README.md
2019-09-18 04:27:06 -04:00
Kenneth Reitz
80c7cbd46e
Update README.md
2019-09-18 04:26:52 -04:00
Kenneth Reitz
775813aae7
Update README.md
2019-09-18 04:26:38 -04:00
Kenneth Reitz
cbccc5f07e
Update README.md
2019-09-18 04:26:00 -04:00
Kenneth Reitz
26466b54ad
Merge branch 'master' of github.com:psf/requests
2019-09-18 04:25:21 -04:00
Kenneth Reitz
042ccfcf99
license
2019-09-18 04:25:17 -04:00
Kenneth Reitz
24e46d0303
Update README.md
2019-09-18 04:21:16 -04:00
Kenneth Reitz
70cc902f5e
Update README.md
2019-09-18 04:19:56 -04:00
Kenneth Reitz
091604455a
Update README.md
2019-09-18 04:19:37 -04:00
Kenneth Reitz
b639f17705
Update README.md
2019-09-18 04:18:41 -04:00
Kenneth Reitz
33f41b8a13
Update README.md
2019-09-18 04:18:03 -04:00
Kenneth Reitz
73a65941ad
Update README.md
2019-09-18 04:17:42 -04:00
Kenneth Reitz
2e992817d4
Update README.md
2019-09-18 04:17:04 -04:00
Kenneth Reitz
0f9bcfb86c
Update README.md
2019-09-18 04:14:44 -04:00
Kenneth Reitz
fcde69193a
Update README.md
2019-09-18 04:14:21 -04:00
Kenneth Reitz
b08073a7c3
Update README.md
2019-09-18 04:12:57 -04:00
Kenneth Reitz
e1eb569751
Update README.md
2019-09-18 04:12:00 -04:00
Kenneth Reitz
8d09a80a16
Update README.md
2019-09-18 04:11:31 -04:00
Kenneth Reitz
8074cc8bf5
Update README.md
2019-09-18 04:08:42 -04:00
Kenneth Reitz
8e19074296
Update README.md
2019-09-18 04:07:44 -04:00
Kenneth Reitz
30c128ade9
Update README.md
2019-09-18 04:05:51 -04:00
Kenneth Reitz
65a73bd0f7
Update README.md
2019-09-18 04:01:56 -04:00
Kenneth Reitz
e63d846b15
Update README.md
2019-09-18 03:59:35 -04:00
Kenneth Reitz
d6db3901cb
Update README.md
2019-09-18 03:57:15 -04:00
Kenneth Reitz
355e288940
Update README.md
2019-09-18 03:56:27 -04:00
Kenneth Reitz
a08c421f7c
Update README.md
2019-09-18 03:55:43 -04:00
Kenneth Reitz
e35ace77bf
Update README.md
2019-09-18 03:55:23 -04:00
Kenneth Reitz
f3b62442be
Update README.md
2019-09-18 03:54:03 -04:00
Kenneth Reitz
846c37c29d
Update README.md
2019-09-18 03:53:50 -04:00
Kenneth Reitz
570dc15b52
Update README.md
2019-09-18 03:52:51 -04:00
Kenneth Reitz
4a87d1e62f
Update README.md
2019-09-18 03:52:36 -04:00
Kenneth Reitz
2d3b68cf1e
Update README.md
2019-09-18 03:51:22 -04:00
Kenneth Reitz
31a6e696bb
Update README.md
2019-09-18 03:51:03 -04:00
Kenneth Reitz
33e402b21f
Update README.md
2019-09-18 03:48:48 -04:00
Kenneth Reitz
60cffb076b
Update README.md
2019-09-18 03:48:25 -04:00
Kenneth Reitz
bdc92c795f
Update README.md
2019-09-18 03:41:20 -04:00
Kenneth Reitz
426a1c0120
Update README.md
2019-09-18 03:40:05 -04:00
Kenneth Reitz
bc8fa9c246
Update README.md
2019-09-18 03:39:46 -04:00
Kenneth Reitz
be7cbe1353
Update README.md
2019-09-18 03:38:46 -04:00
Kenneth Reitz
9ba6c5e638
Update README.md
2019-09-18 03:37:59 -04:00
Kenneth Reitz
762042260b
Update README.md
2019-09-18 03:37:29 -04:00
Kenneth Reitz
2abe57458d
Update README.md
2019-09-18 03:37:21 -04:00
Kenneth Reitz
e40a3d6094
Update README.md
2019-09-18 03:35:33 -04:00
Kenneth Reitz
c2479aeac7
logo
2019-09-18 03:34:08 -04:00
Kenneth Reitz
7ce4691289
Merge branch 'master' of github.com:psf/requests
2019-09-18 03:32:27 -04:00
Kenneth Reitz
c5d9e1216e
resize
2019-09-18 03:32:18 -04:00
Kenneth Reitz
863542529d
Update README.md
2019-09-18 03:31:48 -04:00
Kenneth Reitz
8072d4fda8
Update README.md
2019-09-18 03:31:23 -04:00
Kenneth Reitz
e820ac7c40
Update README.md
2019-09-18 03:30:45 -04:00
Kenneth Reitz
720f1ce61d
Update README.md
2019-09-18 03:29:25 -04:00
Kenneth Reitz
6d37433c0e
Merge branch 'master' of github.com:psf/requests
2019-09-18 03:28:44 -04:00
Kenneth Reitz
969783702d
flower of life
2019-09-18 03:28:35 -04:00
Kenneth Reitz
6fbbbc8c9e
Update README.md
2019-09-18 03:26:17 -04:00
Kenneth Reitz
26b104ecb9
Update README.md
2019-09-18 03:25:58 -04:00
Kenneth Reitz
3f21a2d62e
shoes and cars
2019-09-18 03:25:21 -04:00
Kenneth Reitz
42926b5731
Merge branch 'master' of github.com:psf/requests
2019-09-18 03:22:03 -04:00
Kenneth Reitz
a7e2da804c
flourish
2019-09-18 03:21:34 -04:00
Kenneth Reitz
2416c2dd47
Update README.md
2019-09-18 03:20:31 -04:00
Kenneth Reitz
b44d6fdf49
Update README.md
2019-09-18 03:20:10 -04:00
Kenneth Reitz
0859c01b16
flourish
2019-09-18 03:19:23 -04:00
Kenneth Reitz
c198cc0b2e
Update README.md
2019-09-18 03:17:40 -04:00
Kenneth Reitz
4b9e5d0ef3
Update README.md
2019-09-18 03:17:21 -04:00
Kenneth Reitz
9b51d7c4f2
Update README.md
2019-09-18 03:17:05 -04:00
Kenneth Reitz
6b89c8752a
Update README.md
2019-09-18 03:16:49 -04:00
Kenneth Reitz
59dac47346
Update README.md
2019-09-18 03:15:04 -04:00
Kenneth Reitz
bb2ae009bc
Update README.md
2019-09-18 03:14:40 -04:00
Kenneth Reitz
11982c1f9f
Update README.md
2019-09-18 03:14:26 -04:00
Kenneth Reitz
36cc7bbfc3
Update README.md
2019-09-18 03:12:31 -04:00
Kenneth Reitz
d675d83b1d
Update README.md
2019-09-18 03:12:12 -04:00
Kenneth Reitz
4d2875da11
Update README.md
2019-09-18 03:11:56 -04:00
Kenneth Reitz
687ff0eb36
Update README.md
2019-09-18 03:11:34 -04:00
Kenneth Reitz
c51a9efa2b
Update README.md
2019-09-18 03:10:41 -04:00
Kenneth Reitz
c386eebcf8
Update README.md
2019-09-18 03:10:21 -04:00
Kenneth Reitz
3423b51748
Update README.md
2019-09-18 03:10:00 -04:00
Kenneth Reitz
3ff2995c1d
Update README.md
2019-09-18 03:09:42 -04:00
Kenneth Reitz
e231de6ddc
Update README.md
2019-09-18 03:05:16 -04:00
Kenneth Reitz
54cefc901c
Update README.md
2019-09-18 03:04:51 -04:00
Kenneth Reitz
2bc6aeb64e
Update README.md
2019-09-18 03:03:12 -04:00
Kenneth Reitz
7c71cb9643
Update README.md
2019-09-18 03:02:29 -04:00
Kenneth Reitz
e0359b2725
Update README.md
2019-09-18 02:54:15 -04:00
Kenneth Reitz
25d1ffda8c
Update README.md
2019-09-18 02:53:30 -04:00
Kenneth Reitz
537ac3cf22
Update README.md
2019-09-18 02:52:51 -04:00
Kenneth Reitz
5477208835
Update README.md
2019-09-18 02:52:15 -04:00
Kenneth Reitz
0b2517465d
Update README.md
2019-09-18 02:51:37 -04:00
Kenneth Reitz
1c19e6148f
Update README.md
2019-09-18 02:51:10 -04:00
Kenneth Reitz
55d3d8b3b2
Update README.md
2019-09-18 02:50:59 -04:00
Kenneth Reitz
5f3b95992b
Update README.md
2019-09-18 02:49:42 -04:00
Kenneth Reitz
3e012c16c3
Update README.md
2019-09-18 02:49:15 -04:00
Kenneth Reitz
c13ccd11f6
Update README.md
2019-09-18 02:48:45 -04:00
Kenneth Reitz
266d17c4de
Update README.md
2019-09-18 02:43:58 -04:00
Kenneth Reitz
6b639bbc08
Update README.md
2019-09-18 02:43:41 -04:00
Kenneth Reitz
6c322457a2
pipfile / lock
2019-09-18 02:42:55 -04:00
Kenneth Reitz
5090ba79ac
Create .nojekyll
2019-09-18 02:39:15 -04:00
Kenneth Reitz
da13fec6ce
Create SECURITY.md
2019-09-18 02:37:03 -04:00
Kenneth Reitz
d7018e6d61
Create FUNDING.yml
2019-09-18 02:34:01 -04:00
lzutao
39b3dcf7d9
Fix formatting of status code example
2019-09-17 19:34:36 +07:00
Kenneth Reitz
3d968ff34d
Update index.rst
2019-08-26 10:35:52 -04:00
Kenneth Reitz
b6b90f4d9b
Update sidebarintro.html
2019-08-20 19:02:36 -04:00
Kenneth Reitz
913adced21
Update sidebarlogo.html
2019-08-20 19:02:23 -04:00
Nate Prewitt
e320f9e467
Merge pull request #5171 from MFStapert/patch-2
...
Fix typo
2019-08-20 10:28:48 -07:00
Marijn Stapert
4070bcf1b9
Fix typo
2019-08-20 19:25:03 +02:00
Kenneth Reitz
3c01cd7080
Update README.md
2019-08-20 01:02:03 -04:00
Kenneth Reitz
bc81ee3af4
Update setup.py
2019-08-20 01:01:06 -04:00
Kenneth Reitz
b1d584e899
Update index.rst
2019-08-20 00:58:49 -04:00
Kenneth Reitz
b98be047f2
Update README.md
2019-08-20 00:58:07 -04:00
Kenneth Reitz
ced3779126
Update README.md
2019-08-20 00:57:58 -04:00
Kenneth Reitz
bedb1cd38f
Update README.md
2019-08-20 00:57:46 -04:00
Kenneth Reitz
d258b20eba
Delete sponsors.rst
2019-08-20 00:57:00 -04:00
Kenneth Reitz
e2fce5e60c
Update index.rst
2019-08-20 00:56:45 -04:00
Kenneth Reitz
72ca1b7e31
Update index.rst
2019-08-20 00:55:57 -04:00
Kenneth Reitz
7f3ce7eaac
Update sidebarlogo.html
2019-08-20 00:55:22 -04:00
Kenneth Reitz
b248328eb3
Update sidebarintro.html
2019-08-20 00:54:28 -04:00
Kenneth Reitz
10e5f874c7
Update sidebarintro.html
2019-08-20 00:54:00 -04:00
Kenneth Reitz
7f2513fb81
Update index.rst
2019-08-20 00:50:22 -04:00
Kenneth Reitz
04b5c83701
Update index.rst
2019-08-20 00:50:07 -04:00
Kenneth Reitz
1f9ec06e22
Update index.rst
2019-08-20 00:49:18 -04:00
Kenneth Reitz
00fa902c7d
Update README.md
2019-08-20 00:47:05 -04:00
Kenneth Reitz
3393232304
Update README.md
2019-08-20 00:46:57 -04:00
Kenneth Reitz
d41fba6347
Update README.md
2019-08-20 00:46:47 -04:00
Kenneth Reitz
7ca0e86a67
Update README.md
2019-08-20 00:45:53 -04:00
Kenneth Reitz
428f7a2759
Merge pull request #5076 from myrheimb/patch-1
...
Possible fix for #4945 ?
2019-08-20 00:38:21 -04:00
Kenneth Reitz
a71e2240df
Merge pull request #4976 from eduardomourar/feature/strip-utf8-bom
...
Fix for response with UTF-8 BOM
2019-08-20 00:26:59 -04:00
Kenneth Reitz
4bce5a0bc5
Merge branch 'master' into feature/strip-utf8-bom
2019-08-20 00:26:51 -04:00
Kenneth Reitz
3e7d0a873f
Merge pull request #4987 from aless10/master
...
[fix] fix failing doctests in requests/*
2019-08-20 00:25:50 -04:00
Kenneth Reitz
df918c066f
Merge branch 'master' into master
2019-08-20 00:25:37 -04:00
Kenneth Reitz
ada50499a0
Merge pull request #4996 from sblondon/master
...
Add link to user-agent documentation
2019-08-20 00:24:08 -04:00
Kenneth Reitz
82c744b59c
Merge pull request #4983 from jaketreacher/2949-trusted-domain
...
Add trusted domains
2019-08-20 00:23:52 -04:00
Kenneth Reitz
bbc3d43522
Merge pull request #4922 from jdufresne/ordered
...
Remove unnecessary compat shim for OrderedDict
2019-08-20 00:22:32 -04:00
Kenneth Reitz
8086ffdbbf
Merge pull request #4999 from greysteil/add-project-urls
...
Add project URLs with links to source code and docs
2019-08-20 00:21:31 -04:00
Kenneth Reitz
5eb7337494
Merge pull request #4978 from sayzlim/master
...
Fix double image request
2019-08-20 00:21:12 -04:00
Kenneth Reitz
48e1a3359e
Merge branch 'master' into master
2019-08-20 00:21:04 -04:00
Kenneth Reitz
1b450d2038
Merge pull request #5018 from hugovk/rm-2.6
...
Remove duplicate config
2019-08-20 00:17:54 -04:00
Kenneth Reitz
67a7b2e833
Merge pull request #5087 from LuckyDenis/master
...
#4965 Fix
2019-08-20 00:16:35 -04:00
Kenneth Reitz
42c5a4f622
Merge pull request #5128 from lmvlmv/urllibfix
...
Use urllib for chunked requests
2019-08-20 00:15:44 -04:00
Kenneth Reitz
11ed88bcb2
Merge pull request #5105 from alanyee/patch-1
...
Update sessions.py
2019-08-20 00:14:36 -04:00
Kenneth Reitz
0fe6653eab
Merge pull request #5049 from hroncok/pytest4
...
Support pytest 4
2019-08-20 00:12:58 -04:00
Kenneth Reitz
dd15e52840
Merge pull request #5119 from alanyee/patch-1
...
Update sessions.py
2019-08-20 00:11:22 -04:00
Kenneth Reitz
9bc49b5960
Merge branch 'master' into patch-1
2019-08-20 00:11:02 -04:00
Nate Prewitt
d79024f246
Merge pull request #5160 from OrangutanGaming/change-github
...
Updated references to previous requests/requests GitHub path
2019-08-19 15:57:15 -07:00
Nihaal
9cdf294107
Updated references to previous requests/requests GitHub path
2019-08-19 21:33:18 +01:00
Nate Prewitt
9f55e4bc09
Merge pull request #5164 from dschaller/patch-1
...
fix codecov logo in readme
2019-08-19 10:55:40 -07:00
Nate Prewitt
bf582192b8
Merge pull request #5167 from aadibajpai/patch-1
...
[IMPROVEMENT] Update monthly download count
2019-08-19 10:54:31 -07:00
Aadi Bajpai
408e576d33
Update README.md with download count
...
https://pepy.tech/project/requests
2019-08-19 22:13:41 +05:30
Derek
7d57e8ec55
fix codecov logo in readme
2019-08-15 18:47:10 -07:00
Denis Belavin
e8ff4897fe
Merge branch 'master' into master
2019-08-14 21:12:19 +03:00
Dull Bananas
a4c18cd733
Add missing backtick ( #5145 )
2019-07-29 09:06:11 -07:00
sblondon
07005b0ffc
Merge branch 'master' into master
2019-07-25 18:07:21 +02:00
lmvlmv
989f702742
Merge branch 'master' into urllibfix
2019-07-25 10:49:24 +01:00
Alessio Izzo
a0d58026e0
Merge branch 'master' into master
2019-07-24 12:42:40 +02:00
Denis Belavin
3922dcf2a1
Merge branch 'master' into master
2019-07-23 21:36:37 +03:00
Kenneth Reitz
589a822567
Merge pull request #5141 from minho42/Fix-typos
...
Fix typos
2019-07-23 12:53:21 -04:00
lmvlmv
e8c9acc8a2
Merge branch 'master' into urllibfix
2019-07-23 09:31:00 +01:00
Kenneth Reitz
9a2e5df000
Merge pull request #5142 from dullbananas/master
...
Improve docs
2019-07-20 23:57:00 -04:00
Dull Bananas
c79d61b953
List valid methods for request()
2019-07-20 15:32:04 -07:00
Dull Bananas
f9ac75cab1
Fix GitHub profile link
2019-07-20 09:31:39 -07:00
Dull Bananas
ebd3e36ad5
Add 'Dull Bananas' to AUTHORS
2019-07-20 09:29:50 -07:00
Dull Bananas
50daf9c005
Add .eggs dir to .gitignore
2019-07-20 09:23:52 -07:00
Dull Bananas
fb7efcf3f1
Add example of good code below example of bad code
2019-07-20 09:17:54 -07:00
Min ho Kim
5f576ad22f
Fix typos
2019-07-20 01:46:08 +10:00
kobayashi
0b6c110a5c
Merge pull request #5127 from Unit03/head-allow-redirects-docstring
...
Document that `request.head` defaults `allow_redirects` to `False`
2019-07-11 20:18:42 -04:00
Leon Verrall
2da7fe0858
Use urllib for chunked requests
2019-07-02 10:17:33 +01:00
Jacek Kołodziej
c8d8b4b513
Document that request.head defaults allow_redirects to False
...
Related: kennethreitz/requests#4274
2019-07-01 21:41:38 +02:00
Alan Yee
45c2e679e0
Update sessions.py
...
Use `.format()` over `%` given PEP 3101
2019-06-24 10:12:38 -07:00
aless10
27b24f974f
Merge branch 'master' of https://github.com/kennethreitz/requests
2019-06-13 22:48:08 +02:00
Denis Belavin
6296df90b9
Merge branch 'master' into master
2019-06-13 10:18:55 +03:00
Nate Prewitt
4983a9bde3
Merge pull request #5108 from atombrella/python34
...
Removed py34 from tox.ini.
2019-06-03 07:01:03 -07:00
Mads Jensen
2e4329d153
Removed py34 from tox.ini.
2019-06-03 08:45:48 +02:00
Alan Yee
47cb8bae1a
Update sessions.py
...
-Made removing a key-value pair more modular
-Remove unneeeded return statement
2019-05-29 11:49:44 -07:00
aless10
d889b98eae
Merge branch 'master' of https://github.com/kennethreitz/requests
2019-05-24 20:40:22 +02:00
Miro Hrončok
dc75b3ca0b
Support pytest 4
...
Fixes https://github.com/kennethreitz/requests/issues/5048
See https://docs.pytest.org/en/latest/deprecations.html#marks-in-pytest-mark-parametrize
2019-05-24 00:02:43 +02:00
Denis Belavin
0becdca7e3
Merge branch 'master' into master
2019-05-20 21:00:14 +03:00
Buğra İşgüzar
6f81e78dfe
Merge pull request #5099 from petar-iv/password-no-print
...
Print the type of the password instead of the password itself
2019-05-20 18:35:41 +03:00
Denis Belavin
9c3c755abe
Merge branch 'master' into master
2019-05-20 10:12:35 +03:00
petar-iv
d88240ba44
Print the type of the password instead of the password itself
2019-05-20 09:57:11 +03:00
aless10
6d2a5072ca
[add] add NORMALIZE_WHITESPACE and ELLIPSIS to pytest.ini and remove them from requests/__init__.py
2019-05-19 16:25:52 +02:00
aless10
96ff7ca31f
Merge branch 'master' of https://github.com/aless10/requests
2019-05-19 16:21:40 +02:00
aless10
2e633471f1
Merge branch 'master' of https://github.com/kennethreitz/requests
2019-05-19 16:20:40 +02:00
aless10
67a0e90b6b
[change] change doctest based on LuckyDenis suggestion
2019-05-19 16:20:11 +02:00
Alessio Izzo
4a59cd0950
Merge branch 'master' into master
2019-05-19 16:08:55 +02:00
Hugo
be295ba4d4
Simplify config
2019-05-16 18:36:45 +03:00
Hugo
d36f391957
Merge branch 'master' into rm-2.6
2019-05-16 18:31:37 +03:00
Frost Ming
a79a63390b
Merge pull request #5088 from zurbrugc/master
...
Linked a GitHub tutorial regarding pull requests in README
2019-05-16 13:20:45 +08:00
Frost Ming
86760daf23
Merge branch 'master' into master
2019-05-16 13:14:08 +08:00
Frost Ming
8e26bfd86d
Merge pull request #5092 from kennethreitz/urllib1.25
...
v2.22.0
2019-05-16 13:12:48 +08:00
Nate Prewitt
aeda65bbe5
v2.22.0
2019-05-15 12:51:39 -07:00
Nate Prewitt
68e581f1b5
drop 3.4 support
2019-05-15 12:51:31 -07:00
Nate Prewitt
a91905d78e
adjust pytest pins to fix testing infra
2019-05-15 12:51:23 -07:00
zurbrugc
44256ffe7c
Linked how to make a pull requests in README
...
This makes it easier for users new to GitHub to learn how to make a pull request.
2019-05-14 11:25:16 -07:00
zurbrugc
4803716715
Merge pull request #1 from kennethreitz/master
...
Updating my fork with the original
2019-05-14 11:21:30 -07:00
Белавин Денис
bd10047244
#4965 fix: Accessing response.content twice removes forgets read error.
2019-05-14 12:11:56 +03:00
Белавин Денис
d91fe00983
#4965 fix-draw: Accessing response.content twice removes forgets read error.
2019-05-13 17:18:42 +03:00
Kenneth Reitz
b18f765774
Merge pull request #5054 from imikay/patch-1
...
Add import statement to README example
2019-05-09 17:38:19 -04:00
Kenneth Reitz
b5b8c038a7
Merge pull request #5082 from zurbrugc/master
...
Linked contribution information in README
2019-05-09 17:37:32 -04:00
zurbrugc
a694ab5c00
Linked contribution information in README
...
For potential contributors who are new to GitHub and prefer to learn via structured processes, linking the Contributor's Guide and development philosophy documents in the README will make it easier for them to find this information. This will increase the quality of their contributions and make them more comfortable contributing to the project.
2019-05-09 11:33:01 -07:00
Kenneth Reitz
e52932c427
Update index.rst
2019-05-06 07:48:07 -04:00
Kenneth Reitz
1f9425ca53
Update README.md
2019-05-06 07:41:34 -04:00
Buğra İşgüzar
b4f76878fe
Merge branch 'master' into patch-1
2019-05-02 00:30:04 +03:00
Bjørnar Myrheim
a310b5ab34
Possible fix for #4945 ?
...
Could the missing colon on line 612 be the reason for the missing reference in the docs as described in issue #4945 ?
2019-04-30 18:37:11 +02:00
Kenneth Reitz
e73a6c52d2
Merge pull request #5034 from tomchristie/patch-1
...
Add `requests-async` link to "non-blocking" docs.
2019-04-27 09:13:43 -04:00
Kenneth Reitz
e3c3c0a8fe
Merge pull request #5062 from alexwlchan/patch-1
...
docs: Correct the spelling of "maintenance"
2019-04-27 09:12:09 -04:00
Alex Chan
faafb5a043
docs: Correct the spelling of "maintenance"
2019-04-25 08:19:20 +01:00
Alessio Izzo
663aa1162b
Merge branch 'master' into master
2019-04-23 19:18:02 +02:00
Kenneth Reitz
d22d219d34
Merge pull request #5066 from s-pace/doc/update
...
[doc website] Add a nice search experience
2019-04-23 08:23:57 -04:00
s-pace
74289f420c
feat: add search to the main introduction page
2019-04-23 07:47:33 +02:00
s-pace
749419ad0c
feat: add search to every documentation pages
2019-04-23 07:47:08 +02:00
Kenneth Reitz
7f438416e4
less is more
2019-04-20 08:22:04 -04:00
Kenneth Reitz
5d06354734
fix
2019-04-20 08:21:21 -04:00
Kenneth Reitz
2d120e32db
fix
2019-04-20 08:19:49 -04:00
Kenneth Reitz
69856f3052
requests 3.0 intentions
2019-04-20 08:09:43 -04:00
Ian Gao
37011aaa3f
Add import statement
...
Should add this import statement to make it more user friendly, especially for the beginners in Python.
2019-04-11 19:03:15 +08:00
Alessio Izzo
8b773a4fed
[remove] remove invalid field in docete
...
Remove 'Connection': 'close' field in 'headers'
2019-04-07 13:36:34 +02:00
Alessio Izzo
c19c394ac1
Merge branch 'master' into master
2019-04-07 13:24:09 +02:00
Kenneth Reitz
9742da7f91
Update sidebarlogo.html
2019-03-28 23:52:07 -04:00
Kenneth Reitz
76a89c3c9b
Update sidebarintro.html
2019-03-28 23:51:53 -04:00
Tom Christie
6f6d0164a9
Add requests-async link to "non-blocking" docs.
...
Links to https://github.com/encode/requests-async for an asyncio non-blocking option.
2019-03-27 10:09:19 +00:00
Alessio Izzo
aa21dbe7fc
Merge branch 'master' into master
2019-03-26 16:24:43 +01:00
Hugo
a7969c5c42
Remove old Python 2.6 check and duplicate config
2019-03-10 17:08:09 +02:00
Kenneth Reitz
a345b776fb
update copyright year
2019-02-28 12:03:44 -05:00
Kenneth Reitz
63e7748fe5
programming quiz
2019-02-28 11:47:41 -05:00
Kenneth Reitz
f2409648ac
programming quiz
2019-02-28 11:46:27 -05:00
Grey Baker
7d7d9ebacf
Add project URLs with links to source code and docs
2019-02-23 13:24:52 +00:00
sblondon
248211453d
Add link to user-agent documentation
...
So the user has a pointer to the documentation about the searched topic.
2019-02-22 11:04:07 +01:00
aless10
fd926e74c3
[change] change description in __init__ module. Now it is the same as master
2019-02-17 19:45:32 +01:00
aless10
177f4dd2a4
[fix] fix failing doctests in requests/*
...
[add] add --doctest-modules in pytest.ini file as addopts
[add] add myself to AUTHORS
2019-02-17 19:06:01 +01:00
Jake Treacher
fbe48fbb7c
Add trusted domains
2019-02-15 10:40:24 +08:00
Sayz Lim
5add08fc84
Fix double image request
...
Use official framework for the "custom" ad design integration.
2019-02-12 20:24:58 +07:00
Eduardo Rodrigues
19cff44ec1
fix response with utf8 bom
2019-02-09 22:14:22 +01:00
Eduardo Rodrigues
9e27326d68
add failing tests for bom
2019-02-09 22:00:32 +01:00
Eduardo Rodrigues
f507a3ef12
add utf8 with bom to test
2019-02-09 11:56:06 +01:00
Ian Stapleton Cordasco
c9309e4c59
Merge pull request #4960 from andrewbonney/master
...
docs: correct error in 'merge_environment_settings' usage
Closes #4959
2019-02-04 09:22:40 -06:00
Andrew Bonney
827bbe2a7e
docs: correct error in 'merge_environment_settings' usage
...
Resolves #4959
2019-02-04 13:28:12 +00:00
Ian Stapleton Cordasco
64bde6582d
Merge pull request #4940 from sloria/patch-2
...
Remove sudo: from .travis.yml
2019-01-21 12:50:27 -06:00
Ian Stapleton Cordasco
334be4d272
Merge branch 'master' into patch-2
2019-01-21 07:59:29 -06:00
Ian Stapleton Cordasco
67a9ed47ae
Merge pull request #4915 from sethmlarson/patch-1
...
Normalize percent-encoded bytes before comparison
2019-01-21 07:58:32 -06:00
Seth Michael Larson
28208392cd
revert lock change
2019-01-19 10:57:12 -06:00
Seth Michael Larson
5734f4fc4a
Force pipenv to use the lockfile
2019-01-19 10:51:12 -06:00
Seth Michael Larson
4c320ac3a2
Lock pytest to <4.1
2019-01-19 10:34:58 -06:00
Steven Loria
b49547f135
Remove sudo: from .travis.yml
...
TravisCI has migrated their infrastructure: https://blog.travis-ci.com/2018-11-19-required-linux-infrastructure-migration
2019-01-16 20:59:14 -05:00
Seth M. Larson
f1e48f4d0d
Merge branch 'master' into patch-1
2019-01-16 18:47:10 +00:00
Nate Prewitt
f37daf2500
Merge pull request #4936 from ofek/patch-2
...
Fix typo
2019-01-12 15:54:21 -08:00
Ofek Lev
6dd410ff17
Fix typo
2019-01-12 18:33:00 -05:00
Jon Dufresne
2aab9a9a39
Remove internal use of unnecessary compat shim for OrderedDict
...
The shim is the same on both Python 2 & 3. It is always
collections.OrderedDict. Avoid the indirection and import from Python
stdlib instead.
Keep requests.compat.OrderedDict for backwards compatibility. Some
packages import this.
2018-12-29 12:05:33 -05:00
Seth M. Larson
ad9400ecfe
Normalize percent-encoded bytes before comparison
2018-12-23 15:50:16 -06:00
Nate Prewitt
5c1f72e80a
Merge pull request #4910 from moy/master
...
get(), request(): fix documentation of 'params'
2018-12-13 13:34:10 -08:00
Matthieu Moy
c4d76800e8
get(), request(): fix documentation of 'params'
...
'params' is sent to the query string, not the body.
2018-12-13 15:57:00 +01:00
Nate Prewitt
c452e3b92d
Merge pull request #4901 from requests/v2.21.0
...
v2.21.0
2018-12-10 07:36:33 -08:00
Nate Prewitt
5a1e738ea9
v2.21.0
2018-12-09 22:13:32 -08:00
Alex Gaynor
8761e9736f
Bumped maximum version of idna
2018-12-09 21:41:14 -08:00
Nate Prewitt
abe950cfd3
Revert "Set up Azure Pipelines for Linux and Windows"
...
This reverts commit e4974c7ff5 .
2018-12-09 20:45:06 -08:00
Nate Prewitt
c35f34263a
Merge pull request #4898 from requests/revert_azure
...
revert azure pipeline changes
2018-12-09 20:31:09 -08:00
Nate Prewitt
0dd4752598
revert azure pipeline changes
...
Reverting commits:
fc9dfac
bc3eddc
d911f27
3da2f10
ce52825
398d110
c15d2b6
086655e
2018-12-09 20:19:10 -08:00
Kenneth Reitz
57d7284c1a
Merge pull request #4874 from kaylangan/patch-1
...
Add build badge for Azure Pipelines
2018-11-14 10:33:06 -05:00
Kayla Ngan
fc9dfac2b9
Add build badge for Azure Pipelines
...
Not sure if you want to add a build badge since you didn't have one before. But if you do, here's yours for Azure Pipelines.
2018-11-14 10:27:16 -05:00
Kenneth Reitz
bc3eddc6ed
Delete settings.json
2018-11-13 07:53:16 -05:00
Kenneth Reitz
d911f27868
Delete install.ps1
2018-11-13 07:52:59 -05:00
Kenneth Reitz
3da2f10290
Delete .travis.yml
2018-11-13 07:52:48 -05:00
Kenneth Reitz
5e0ebc9b9f
Merge pull request #4867 from jdufresne/extra
...
Simplify tox.ini
2018-11-13 07:52:06 -05:00
Kenneth Reitz
75e2dd3094
Merge pull request #4868 from jdufresne/tox-py37
...
Add Python 3.7 to tox test matrix
2018-11-13 07:51:36 -05:00
Kenneth Reitz
9533df1f0b
Merge pull request #4870 from requests/kennethreitz-patch-1
...
Delete appveyor.yml
2018-11-13 07:51:25 -05:00
Kenneth Reitz
ce52825d12
fix coverage
2018-11-13 07:48:59 -05:00
Kenneth Reitz
398d1105b4
fix coverage
2018-11-13 07:48:48 -05:00
Kenneth Reitz
c15d2b6949
Delete appveyor.yml
2018-11-13 07:27:42 -05:00
Kenneth Reitz
7d4fc04a6f
Merge pull request #4869 from kaylangan/master
...
Set up CI with Azure Pipelines
2018-11-13 07:11:50 -05:00
Kayla Ngan
086655e4fc
Unify Linux and Windows
2018-11-12 13:37:50 -05:00
Jon Dufresne
779fd6e7f3
Add Python 3.7 to tox test matrix
2018-11-11 12:01:41 -08:00
Jon Dufresne
af63554106
Simplify tox.ini
...
Tox installs the package to the virtualenv by default. PySocks is
already included in test_requirements. Don't need to install these
explicitly.
2018-11-11 11:54:25 -08:00
Nate Prewitt
bedd9284c9
Merge pull request #4861 from altendky/patch-1
...
Set iter_lines() decode_unicode default to False
2018-11-09 12:44:34 -08:00
Kayla Ngan
e4974c7ff5
Set up Azure Pipelines for Linux and Windows
2018-11-09 15:20:08 -05:00
Kyle Altendorf
36412c5ae7
Merge branch 'master' into patch-1
2018-11-09 14:09:08 -05:00
Nate Prewitt
6cfbe1aedd
v2.20.1
2018-11-08 09:14:10 -08:00
Kyle Altendorf
a7aa86a933
Set iter_lines() decode_unicode default to False
...
The docs just read a bit strange with `decode_unicode=None` as opposed to `False`.
2018-11-06 12:35:39 -05:00
Nate Prewitt
c501ec986d
Merge pull request #4853 from mainanick/master
...
Incorrect ValueError Message on ~requests.utils.from_key_val_list comments
2018-10-29 23:13:56 -07:00
Maina Nick
045b706b37
Merge pull request #2 from requests/master
...
Syncing fork to the original repository
2018-10-29 22:55:03 +03:00
unknown
ccbffe5a53
Incorrect ValueError Message
2018-10-29 22:53:02 +03:00
Ian Stapleton Cordasco
eaab47f033
Merge pull request #4851 from requests/default_port_handling
...
proper handling for default ports in auth stripping
2018-10-29 07:48:36 -05:00
Nate Prewitt
ea9436a5d6
proper handling for default ports in auth stripping
2018-10-28 23:29:04 -07:00
Maina Nick
3a831be413
Merge pull request #1 from requests/master
...
Syncing fork to the original repository
2018-10-28 14:20:07 +03:00
Nate Prewitt
7c812e919b
Merge pull request #4839 from rabdill/patch-1
...
Reverting redirect examples back to intended URLs
2018-10-20 16:36:09 -07:00
Rich Abdill
5fdc25b029
Reverting redirect examples back to intended URLs
...
A find/replace from a few weeks ago made the redirection sample not demonstrate redirection anymore
2018-10-20 16:55:48 -05:00
Nate Prewitt
d2962f1d55
update maintainer contact info
2018-10-18 09:03:51 -07:00
Nate Prewitt
edf7731e66
update vulnerability information
2018-10-18 09:00:12 -07:00
Nate Prewitt
a1f4e62aa4
fix broken HISTORY.md reference
2018-10-18 08:58:48 -07:00
Nate Prewitt
75bdc998e2
Merge pull request #4835 from requests/2.20.0
...
v2.20.0
2018-10-18 08:44:49 -07:00
Nate Prewitt
bd840450c0
v2.20.0
2018-10-17 22:32:22 -07:00
Nate Prewitt
7fd9267b3b
remove final remnants from 2.6
2018-10-17 00:18:51 -07:00
Hugo Osvaldo Barrera
6ae8a21892
Add myself to AUTHORS
...
(Or rather, just update my email)
2018-10-16 20:34:56 -07:00
Hugo Osvaldo Barrera
89ab030cdb
Use comprehensions whenever possible
2018-10-16 20:34:22 -07:00
Nate Prewitt
2c6a8426ae
Merge pull request #4827 from webmaven/patch-1
...
CVE URLs update: www sub-subdomain no longer valid
2018-10-16 09:33:08 -07:00
Michael R. Bernstein
30be889651
CVE URLs update: www sub-subdomain no longer valid
2018-10-16 10:10:30 -06:00
Nate Prewitt
a6cd380c64
Merge pull request #4765 from requests/encapsulate_urllib3_exc
...
wrap url parsing exceptions from urllib3's PoolManager
2018-09-30 20:23:57 -06:00
Nate Prewitt
bbdbcc8f05
wrap url parsing exceptions from urllib3's PoolManager
2018-09-30 18:36:05 -06:00
Nate Prewitt
ff0c325014
Merge pull request #4805 from jdufresne/https
...
Prefer https:// for URLs throughout project
2018-09-30 18:27:23 -06:00
Jon Dufresne
b0ad2499c8
Prefer https:// for URLs throughout project
2018-09-30 17:14:40 -05:00
Jon Dufresne
8f20b7dc8f
Remove dead link to unixstickers.com
...
The link does not link Requests stickers as the text suggests.
2018-09-30 14:03:59 -06:00
Nate Prewitt
207e83f6b6
Merge pull request #4802 from schafezp/patch-1
...
Update README.md to fix typo
2018-09-21 09:27:12 -07:00
Zachary Schafer
b3c8bb7bef
Update README.md to fix typo
...
I noticed "Rquests" was used at the top of the readme instead of "Requests". If that was intentional then ignore this change.
2018-09-21 12:22:53 -04:00
Kenneth Reitz
d26f6314ab
Update index.rst
2018-09-17 06:42:52 -04:00
Kenneth Reitz
dcf5617a5e
Update index.rst
2018-09-17 06:42:21 -04:00
Kenneth Reitz
76cf1fa214
Update index.rst
2018-09-17 06:41:41 -04:00
Kenneth Reitz
05dd0b88a1
Update index.rst
2018-09-17 06:40:47 -04:00
Kenneth Reitz
3f024ff774
Update index.rst
2018-09-17 06:40:26 -04:00
Kenneth Reitz
cb1bd313e1
Update MANIFEST.in
2018-09-17 06:07:08 -04:00
Kenneth Reitz
efc4ea6ed7
Delete HISTORY.rst
2018-09-17 06:06:47 -04:00
Kenneth Reitz
5251882a03
history
2018-09-17 06:06:08 -04:00
Kenneth Reitz
02a5d7ba68
Update MANIFEST.in
2018-09-17 06:05:18 -04:00
Kenneth Reitz
eea96f94d9
Update setup.py
2018-09-17 06:05:03 -04:00
Kenneth Reitz
9866277c03
Delete README.rst
2018-09-17 06:03:42 -04:00
Kenneth Reitz
7675468068
Update README.md
2018-09-17 06:03:22 -04:00
Kenneth Reitz
fdcb717cf7
Merge branch 'master' of github.com:requests/requests
2018-09-17 06:00:56 -04:00
Kenneth Reitz
4e7e2707e3
readme
2018-09-17 05:59:57 -04:00
Kenneth Reitz
86914e2dda
Update README.rst
2018-09-17 05:56:15 -04:00
Nate Prewitt
52473da631
Merge pull request #4791 from juozasget/patch-1
...
Tuple test_requirements was too long, PEP8
2018-09-15 21:44:26 +08:00
juozasget
b9dfc95cf2
Tuple test_requirements was too long, PEP8
...
Broken a long line into multiple lines inside tuple parenthesis.
2018-09-15 13:26:59 +03:00
Nate Prewitt
c292cabd1f
Merge pull request #4787 from vinayak-mehta/patch-1
...
Fix broken essay link
2018-09-15 08:08:44 +08:00
Vinayak Mehta
5ef429efe3
Fix broken essay link
2018-09-15 03:43:30 +05:30
Nate Prewitt
c45d7c49ea
Merge pull request #4718 from bmerry/fix-4716
...
Strip Authorization header whenever root URL changes
2018-09-14 20:08:04 +08:00
Bruce Merry
857e9b7ac2
Rework authorization stripping logic as discussed
...
The exception for http->https upgrade now requires the standard HTTP(S)
ports to be used, either implicitly (no port specified) or explicitly.
2018-09-14 10:44:43 +02:00
Bruce Merry
3331e2aecd
Strip Authorization header whenever root URL changes
...
Previously the header was stripped only if the hostname changed, but in
an https -> http redirect that can leak the credentials on the wire
(#4716 ). Based on with RFC 7235 section 2.2, the header is now stripped
if the "canonical root URL" (scheme+authority) has changed, by checking
scheme, hostname and port.
2018-09-14 10:44:43 +02:00
Nate Prewitt
dd754d13de
Merge pull request #4785 from alexwlchan/encounterd-of-the-third-kind
...
Fix a typo in a test docstring
2018-09-12 22:57:31 -07:00
Alex Chan
d1fab0b60c
Fix a typo in a test docstring
2018-09-13 06:26:59 +01:00
Kenneth Reitz
8472dbd134
Merge pull request #4782 from sayzlim/master
...
Fix CSS error
2018-09-10 16:02:00 -04:00
Sayz Lim
0fc171091d
Fix CSS error
...
Human error, I shouldn’t have moved the CTA.
2018-09-11 02:59:03 +07:00
Kenneth Reitz
15029e3b16
Merge pull request #4781 from sayzlim/master
...
Adjust padding and button placements
2018-09-10 15:35:07 -04:00
Sayz Lim
f18f12bcbc
Merge branch 'master' of https://github.com/sayzlim/requests
2018-09-11 00:11:44 +07:00
Sayz Lim
ddbeb3025b
Adjust padding and button placements
...
Move the CTA button so the version doesn’t overlap with it. Make the expanded ad more compact to take less vertical space.
2018-09-11 00:11:38 +07:00
Kenneth Reitz
0755c4cf1b
Merge branch 'master' of github.com:requests/requests
2018-09-10 11:07:28 -04:00
Kenneth Reitz
e7cce354c1
ad by
2018-09-10 11:07:20 -04:00
Kenneth Reitz
6e8c27e5a8
Merge pull request #4780 from sayzlim/master
...
Correct fixed footer width
2018-09-10 11:06:14 -04:00
Kenneth Reitz
16f0280c31
Merge branch 'master' into master
2018-09-10 11:06:03 -04:00
Kenneth Reitz
79e28b7f03
Merge branch 'master' of github.com:requests/requests
2018-09-10 11:05:14 -04:00
Sayz Lim
c3ec370e2d
Merge branch 'master' into master
2018-09-10 22:05:13 +07:00
Kenneth Reitz
e976ea839b
no more stickers :-/
2018-09-10 11:04:40 -04:00
Sayz Lim
08b6a78883
Correct fixed footer width
2018-09-10 21:52:30 +07:00
Kenneth Reitz
2072888e28
Merge pull request #4779 from sayzlim/master
...
Integrate Native CPC by BuySellAds
2018-09-10 10:49:30 -04:00
Sayz Lim
2297d33403
Integrate Native CPC by BuySellAds
...
Replacing Carbon zone key with the direct key and install CPC ad unit on the site.
2018-09-10 21:45:35 +07:00
Kenneth Reitz
a559d62f17
Revert "updates to docs"
...
This reverts commit f4818b2010 .
2018-09-10 06:29:01 -04:00
Kenneth Reitz
f4818b2010
updates to docs
2018-09-10 06:26:52 -04:00
Kenneth Reitz
33b41c7880
updates
2018-08-29 03:29:14 -04:00
Kenneth Reitz
704abf1332
updates
2018-08-29 03:28:33 -04:00
Nate Prewitt
9cfd292da3
Merge pull request #4723 from kalefranz/fix-no_proxy-file-url
...
Fix assumed hostname when using a 'file' URI scheme adapter
2018-08-13 09:54:33 -07:00
Kale Franz
8023a01dba
Fix assumed hostname when using a 'file' URI scheme adapter
2018-08-13 11:28:35 -05:00
Nate Prewitt
dffd5d435e
Merge pull request #4678 from jdufresne/intersphinx
...
In docs, use intersphinx to link to Python documentation
2018-08-11 20:34:59 -07:00
Jon Dufresne
5aa6a9b654
In docs, use intersphinx to link to Python documentation
...
The intersphinx extension can generate automatic links to the
documentation of objects in other projects. It was already used for
urllib3. For complete details on intersphinx, see:
http://www.sphinx-doc.org/en/master/ext/intersphinx.html
2018-08-11 17:31:43 -07:00
Nate Prewitt
922aa406b5
updating HISTORY.rst
2018-08-11 12:54:21 -07:00
Nate Prewitt
489f58ced5
represent classifiers as list instead of tuple
2018-08-06 23:04:50 -07:00
Jon Dufresne
c8f3add5ed
Update all documentation to show Python 3.7 is supported
...
Official support was added in 6686ac1730 .
2018-08-02 10:55:40 -07:00
Nate Prewitt
285ab5b06b
Merge pull request #4755 from dohvis/patch-1
...
Add return type on cookies.py
2018-08-02 10:53:43 -07:00
Dohyeon Kim
72d96a67ef
Add return type on cookies.py
...
http://docs.python-requests.org/en/master/api/#api-cookies
2018-08-01 17:21:03 +09:00
Nate Prewitt
e4d214dd76
Merge pull request #4749 from derlin/master
...
make content-type's charset information case-insensitive
2018-07-24 09:42:27 -07:00
Lucy Linder
907c927d60
make content-type's charset information case-insensitive
...
see issue https://github.com/requests/requests/issues/4748 for more information
2018-07-24 18:13:50 +02:00
Eric Brown
6686ac1730
Add official Python 3.7 support ( #4717 )
...
* Add official Python 3.7 support
Python 3.7 was just released [1]. This is a small change to
enable support in requests.
Signed-off-by: Eric Brown <browne@vmware.com >
2018-07-24 07:44:37 -07:00
Nate Prewitt
8e43d34d1f
Merge pull request #4701 from akaihola/4700-multivalued-list-form-encoded
...
Documentation and tests for form-encoded multivalued elements as lists
2018-07-20 09:56:28 -07:00
Antti Kaihola
9c92f757e6
Rolled multi-value form examples in documentation into one ( #4700 )
...
As suggested by @nateprewitt
2018-07-20 10:30:31 +03:00
Antti Kaihola
87fb312534
Add myself to the authors list
2018-07-20 10:30:31 +03:00
Antti Kaihola
9a8eb131c9
Documentation for multivalued form-encoded element as a list ( #4700 )
2018-07-20 10:30:31 +03:00
Antti Kaihola
691e9520ed
Add test for multivalued form-encoded element as a list ( #4700 )
2018-07-20 10:30:31 +03:00
Steven M. Vascellaro
4d51e6d201
Remove unused httpbin parameters
...
httpbin is used to mock HTTP endpoints. In these methods, the parameter
goes unused.
2018-07-17 19:39:18 -07:00
Nate Prewitt
5aeec8b661
Merge pull request #4739 from moy/doc-list-of-tuples
...
Document that params and data can be list of tuples everywhere
2018-07-17 15:16:02 -07:00
Matthieu Moy
c008bf3883
Document that 'params' can also be a list of tuples
...
Like we just did for 'data', 'params' follows the same processing and
can also be a list of tuples.
2018-07-17 18:55:55 +02:00
Matthieu Moy
2d1b4482c5
Document that 'data' can be a list of tuples everywhere
...
The documentation for the 'data' parameter of various functions was
inconsistant. The low-level function, used by every convenience API,
internally uses RequestEncodingMixin._encode_params which accepts list
of tuples as well as dictionaries, hence every function taking a data
parameter also accepts a list of tuple.
Keep the documentation short, but provide a link to Request for
details.
2018-07-17 18:45:43 +02:00
Kenneth Reitz
f6e13ccfc4
Update MANIFEST.in
2018-07-12 14:16:01 -04:00
Ian Stapleton Cordasco
4499401a55
Merge pull request #4728 from yan12125/patch-1
...
Fix an invalid escape sequence
2018-07-09 07:19:50 -05:00
Chih-Hsuan Yen
b1a360c2f1
Fix an invalid escape sequence
2018-07-09 01:10:00 +08:00
Nate Prewitt
ef88b9faa6
Merge pull request #4713 from Stevoisiak/fix-docstring-param
...
Misspelled 'proxy' parameter in docstring
2018-06-26 13:32:32 -07:00
Steven M. Vascellaro
5d90638281
Misspelled 'proxy' parameter in docstring
...
The 'proxy' parameter was misspelled as 'proxies' in the docstring.
2018-06-26 14:58:18 -04:00
Nate Prewitt
9fc639d030
Merge pull request #4710 from Stevoisiak/remove-unused-sessions
...
Remove unused session variables
2018-06-26 09:50:40 -07:00
Steven M. Vascellaro
28da72b616
Remove unused session variables
...
Removed local session variables that go unused during testing.
2018-06-26 12:34:15 -04:00
Kenneth Reitz
943a5c8e89
Merge pull request #4709 from Stevoisiak/update-twitter-max-characters
...
Update max Twitter characters to 280
2018-06-25 14:11:39 -04:00
Steven M. Vascellaro
0c036feb89
Update max Twitter characters to 280
...
Twitter expanded the maximum character count per tweet from 140 to 280 in November 2017.
2018-06-25 12:56:14 -04:00
Kenneth Reitz
d79187143f
Merge pull request #4708 from Stevoisiak/stack-overflow-typo
...
Change "StackOverflow" to "Stack Overflow"
2018-06-25 11:48:05 -04:00
Steven M. Vascellaro
3e4efeeb89
Change "StackOverflow" to "Stack Overflow"
...
Add a missing space when referring to "Stack Overflow".
2018-06-25 11:39:07 -04:00
Nate Prewitt
cd97ce90ba
Merge pull request #4685 from Stevoisiak/patch-2
...
Note that session() should not be used
2018-06-21 12:09:06 -07:00
Steven M. Vascellaro
1c13c5e6f3
Document that requests.session() is depreciated
...
Adds a docstring note that `requests.session()` is depreciated. Users should
use `requests.Session()` in versions released after Requests v1.0.
2018-06-21 09:46:16 -04:00
Nate Prewitt
883caaf145
v2.19.1
2018-06-14 06:26:27 -07:00
Ian Stapleton Cordasco
2530323faf
Merge pull request #4683 from martindurant/docstrings_for_optimize
...
Do not alter status_codes docstring if it is None
2018-06-13 10:24:45 -05:00
Martin Durant
8031ec76b8
Do not alter status_codes docstring if it is None
...
With PYTHONOPTIMIZE=2, the current code breaks with TypeError.
2018-06-12 17:52:50 -04:00
Nate Prewitt
991e8b76b7
v2.19.0
...
* Updated HISTORY.rst.
* Moved version pin for idna to allow recent 2.7 release.
* Updated version warning for urllib3 to allow 1.23.
* Updated metadata dunders in __version__.py.
* Removed Python 2.6 trove classifier.
* Removed Python 2.6 reference from README.rst.
2018-06-12 07:38:10 -07:00
Raymond Hettinger
7e297ed95b
Separate collections from collections.abc
2018-06-11 22:14:59 -07:00
Laurent Bachelier
10915e3b0d
Add a public method to get the cookie policy
2018-06-11 22:13:07 -07:00
Laurent Bachelier
ace0c200f4
Add cookie policy related tests
2018-06-11 22:13:07 -07:00
Laurent Bachelier
3ef49272f2
Copy cookie policy when copying a CookieJar
...
Without it, the cookie policy would get lost while making a request.
That would be invisible to the user if the default cookie policy wasn't
changed, of course.
2018-06-11 22:13:07 -07:00
Nate Prewitt
d1aeb7ea8c
Merge pull request #4672 from requests/remove_2.6_refs
...
remove references to 2.6 support in documentation
2018-06-11 07:13:13 -07:00
Nate Prewitt
de64f0f23f
port pyopenssl fix from urllib3
2018-06-10 14:49:13 -07:00
Nate Prewitt
bc46de58e6
remove references to 2.6 support in documentation
2018-06-10 14:48:59 -07:00
Nate Prewitt
16fd7e03a9
Merge pull request #4676 from jdufresne/doc-py3
...
Update Python 2 doc links to Python 3
2018-06-10 08:37:08 -07:00
Jon Dufresne
35a1874912
Update Python 2 doc links to Python 3
...
The Python 3 docs are better maintained and are the future of Python
development.
2018-06-09 20:29:41 -07:00
Nate Prewitt
d98f881118
Merge pull request #4669 from michael-k/patch-1
...
Allow urllib3 1.23
2018-06-05 06:35:08 -07:00
Michael
ac944b7439
Allow urllib3 1.23
...
https://github.com/urllib3/urllib3/blob/1.23/CHANGES.rst#123-2018-06-04
2018-06-05 12:06:03 +00:00
Ian Stapleton Cordasco
00fd4c8eb4
Merge pull request #4661 from ofek/patch-2
...
Response.content minor perf improvement
2018-05-26 19:00:25 -05:00
Ofek Lev
c1b828bc95
Response.content minor perf improvement
2018-05-26 18:20:27 -04:00
Nate Prewitt
fe8290b3d0
updating HISTORY.rst
2018-05-17 13:56:17 -07:00
Rajiv Mayani
8546a15587
The library raises NoneType error when file-pointer (fp) resolves to None.
...
>>> from requests import post
>>> r = post("https://example.com ", files={"file-name": None})
However, when a param value or json field is None they are not included in the request body.
>>> from requests import get
>>> r = get("https://example.com ", params={"file-name": None})
>>> r.request.url
This commit makes the beahviour consistent for files.
2018-05-17 13:56:17 -07:00
Ian Stapleton Cordasco
5f09f0ca7e
Merge pull request #4631 from pradyunsg/patch-1
...
Add long_description_content_type to setup.py
2018-05-17 09:34:06 -05:00
Ian Stapleton Cordasco
8bffd3da5f
Merge branch 'master' into patch-1
2018-05-17 09:12:26 -05:00
Nate Prewitt
9b5071cdb6
Merge pull request #4648 from requests/update_lock_file
...
bring Pipfile.lock up to date with current constraints
2018-05-16 12:31:48 -07:00
Nate Prewitt
c6db87978f
bring Pipfile.lock up to date with current constraints
2018-05-16 07:39:43 -07:00
Nate Prewitt
f3fc892b90
bring HISTORY.rst up to date with recent changes
2018-05-16 07:35:44 -07:00
Ian Stapleton Cordasco
161acb6a50
Merge pull request #4410 from linuxlizard/master
...
Add SHA-256 and SHA-512 digest auth algorithms
2018-05-16 09:06:57 -05:00
Ian Stapleton Cordasco
371ee7cbec
Merge branch 'master' into master
2018-05-16 08:46:26 -05:00
Ian Stapleton Cordasco
80e2637a83
Merge pull request #4647 from requests/appveyor_test
...
fix appveyor
2018-05-16 08:14:37 -05:00
Nate Prewitt
9055b33f6f
install Requests separately on appveyor to fix builds
2018-05-15 23:06:43 -07:00
Nate Prewitt
9616f82905
Merge pull request #4625 from nicktimko/patch-1
...
Certifi.io broken
2018-05-14 09:22:10 -07:00
Nick Timkovich
919c168cdb
Certifi.io broken
...
http://certifi.io/ -> https://certifiio.readthedocs.io/
2018-05-14 09:55:33 -05:00
Kenneth Reitz
adceafd79d
Update issue templates
2018-05-13 16:51:44 -04:00
Kenneth Reitz
e02effb774
Merge pull request #4632 from mingrammer/update-license
...
Update license copyright to 2018
2018-05-13 13:30:57 -04:00
Julien Prigent
60a5a393d8
Add a comment about lowercase env. variables precedence over uppercase
2018-05-13 06:15:56 -07:00
Kenneth Reitz
9e1d8edcb7
Merge branch 'master' into update-license
2018-05-12 17:10:24 -04:00
Ian Stapleton Cordasco
1e8a3142d2
Merge pull request #4634 from vshih/patch-1
...
Spelling.
2018-05-08 06:12:32 -05:00
Victor Shih
71e402fe40
Spelling.
2018-05-07 10:51:53 -07:00
Pradyun Gedam
048c926b46
README is in ReST
2018-05-07 00:23:38 +05:30
mingrammer
41c455182b
Update license copyright to 2018
2018-05-05 09:57:14 +09:00
Pradyun Gedam
5f306dbe99
Add long_description_content_type to setup.py
...
See:
- https://packaging.python.org/guides/making-a-pypi-friendly-readme/
- https://pypi.org/p/requests/
2018-05-04 16:43:25 +05:30
Nate Prewitt
239ee19431
Merge pull request #4612 from Obeyed/patch-1
...
update json param's description to avoid confusion
2018-04-30 08:00:19 -07:00
Elias Obeid
75c57985b0
update json param's description to avoid confusion
...
- the Request class doesn't accept JSON, but a JSON serializable object
2018-04-30 16:50:23 +02:00
Ian Stapleton Cordasco
11b82ca87c
Merge pull request #4620 from requests/appveyor_fix
...
fix windows builds
2018-04-29 18:56:09 -05:00
Nate Prewitt
cd1278ef99
fix windows builds
...
Appveyor isn't able to replace the running executable. We'll run it
from inside the interpreter to fix build issues.
2018-04-29 10:27:20 -07:00
Ian Stapleton Cordasco
2de907ad77
Merge pull request #4596 from jdufresne/pypi
...
Update all pypi.python.org URLs to pypi.org
2018-04-19 05:41:37 -05:00
Jon Dufresne
165804b25e
Update all pypi.python.org URLs to pypi.org
...
For details on the new PyPI, see the blog post:
https://pythoninsider.blogspot.ca/2018/04/new-pypi-launched-legacy-pypi-shutting.html
2018-04-18 20:28:19 -07:00
Nate Prewitt
b66908e7b6
Merge pull request #4547 from Saraislet/json-kwarg-docs
...
add comment about json parameter changing content-type
2018-03-16 12:42:55 -07:00
Hackbright Student
35af0b077f
add comment about json parameter changing content-type
2018-03-16 12:34:24 -07:00
Kenneth Reitz
8246b82a16
niteo
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-13 11:28:31 -04:00
Kenneth Reitz
cd6eb30b20
party time
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-12 17:11:08 -04:00
Kenneth Reitz
e203d50e10
every day
2018-03-12 17:07:37 -04:00
Kenneth Reitz
b920c6e3f8
no hr
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-12 17:05:01 -04:00
Kenneth Reitz
6576370b7b
cleanup
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-12 17:04:31 -04:00
Kenneth Reitz
85e536f7eb
reorder
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-12 17:04:14 -04:00
Kenneth Reitz
130773a2d3
sidebar updates
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-12 17:02:06 -04:00
Kenneth Reitz
87872b9587
sponsored by™
2018-03-12 16:59:11 -04:00
Kenneth Reitz
3de173e1c9
✨ 🍰 ✨
2018-03-12 16:54:00 -04:00
Kenneth Reitz
b5eacad638
patron sponsors
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-12 13:50:12 -04:00
Kenneth Reitz
b1ba9173d0
linode
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-12 13:48:12 -04:00
Kenneth Reitz
ee58368c9f
typo
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-09 17:02:15 -05:00
Kenneth Reitz
cf0b8ed291
azure
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-09 16:50:13 -05:00
Kenneth Reitz
280c8b2a72
azure
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-09 16:47:27 -05:00
Kenneth Reitz
16b56d822e
twilio!
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-09 11:07:37 -05:00
Kenneth Reitz
742610c6b9
linode
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-08 16:15:31 -05:00
Kenneth Reitz
eb692cb1e1
hiring
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-08 15:57:33 -05:00
Kenneth Reitz
f9a9233058
slack improvements
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-08 15:56:40 -05:00
Kenneth Reitz
9de992e22c
sign off
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-08 15:43:27 -05:00
Kenneth Reitz
c063938abb
individuals
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-08 15:42:17 -05:00
Kenneth Reitz
667367d6b9
better formatting
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-08 15:38:55 -05:00
Kenneth Reitz
8ce2fd2557
change order
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-08 15:36:29 -05:00
Kenneth Reitz
d8cc045a2e
contact
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-08 15:35:39 -05:00
Kenneth Reitz
dc10a5dadd
sponsors
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-08 15:34:07 -05:00
Kenneth Reitz
bf32936955
cleanup
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-08 15:33:26 -05:00
Kenneth Reitz
05b1401795
links
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-08 15:32:18 -05:00
Kenneth Reitz
873e8914c1
some
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-08 15:31:18 -05:00
Kenneth Reitz
c55258792b
cleanup
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-08 15:30:33 -05:00
Kenneth Reitz
afad1aab14
community
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-08 15:28:55 -05:00
Kenneth Reitz
d05840d34d
sponsors
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-08 15:28:41 -05:00
Kenneth Reitz
3323e65e96
track fundraiser on personal site
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-08 15:11:59 -05:00
Kenneth Reitz
74cf6fc38e
\o/
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-08 09:19:28 -05:00
Kenneth Reitz
d91b70bd29
512
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-08 06:29:53 -05:00
Kenneth Reitz
5daa6cc63c
$253
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-07 20:06:13 -05:00
Kenneth Reitz
0730b231ec
$203
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-07 20:02:12 -05:00
Kenneth Reitz
77aa42943e
more info
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-07 19:42:03 -05:00
Kenneth Reitz
b98027af9e
donations
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-07 19:41:24 -05:00
Kenneth Reitz
8ce2c1a182
one time
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-07 19:27:15 -05:00
Kenneth Reitz
327a54d29d
sidebar
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-07 19:24:45 -05:00
Kenneth Reitz
38a1947957
$10
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-07 19:11:45 -05:00
Kenneth Reitz
f8ade96762
sidebar
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-07 18:52:24 -05:00
Kenneth Reitz
665bb2a687
fix
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-07 18:49:49 -05:00
Kenneth Reitz
f21fd19ac5
goals
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-07 18:44:36 -05:00
Kenneth Reitz
f51c489d38
fix
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-07 17:41:09 -05:00
Kenneth Reitz
773eeff1a2
authors
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-07 17:40:38 -05:00
Kenneth Reitz
ac0a7ed152
fix
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-07 17:38:05 -05:00
Kenneth Reitz
a4f313a0e5
development
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-07 17:36:35 -05:00
Kenneth Reitz
8ca453a8d7
white
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-07 17:35:21 -05:00
Kenneth Reitz
c436165a2d
gitignore
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-07 17:34:04 -05:00
Kenneth Reitz
97b28fdf7f
top bar
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-07 17:33:51 -05:00
Kenneth Reitz
40f4b984ef
index
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-07 17:18:27 -05:00
Kenneth Reitz
529c423fb5
support for Requests 3.0
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-07 17:15:59 -05:00
Kenneth Reitz
e292f302b7
different form
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-07 17:01:50 -05:00
Kenneth Reitz
c95b63736d
links
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-07 16:56:58 -05:00
Kenneth Reitz
2d357f9c3b
cleanup
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-07 16:55:18 -05:00
Kenneth Reitz
7fb1d70b86
fix fix fix
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-07 16:54:40 -05:00
Kenneth Reitz
c78c5002b5
important
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-07 16:51:30 -05:00
Kenneth Reitz
d123e9fe78
fix broken things
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-07 16:48:44 -05:00
Kenneth Reitz
8ad24ad430
experiment
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-07 16:44:57 -05:00
David Poole
85ec7d759e
Merge branch 'master' into master
2018-03-05 09:07:12 -07:00
Kenneth Reitz
4ea09e49f7
.org
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-02-27 10:19:31 -05:00
Kenneth Reitz
06e788e253
<li><a href=" http://html.python-requests.com/ ">Requests-HTML</a></li>
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-02-27 09:18:00 -05:00
Kenneth Reitz
27aad3666c
Merge branch 'master' of github.com:requests/requests
2018-02-27 08:44:37 -05:00
Kenneth Reitz
44dbf8cf40
updated copyright year
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-02-27 08:44:29 -05:00
Kenneth Reitz
6e76aaea45
nike
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-02-22 08:34:32 -05:00
Jon Dufresne
265ef609d5
Remove remaining references to removed, vendored packages ( #4499 )
...
As the vendored packages were removing in version 2.16, all remaining
doc references should be replaced with newer practices.
2018-02-17 08:15:54 -06:00
Nate Prewitt
cafa3c16c2
Merge pull request #4497 from jdufresne/docs-certfi
...
Clarify docs that Requests always uses certs from certifi
2018-02-15 17:56:00 -08:00
Jon Dufresne
9c0db92249
Clarify docs that Requests always uses certs from certifi
...
Since commit 0d7de6430e , certifi is always
used for certificates. Certify became a hard dependency of the package
in 628633143d .
Now update the docs to clarify that Request will always use certificates
from certifi.
2018-02-14 05:47:34 -08:00
Kenneth Reitz
3c1d36b827
Merge branch 'master' of github.com:requests/requests
...
# Conflicts:
# docs/_templates/sidebarintro.html
# docs/_templates/sidebarlogo.html
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-02-12 09:43:07 -05:00
Kenneth Reitz
3cd87fac5d
new sidebar link
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-02-12 09:42:09 -05:00
Semen Zhydenko
22120d423e
Fix typos
...
nonexistant -> nonexistent
neccessary -> necessary
2018-02-07 18:25:22 -06:00
Nate Prewitt
654da610e1
Merge pull request #4498 from jdufresne/ws
...
Trim trialing white space throughout the project
2018-02-05 08:37:19 -08:00
Jon Dufresne
e8205c0131
Trim trialing white space throughout the project
...
Many editors clean up trailing white space on save. By removing it all
in one go, it helps keep future diffs cleaner by avoiding spurious white
space changes on unrelated lines.
2018-02-05 06:23:53 -08:00
Ian Stapleton Cordasco
8da118dfeb
Merge pull request #4493 from nateprewitt/3.7_testing
...
Start testing 3.7
2018-02-03 08:43:31 -06:00
Ian Stapleton Cordasco
d69c068ac2
Merge branch 'master' into 3.7_testing
2018-02-03 08:33:55 -06:00
Ian Stapleton Cordasco
3ad14bb54e
Merge pull request #4496 from lolatravel/pass_send_kwargs_to_add_headers
...
Pass kwargs from adapter send call to add_headers, per documentation
2018-02-03 07:40:44 -06:00
Jonathan Elliott Blum
8e040523a4
pass kwargs from send call to add_headers, per documentation
2018-02-02 13:10:16 -05:00
Nate Prewitt
99533b0f0f
start testing 3.7
2018-01-26 03:01:22 -08:00
Nate Prewitt
512066488e
updating history
2018-01-21 11:06:33 -08:00
Nate Prewitt
d2e1130603
Merge pull request #4452 from nateprewitt/append_fragment_on_redirect
...
append previous url fragment on redirect
2018-01-21 10:41:46 -08:00
Nate Prewitt
f60324a3de
append previous url fragment on redirect
2018-01-21 09:55:45 -08:00
Ian Stapleton Cordasco
f89c325fbe
Merge pull request #4439 from nkonin/fix/certifi-broken-link
...
Fix broken link to Certifi
2018-01-21 08:36:31 -06:00
Ian Stapleton Cordasco
d55b81b964
Merge branch 'master' into fix/certifi-broken-link
2018-01-21 08:12:19 -06:00
Kenneth Reitz
6a74c70a3a
merge
2018-01-20 09:02:15 -05:00
Kenneth Reitz
599a8f11f8
sidebar
2018-01-20 09:01:50 -05:00
Никита Конин
0813c865ee
Fix broken link to Certifi
2018-01-18 20:14:33 +03:00
Ian Stapleton Cordasco
07372dc058
Merge pull request #4427 from ddormer/4275-use-hostname-not-netloc
...
Use hostname not netloc
2018-01-16 08:07:26 -06:00
Darren Dormer
2255c34a65
Fix DNS resolution by using hostname instead of netloc and strip username and password when comparing against proxy bypass items.
2018-01-16 10:18:06 +01:00
Nate Prewitt
020f96577f
Merge pull request #4459 from jdufresne/pyreq
...
Pass python_requires argument to setuptools
2018-01-12 20:06:59 -08:00
Jon Dufresne
7cefa939f5
Pass python_requires argument to setuptools
...
Helps pip decide what version of the library to install.
https://packaging.python.org/tutorials/distributing-packages/#python-requires
> If your project only runs on certain Python versions, setting the
> python_requires argument to the appropriate PEP 440 version specifier
> string will prevent pip from installing the project on other Python
> versions.
https://setuptools.readthedocs.io/en/latest/setuptools.html#new-and-changed-setup-keywords
> python_requires
>
> A string corresponding to a version specifier (as defined in PEP 440)
> for the Python version, used to specify the Requires-Python defined in
> PEP 345.
2018-01-12 16:39:10 -08:00
Ian Stapleton Cordasco
b9d8e00cbc
Merge pull request #4460 from jdufresne/py33
...
Remove unsupported Python 3.3 from tox.ini
2018-01-11 08:41:08 -06:00
Jon Dufresne
620a5391c3
Remove unsupported Python 3.3 from tox.ini
...
Python 3.3 is not a supported version so don't test it.
2018-01-10 18:37:22 -08:00
Nate Prewitt
c98e30b5cb
Merge pull request #4451 from jdufresne/https
...
Prefer https over http for links in the documentation
2018-01-06 15:22:59 -08:00
Jon Dufresne
030dcce20c
Prefer https over http for links in the documentation
...
- Fixed Read the Docs links
- Fixed GitHub links
- Fixed PyPI links
2018-01-06 11:23:50 -08:00
Ian Stapleton Cordasco
3dc84cde5b
Merge pull request #4442 from DemetriosBairaktaris/master
...
Reduce overall memory usage by removing cgi dependency and writing a protected function
2018-01-04 16:32:39 -06:00
dbairaktaris1
e0ab287317
added more to test scenarios
2018-01-04 10:59:47 -06:00
dbairaktaris1
7deee699ad
slice function removed
2018-01-04 10:48:17 -06:00
dbairaktaris1
cb0914407b
Continue to refactor, remove list comprehension, add double quotes test case.
2018-01-04 10:30:50 -06:00
dbairaktaris1
80a790443e
implement changes after code review
2018-01-03 23:41:41 -06:00
dbairaktaris1
071796d83f
implement changes after code review
2018-01-03 23:40:08 -06:00
dbairaktaris1
1988d9cf72
Move nested function up to module level and rename. Add more tests for function.
2018-01-01 14:20:55 -06:00
dbairaktaris1
2dc51c887f
added versions back
2018-01-01 00:43:13 -06:00
dbairaktaris1
19cfec28a8
CI
2017-12-31 22:18:19 -06:00
dbairaktaris1
cef0830419
clean
2017-12-31 15:02:39 -06:00
dbairaktaris1
d8666e1906
Reduce overall memory usage of Requests module by removing cgi module dependency in utils.py. Instead wrote a nested function to parse header and return content type and params.
2017-12-31 14:46:15 -06:00
David Poole
efacb9e312
Merge branch 'master' into master
2017-11-29 07:13:07 -07:00
David Poole
1e46cbb4f0
add test for HTTP Digest auth algorithms SHA-256 and SHA-512
2017-11-29 07:10:57 -07:00
Cory Benfield
24092b11d7
Merge pull request #4380 from afedchin/win10
...
utils: winreg module may not exist like on windows universal platform.
2017-11-27 20:39:15 +00:00
Anton Fedchin
351ec982bb
update changelog
2017-11-25 17:21:59 +03:00
Anton Fedchin
714c9dc967
utils: winreg module may not exist like on windows universal platform.
2017-11-25 17:21:59 +03:00
Cory Benfield
d1fb1a29ab
Merge pull request #4394 from zaneb/document-status_codes
...
Add documentation for available status codes
2017-11-23 20:19:12 +00:00
Cory Benfield
c2507013ab
Merge branch 'master' into document-status_codes
2017-11-22 20:41:46 +00:00
Nate Prewitt
e68ef0ecad
Merge pull request #4368 from danielroseman/patch-1
...
Clarify behaviour of `json` parameter.
2017-11-22 07:56:09 -08:00
Zane Bitter
19919b44c4
Add documentation for available status codes
...
There was no way to determine what actual names were available outside
of looking at the source code. They were not listed in the documentation
or accessible through the interactive help.
In addition, doing `pydoc requests.status_codes` displayed some pretty
unhelpful information - the utf-8 encoding string was included in the
module name, there was no description, and internal variables used for
initialisation leaked into the module scope:
DATA
code = 511
codes = <lookup 'status_codes'>
title = 'network_authentication'
titles = ('network_authentication_required', 'network_auth', ...
This change prevents the internal variables from leaking, adds a
docstring (which has the side-effect of correcting the module name), and
appends information on the allowed status code names to the docstring
when the module is initialised.
The improved module documentation is then used in the API documentation
to provide another easy reference to the complete list of status codes.
2017-11-21 16:11:34 -05:00
Daniel Roseman
39446def39
Clarify behaviour of json parameter.
...
`json` is ignored if `data` or `files` is not empty.
2017-11-21 13:40:59 +00:00
Mingyuan Xia
acd2645444
#4373 , fix possible winreg value type difference ( #4377 )
...
* #4373 , fix possible winreg value type difference
* add a test for ProxyOverride and ProxyEnable on win32
* add tests for winreg key ProxyEnable with two possible types
* fixing AppVeyor failures
2017-11-20 20:01:04 +00:00
Ian Stapleton Cordasco
e4fc3539b4
Merge pull request #4390 from alexwlchan/ok-docs
...
[docs; tiny] Clarify that Response.ok will *only* return True/False
2017-11-20 07:18:00 -06:00
Alex Chan
775cde0914
Clarify that Response.ok will *only* return True/False
2017-11-20 09:16:35 +00:00
David Poole
a31531fb9c
Merge branch 'master' into master
2017-11-19 08:45:25 -07:00
Cory Benfield
c3f2553114
Merge pull request #4387 from dave-shawley/clarify-docs
...
Clarify raw response reading in the quickstart.
2017-11-18 09:44:29 +00:00
Dave Shawley
7cc3d8dc6a
docs/quickstart: clarify raw response reading.
2017-11-17 16:37:08 -05:00
Ian Stapleton Cordasco
6d69f944a4
Merge pull request #4384 from taleinat/quickstart_doc_http_to_html
...
Correct HTTP -> HTML in quickstart doc
2017-11-16 10:01:45 -06:00
Tal Einat
7f08ad3b6c
Corrent HTTP -> HTML in quickstart doc
2017-11-16 09:59:00 +02:00
Nate Prewitt
d55de2d391
Merge pull request #4356 from nehaljwani/fix-4353
...
Check if host is invalid for proxy
2017-11-15 14:16:33 -08:00
Nehal J Wani
9a8a826f22
Check if host is invalid for proxy
...
According to RFC3986, the authority section can be empty for a given URL,
however, for a proxy URL, it shouldn't be. This patch adds a check to verify
that the parsed URL will have a valid host before creating the proxy manager.
Fixes #4353
2017-11-15 08:58:54 -05:00
David Poole
1dbaddd75e
for RFC-7616 add SHA-256 and SHA-512
2017-11-08 18:32:59 -07:00
Cory Benfield
234f80af88
Merge pull request #4371 from Twistbioscience/zipfile_compat
...
support extraction of certificate bundle from a zip archive
2017-11-06 21:08:45 +00:00
Arthur Vigil
c86b09b3c6
support extraction of certificate bundle from a zip archive
2017-11-05 12:14:17 -08:00
Nate Prewitt
81b63419cb
Merge pull request #4352 from alexwlchan/hooks-on-sessions
...
Add something to the docs about hooks on Session()
2017-10-24 11:50:03 -07:00
Alex Chan
c5ed41e00a
Add an example of two hooks
2017-10-24 07:27:55 +01:00
Alex Chan
40c5a8b0c2
Clarify that a Session can have multiple hooks
2017-10-23 13:25:46 +01:00
Alex Chan
87f3b0a559
Switch to using dict literals, it's 2017
2017-10-23 13:25:31 +01:00
Alex Chan
2c4849defe
Add something to the docs about hooks on Session()
2017-10-23 08:30:35 +01:00
Nate Prewitt
c4c031fc5c
Merge pull request #4342 from jdufresne/wheel-license
...
Include license file in the generated wheel package
2017-10-21 16:53:01 -07:00
Jon Dufresne
1595e43812
Include license file in the generated wheel package
...
The wheel package format supports including the license file. This is
done using the [metadata] section in the setup.cfg file. For additional
information on this feature, see:
https://wheel.readthedocs.io/en/stable/index.html#including-the-license-in-the-generated-wheel-file
2017-10-21 16:39:48 -07:00
Cory Benfield
8982efa9e4
Merge pull request #4349 from alvarogzp/patch-1
...
Fix case-insensitive comparison in Session.get_adapter
2017-10-21 06:26:31 -07:00
Alvaro Gutierrez Perez
2afc1cb37b
Merge branch 'master' into patch-1
2017-10-21 03:24:55 +02:00
Cory Benfield
db9da3e0d2
Merge pull request #4316 from methane/no-platform
...
Avoid importing platform
2017-10-19 17:47:40 -07:00
INADA Naoki
a05aac7007
avoid import platform
...
platform module is relatively large: it takes about 5ms to import
2017-10-20 02:49:22 +09:00
Alvaro Gutierrez Perez
d165b18b6e
Split test in two better-defined tests
2017-10-19 17:04:48 +02:00
Alvaro Gutierrez Perez
e11989e8ec
Add test for Session.get_adapter() prefix matching
2017-10-19 16:50:13 +02:00
Alvaro Gutierrez Perez
af88af64e6
Add test for Session.get_adapter() case-insensitivity
2017-10-19 16:50:13 +02:00
Alvaro Gutierrez Perez
d3f14af44d
Fix case-insensitive comparison in get_adapter()
...
While trying to get the prefix for an url, the url was lowered before comparing but the prefix not, so if it contains non-lowercase characters (eg. https://api.example.com/sOmE_WeiRD_pReFIX/ ), it won't match.
2017-10-18 19:27:06 +02:00
Nate Prewitt
54ad3d6dcc
Merge pull request #4343 from jdufresne/classifier
...
Add missing trove classifier to document Python2 support
2017-10-16 01:21:19 -07:00
Jon Dufresne
c14bd018ad
Add missing trove classifier to document Python2 support
2017-10-15 19:48:10 -07:00
Nate Prewitt
e86df6e0eb
Merge pull request #4341 from hugovk/patch-1
...
Python 3.7 not officially supported yet
2017-10-15 13:35:52 -07:00
Hugo
ec5804c706
Python 3.3 has already been dropped ( #4231 )
2017-10-15 20:04:51 +03:00
Hugo
4316af7ae8
Python 3.7 not officially supported yet
2017-10-15 19:52:19 +03:00
Cory Benfield
8c4f78448a
Merge pull request #4332 from PrimordialHelios/pyopenssl-warning
...
Warn about possible slowness on older versions of pyOpenSSL
2017-10-14 08:41:02 -07:00
Taylor Rose
15054aa390
Warn user about possible slowdown when using cryptography version <
...
1.3.4
2017-10-14 09:00:58 -04:00
Kenneth Reitz
9713289e74
Merge branch 'master' of github.com:requests/requests
2017-09-25 11:04:47 -04:00
Kenneth Reitz
e6afc37be5
new pipfile with new syntax
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2017-09-25 11:04:38 -04:00
Ian Stapleton Cordasco
5eb0811ef8
Merge pull request #4305 from sigmavirus24/fix-pypi-display
...
Fix the invalid restructured text in HISTORY file
2017-09-23 16:21:48 -05:00
Ian Stapleton Cordasco
40c8bcf70c
Fix the invalid restructured text in HISTORY file
...
This was breaking the display of our long_description on PyPI.
2017-09-23 15:54:14 -05:00
Kenneth Reitz
0eb9a4c161
stickers
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2017-09-19 13:23:15 -04:00
Kenneth Reitz
cda429aa5d
Merge pull request #4295 from requests/pipenv
...
pipfile (work in progress)
2017-09-17 11:58:46 -04:00
Kenneth Reitz
28ae74dbad
update tests
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2017-09-17 11:46:33 -04:00
Kenneth Reitz
a9d05f06cd
remove requirements.txt
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2017-09-17 11:39:53 -04:00
Kenneth Reitz
d552132464
run coverage w/ pipenv
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2017-09-17 11:36:54 -04:00
Kenneth Reitz
c3ecb825c4
don't test on 2.6
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2017-09-17 11:30:26 -04:00
Kenneth Reitz
70a4ae744c
pip install pipenv
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2017-09-17 11:26:22 -04:00
Kenneth Reitz
4c300c2067
pipfile
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2017-09-17 11:24:05 -04:00
Kenneth Reitz
fdb9b753b4
Update authors.rst
2017-09-05 11:31:16 -04:00
Kenneth Reitz
4bda7b66e7
Update updates.rst
2017-09-04 16:21:57 -04:00
Kenneth Reitz
068d8863d1
Update support.rst
2017-09-04 16:21:04 -04:00
Kenneth Reitz
c49f3643ae
Update release-process.rst
2017-09-04 16:20:03 -04:00
Kenneth Reitz
328cff252d
Update out-there.rst
2017-09-04 16:19:36 -04:00
Kenneth Reitz
c57bd07a34
Update faq.rst
2017-09-04 16:19:01 -04:00
Kenneth Reitz
0d82afa0c3
Update recommended.rst
2017-09-04 16:18:00 -04:00
Kenneth Reitz
18e37c9368
Update todo.rst
2017-09-04 16:14:48 -04:00
Kenneth Reitz
389da34fc9
Update philosophy.rst
2017-09-04 16:14:07 -04:00
Kenneth Reitz
8ef20d5c36
Update contributing.rst
2017-09-04 16:13:08 -04:00
Kenneth Reitz
e63d481a7a
Update authors.rst
2017-09-04 16:12:38 -04:00
Kenneth Reitz
f3eeb38542
Update vulnerabilities.rst
2017-09-04 16:11:52 -04:00
Kenneth Reitz
afaaae185c
Update authentication.rst
2017-09-04 16:10:49 -04:00
Kenneth Reitz
8af65a1eca
Update quickstart.rst
2017-09-04 16:09:51 -04:00
Kenneth Reitz
c04b044b30
Update advanced.rst
2017-09-04 16:09:08 -04:00
Kenneth Reitz
530198e0c0
Update install.rst
2017-09-04 16:08:22 -04:00
Kenneth Reitz
8c57515696
Update intro.rst
2017-09-04 16:05:57 -04:00
Kenneth Reitz
175452a6b6
Update index.rst
2017-09-04 16:04:07 -04:00
Kenneth Reitz
e35c829b59
Update index.rst
2017-09-04 16:03:49 -04:00
Kenneth Reitz
1ad51b0a41
Update index.rst
2017-09-04 15:55:53 -04:00
Kenneth Reitz
8be8105c42
Update advanced.rst
2017-09-04 15:53:26 -04:00
Kenneth Reitz
49ec082a77
Update recommended.rst
2017-09-04 15:50:38 -04:00
Kenneth Reitz
0488c640e2
Update index.rst
2017-09-04 15:46:47 -04:00
Kenneth Reitz
8371b56d0f
Delete extensions.rst
2017-09-04 15:46:24 -04:00
Kenneth Reitz
830c18e4f9
Update index.rst
2017-09-04 15:45:28 -04:00
Kenneth Reitz
2c438cacd1
Create extensions.rst
2017-09-04 15:44:57 -04:00
Kenneth Reitz
9c8ae76928
Update index.rst
2017-09-04 15:40:02 -04:00
Kenneth Reitz
d5a05469f1
Update README.rst
2017-09-04 15:38:13 -04:00
Kenneth Reitz
e22e3a5059
Update README.rst
2017-09-04 15:37:24 -04:00
Kenneth Reitz
054ad4aa67
Update README.rst
2017-09-04 12:59:01 -04:00
Kenneth Reitz
b9638ec7be
taste
2017-09-01 13:10:52 -04:00
Kenneth Reitz
940c1246e0
taste
2017-09-01 13:10:29 -04:00
Kenneth Reitz
e0e5b2e3aa
Update philosophy.rst
2017-08-29 16:16:52 -04:00
Kenneth Reitz
96b9a3f0fc
Update setup.py
2017-08-28 12:25:26 -04:00
Cory Benfield
657e44ad9a
Merge pull request #4265 from PascalVA/patch-2
...
fixed syntax for code block for prepared requests
2017-08-28 10:39:26 +01:00
Pascal Van Acker
ac9a3e5320
fixed syntax for code block for prepared requests
2017-08-28 11:14:05 +02:00
Cory Benfield
6b21682712
Merge pull request #4264 from PascalVA/patch-1
...
Add environment info to prepared requests docs
2017-08-28 10:08:07 +01:00
Pascal Van Acker
785c733415
Add environment info to prepared requests
...
When using prepared requests, the environment is not taken into account. This should be reflected in the documentation.
2017-08-28 10:58:44 +02:00
Kenneth Reitz
369be8afd0
pretty little note
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2017-08-28 02:01:36 -04:00
Kenneth Reitz
572d2f4534
Python 2 Death Sentence™
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2017-08-28 01:50:35 -04:00
Kenneth Reitz
7e20b9193a
Update index.rst
2017-08-28 01:33:45 -04:00
Kenneth Reitz
ad1aff52a0
Update index.rst
2017-08-28 01:33:32 -04:00
Kenneth Reitz
3a6dec9827
Update index.rst
2017-08-28 01:29:29 -04:00
Kenneth Reitz
3cceee3459
Update install.rst
2017-08-27 23:16:32 -04:00
Kenneth Reitz
dd57439fa5
Update README.rst
2017-08-27 23:13:50 -04:00
Cory Benfield
f09e462165
Merge pull request #4261 from Lukasa/fix-broken-tests
...
Pin to httpbin 0.5.0.
2017-08-27 14:00:37 +01:00
Cory Benfield
3a2ea9deba
Pin to httpbin 0.5.0
2017-08-27 08:54:01 +01:00
Kenneth Reitz
5dcbdb50fc
docs update
2017-08-25 22:12:34 -04:00
Kenneth Reitz
8ad09b68ea
coinbin.org
2017-08-25 22:02:03 -04:00
Kenneth Reitz
88dc33522d
Merge branch 'master' of https://github.com/requests/requests
2017-08-20 20:56:54 -04:00
Kenneth Reitz
e5666b93cf
btc
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2017-08-20 20:56:48 -04:00
Cory Benfield
554a210f88
Merge pull request #4245 from remram44/fix-headers-links
...
Fix parse_header_links on empty header
2017-08-17 20:34:06 +01:00
Remi Rampin
8e411d0f99
Add test case for empty Link: header
2017-08-17 12:56:45 -04:00
Remi Rampin
7d190ef010
Add entry in HISTORY.rst
2017-08-17 12:56:38 -04:00
Remi Rampin
965ada6f66
Fix parse_header_links on empty header
2017-08-16 22:10:20 -04:00
Cory Benfield
af9dd61fcb
Prepare for new release
2017-08-15 14:24:20 +01:00
Cory Benfield
a3d7cf3f27
v2.18.4
2017-08-15 14:22:52 +01:00
Cory Benfield
3c5ecfc9f5
Merge pull request #4240 from mgasvoda/master
...
Adding header name to exception
2017-08-12 15:41:27 +01:00
mgasvoda
d528106876
Adding record to history
2017-08-12 10:23:45 -04:00
mgasvoda
cbc7c2d1c9
Modifying tests to include header name info
2017-08-11 17:18:58 -04:00
mgasvoda
e36083b89c
Adding space after colon
2017-08-11 16:19:43 -04:00
mgasvoda
308343508b
Removing trailing whitespace
2017-08-11 16:14:13 -04:00
mgasvoda
ba21d14976
Improving message formatting
2017-08-11 16:12:36 -04:00
mgasvoda
cee8fae65e
Adding header name to exception
...
Adds the name of the header to the invalid header exception raised on TypeError.
2017-08-11 15:37:57 -04:00
Kenneth Reitz
1c2022cf86
Merge pull request #4231 from Lukasa/drop-3.3-support
...
Drop Python 3.3 support.
2017-08-10 14:03:36 -04:00
Kenneth Reitz
8480cf937a
Merge pull request #4237 from robinske/doc-import
...
Adds import statement to front page of docs for clarity and quicker start up
2017-08-10 14:02:57 -04:00
Kelley Robinson
f6952a9b8d
Merge branch 'master' into doc-import
2017-08-10 10:33:22 -07:00
kelley
d758f0cf97
Adds import statement to front page of docs for clarity and quicker start up
2017-08-10 10:23:43 -07:00
Cory Benfield
c31a450c55
Remove references to 3.3 from the docs
2017-08-09 19:40:52 +01:00
Cory Benfield
0a2dc74ecb
Drop Python 3.3 support
2017-08-09 19:03:04 +01:00
Cory Benfield
f78a57936b
Merge pull request #4229 from NikosVlagoidis/issue#3863
...
Fixes issue #3863
2017-08-09 18:56:40 +01:00
NikosVlagoidis
218978601f
Fix issue #3863
2017-08-09 20:18:43 +03:00
NikosVlagoidis
cb9620780f
Update advanced.rst
2017-08-09 18:52:26 +03:00
Nikolaos Vlagoidis
963c78853f
Fixes issue #3863
2017-08-09 15:38:45 +03:00
Kenneth Reitz
b670b61d54
Update AUTHORS.rst
2017-08-08 19:16:39 -04:00
Cory Benfield
9ec2005d9f
Merge pull request #4223 from Lukasa/widen-idna-pin
...
Allow IDNA 2.6
2017-08-08 15:42:54 +01:00
Cory Benfield
f4ddf00c36
Allow IDNA 2.6
2017-08-08 13:32:15 +01:00
Cory Benfield
248f122970
Merge pull request #4217 from nikolas/patch-1
...
fix typo in changelog
2017-08-02 15:38:46 +01:00
Nik Nyby
be8ce365ab
fix typo in changelog
2017-08-02 10:26:41 -04:00
Cory Benfield
3393dc8221
Prepare changelog for next release
2017-08-02 14:24:02 +01:00
Cory Benfield
7c67c4adf9
v2.18.3
2017-08-02 14:22:44 +01:00
Ian Stapleton Cordasco
2a4dd64fb4
Merge pull request #4210 from Lukasa/sslerror
...
Make sure we raise SSLError.
2017-07-29 06:27:17 -05:00
Cory Benfield
9e0fb37fff
Changelog for #4209
2017-07-29 12:13:55 +01:00
Cory Benfield
4f49f6b3ed
Correctly raise SSLError from urllib3.
2017-07-29 12:12:11 +01:00
Cory Benfield
8b3f20ca91
Add failing test for #4209
2017-07-29 12:09:04 +01:00
Nate Prewitt
fdf426125b
Merge pull request #4182 from alexwlchan/idna-version
...
Add idna version info to requests.help
2017-07-27 14:54:09 -06:00
Alex Chan
d6b57c6fb2
Changelog entry
2017-07-27 21:33:44 +01:00
Alex Chan
39b121d791
Add idna version info to requests.help
2017-07-27 21:33:42 +01:00
Nate Prewitt
12c7456789
Merge pull request #4174 from alex/patch-2
...
Removed legacy fallback for python3.2
2017-07-27 09:51:33 -06:00
Alex Gaynor
2629c0906e
Merge branch 'master' into patch-2
2017-07-27 11:19:32 -04:00
Cory Benfield
205755834d
Merge pull request #4207 from markjszy/master
...
remove legacy super() call
2017-07-27 05:40:03 +01:00
Mark Szymanski
e2f5a135c3
remove legacy super() call
2017-07-26 19:21:45 -05:00
Cory Benfield
8de858f0de
Merge pull request #4206 from jvanasco/feature-redirects
...
some docs on request redirect detection
2017-07-26 20:57:22 +01:00
jonathan vanasco
667896c557
some docs on request redirect detection
2017-07-26 15:32:07 -04:00
Cory Benfield
2b6f1e6236
Merge pull request #4204 from browniebroke/patch-1
...
Correct urllib3 compatibility comment
2017-07-26 11:03:57 +01:00
Bruno Alla
b77c1a3deb
Correct urllib3 compatibility comment
...
So that it's in line with the code. I saw the warning raised recently and had to dive into the code for exact compatibility, but I stopped after reading the comment rather than the code.
Maybe a better solution would be to surface the supported versions in the warning, but I see it was changed recently in https://github.com/requests/requests/pull/4144/
2017-07-26 10:23:01 +01:00
Cory Benfield
9e8d403a21
Prepare changelog for next release
2017-07-25 16:23:50 +01:00
Cory Benfield
6cc891fd32
v2.18.2
2017-07-25 16:21:48 +01:00
Cory Benfield
49c44a0c08
Merge pull request #4198 from andportnoy/patch-1
...
redundant comma
2017-07-21 07:05:10 +01:00
Andrey Portnoy
c6e18b04e3
redundant comma
2017-07-20 20:49:24 -07:00
Ian Stapleton Cordasco
c10b8384e4
Merge pull request #4196 from Lukasa/require-next-urllib3
...
Allow urllib3 1.22
2017-07-20 06:52:11 -05:00
Cory Benfield
8d1228cd19
Allow urllib3 1.22
2017-07-20 10:08:50 +01:00
Cory Benfield
8e227aeb89
Merge pull request #4195 from requests/requests/sessions-mount-docstring-clarity
...
Use 'prefix' instead of 'key' in session docstring
2017-07-20 09:13:06 +01:00
Alex Muller
d8c2fdf92f
Use 'prefix' instead of 'key' in session docstring
...
This commit makes the API docs more clear. The 'key' is an
implementation detail.
2017-07-20 10:06:34 +02:00
Cory Benfield
cada19b300
Merge pull request #4192 from koobs/patch-2
...
Add requirements.txt to MANIFEST.in
2017-07-15 07:39:01 +01:00
Kubilay Kocak
c6a80640d1
Add requirements.txt to MANIFEST.in
2017-07-15 14:44:57 +10:00
Kenneth Reitz
649efc8c9b
Merge branch 'master' of github.com:kennethreitz/requests
2017-07-06 17:57:37 -04:00
Kenneth Reitz
14176d1d63
no more stickers
2017-07-06 17:57:28 -04:00
Cory Benfield
1ea4e21958
Merge pull request #4183 from requests/fix_help_ssl_check
...
Fix help ssl check
2017-07-04 09:16:02 +01:00
Nate Prewitt
51feabbc27
test ssl version check functions as expected in python 2.6
2017-07-04 00:33:16 -06:00
Nate Prewitt
f6e07bb27f
fix OPENSSL_VERSION_NUMBER check on Python2.6's ssl module
2017-07-03 17:21:56 -06:00
Alex Gaynor
c054a722bb
Removed legacy fallback for python3.2
2017-06-25 12:51:15 -04:00
Kenneth Reitz
bbeb1c32d2
Merge branch 'master' of github.com:kennethreitz/requests
2017-06-16 18:31:19 -04:00
Kenneth Reitz
1263b8660d
stickers
2017-06-16 18:30:39 -04:00
Cory Benfield
2fde9ee407
Setup HISTORY for next release
2017-06-14 18:52:03 +01:00
Cory Benfield
51de61f914
v2.18.1
2017-06-14 18:50:53 +01:00
Cory Benfield
dd13b13479
Prepare for next release cycle
2017-06-14 16:45:03 +01:00
Cory Benfield
d93b37cee7
Prepare v2.18.0
2017-06-14 16:43:40 +01:00
Kenneth Reitz
a5b8f8d40a
Merge branch 'master' of github.com:kennethreitz/requests
2017-06-11 18:10:11 -04:00
Kenneth Reitz
a8972a5bd2
attempt new ads
2017-06-11 18:10:05 -04:00
Cory Benfield
bb4326c676
Merge pull request #4152 from felixonmars/patch-1
...
Fix a typo: paramters -> parameters
2017-06-11 18:34:36 +01:00
Felix Yan
a0f0258eee
Fix a typo: paramters -> parameters
2017-06-12 01:27:11 +08:00
Cory Benfield
c5901ac893
Merge pull request #4151 from mayhewj/remove-exec
...
Remove exec permission from files that shouldn't have it
2017-06-11 10:26:51 +01:00
Justin Mayhew
c6a6347156
Remove exec permission from files that shouldn't have it
2017-06-10 20:38:45 -03:00
Cory Benfield
132040cc03
Merge pull request #4134 from mlcrazy/master
...
Raise exceptions in utils.set_environ
2017-06-09 19:34:56 +01:00
mlcrazy
613f61d77c
Merge remote-tracking branch 'upstream/master'
2017-06-09 14:32:27 -04:00
mlcrazy
edcc894a2e
Adds to AUTHORS
2017-06-09 14:29:28 -04:00
mlcrazy
761e39b443
Adds changelog entry for #4134
2017-06-09 14:16:32 -04:00
mlcrazy
1d7fd6c8b3
Fixes error swallowing in set_environ
2017-06-09 14:10:47 -04:00
Kenneth Reitz
b3d138e0fd
Merge pull request #4140 from Lukasa/issue/4138
...
Clearer makefile for building README.
2017-06-09 13:30:56 -04:00
Kenneth Reitz
8a8b71f786
Merge branch 'master' into issue/4138
2017-06-09 13:27:02 -04:00
Cory Benfield
2872f17ab8
Merge pull request #4145 from gaojiuli/patch-1
...
typo
2017-06-09 10:04:40 +01:00
JiuLi Gao
22d12b0501
typo
2017-06-09 16:56:14 +08:00
Nate Prewitt
13eb907c48
Merge pull request #4144 from nateprewitt/move_compat_to_warn
...
Convert version compatibility checks to warnings
2017-06-08 19:40:07 -06:00
Nate Prewitt
d8e2367809
convert version compatibility checks to warning
2017-06-08 15:21:25 -06:00
Cory Benfield
f8ccc60498
Clearer makefile for building README
2017-06-07 13:50:00 +01:00
Cory Benfield
4f1b17c9c1
Merge pull request #4137 from edmorley/response-context-manager
...
Allow Requests.Response to be used as a context manager
2017-06-07 08:51:41 +01:00
Ed Morley
4847f5b8cd
Allow Requests.Response to be used as a context manager
...
This saves having to wrap the call to requests with
`contextlib.closing()`, allowing it to be used directly in a
`with` statement, like so:
```
with requests.get('http://httpbin.org/get ', stream=True) as r:
# Do things with the response here.
```
Fixes #4136 .
2017-06-06 23:30:47 +01:00
Kenneth Reitz
40ce8144d1
Merge pull request #4135 from edmorley/gitignore-pytest-cache
...
Add the pytest .cache/ directory to .gitignore
2017-06-06 18:00:38 -04:00
Ed Morley
5a616ee980
Add the pytest .cache/ directory to .gitignore
...
For example, when a pytest run fails, it saves failure metadata to:
`.cache/v/cache/lastfailed`
2017-06-06 22:44:22 +01:00
Nate Prewitt
b6ee4b2156
Merge pull request #4129 from felixonmars/fix-typo
...
Fix a typo: verison -> version
2017-06-05 22:07:28 -06:00
Felix Yan
0abb69b1cb
Fix a typo: verison -> version
2017-06-06 12:01:41 +08:00
Cory Benfield
56971482af
Merge pull request #4114 from cyberjacob/master
...
Catch error if multiprocessing is not available or is unable to determine the number of CPUs
2017-05-30 13:54:31 +01:00
Jacob Mansfield
98bbf8d170
Catch error if multiprocessing is not available or is unable to determine the number of CPUs
2017-05-30 13:47:55 +01:00
Cory Benfield
d3a4d06238
Begin dev section of README
2017-05-30 11:49:05 +01:00
Kenneth Reitz
152faa2a0f
change development philosophy docs to reflect reality
2017-05-29 23:46:50 -04:00
Kenneth Reitz
e41c2c2d96
remove note about cacerts.pem
2017-05-29 23:43:53 -04:00
Kenneth Reitz
3ca2722802
improve development instructions
2017-05-29 23:41:48 -04:00
Kenneth Reitz
310d7f8a9b
update development documentation
2017-05-29 23:40:44 -04:00
Kenneth Reitz
01f982da50
remove "are you crazy?" section
2017-05-29 23:38:48 -04:00
Kenneth Reitz
ba509635a3
fix sidebars
2017-05-29 23:36:50 -04:00
Kenneth Reitz
008ab18a77
improve installation docs
2017-05-29 23:33:51 -04:00
Kenneth Reitz
67831abaaf
improve install docs
2017-05-29 23:33:25 -04:00
Kenneth Reitz
0f57faba70
fix github stars
2017-05-29 23:26:50 -04:00
Kenneth Reitz
35f2e55308
improve installation instructions
2017-05-29 23:26:15 -04:00
Kenneth Reitz
77ae596e8b
Merge branch 'master' of github.com:kennethreitz/requests
2017-05-29 23:25:31 -04:00
Kenneth Reitz
84114419a0
improve install documentation syntax
2017-05-29 23:25:21 -04:00
Kenneth Reitz
500fe3ee03
Merge pull request #4108 from requests/flake8-improvements
...
flake8 improvements
2017-05-29 23:08:03 -04:00
Kenneth Reitz
d78ec90e7b
cleanup utils.py
2017-05-29 23:04:45 -04:00
Kenneth Reitz
04ed1e5122
cleanup sessions.py
2017-05-29 23:02:23 -04:00
Kenneth Reitz
33619268f9
cleanup models.py
2017-05-29 23:00:09 -04:00
Kenneth Reitz
e5894e99b7
improve flake8 help.py
2017-05-29 22:58:01 -04:00
Kenneth Reitz
6495190b00
cleanup help.py (flake8)
2017-05-29 22:55:08 -04:00
Kenneth Reitz
5b363d1a57
improve line continuations for flake8
2017-05-29 22:54:23 -04:00
Kenneth Reitz
f6a4ab02da
fix empty lines for flake8
2017-05-29 22:44:33 -04:00
Kenneth Reitz
5fa4e74d61
fix flake8 indent error
2017-05-29 22:43:12 -04:00
Kenneth Reitz
7fc48b099e
ignore undefined names in flake8
2017-05-29 22:41:51 -04:00
Kenneth Reitz
3fa02a1336
flake8 ignore lambda expressions
2017-05-29 22:41:07 -04:00
Kenneth Reitz
e55d3d0658
fix spaces in api.py
2017-05-29 22:40:37 -04:00
Kenneth Reitz
7c3861a322
fix flake8 for EOF in __init__.py
2017-05-29 22:40:09 -04:00
Kenneth Reitz
7c2618eb82
flake8: import statement improvements
2017-05-29 22:37:43 -04:00
Kenneth Reitz
4e1bbe1288
ignore line continuations for flake8
2017-05-29 22:35:33 -04:00
Kenneth Reitz
cfc3db06cf
ignore import statements for flake8
2017-05-29 22:34:32 -04:00
Kenneth Reitz
5091c15bd7
v2.17.3
2017-05-29 17:54:15 -04:00
Kenneth Reitz
dcb8277975
v2.17.2
2017-05-29 17:52:03 -04:00
Kenneth Reitz
412e3a20a9
2.17.1
2017-05-29 17:52:03 -04:00
Kenneth Reitz
17084cd6d8
Merge pull request #4106 from silverlogic/master
...
Fix requests.packages not having package attributes
2017-05-29 17:31:49 -04:00
Ryan Pineo
1278ecdf71
Fix requests.packages not having package attributes
...
Fixes #4104
2017-05-29 17:27:10 -04:00
Kenneth Reitz
2d763c90ae
v2.17.1
2017-05-29 15:59:00 -04:00
Kenneth Reitz
db076c098e
Merge pull request #4103 from untitaker/issue4102
...
Preserve identity of unbundled deps
2017-05-29 15:45:39 -04:00
Markus Unterwaditzer
588e8f7f64
Preserve identity of unbundled deps
...
Fix #4102
2017-05-29 21:41:59 +02:00
Kenneth Reitz
593cd18202
Merge branch 'master' of github.com:kennethreitz/requests
2017-05-29 14:28:23 -04:00
Kenneth Reitz
2daf1cbad9
fix manifest file
2017-05-29 14:28:17 -04:00
Kenneth Reitz
71d8f289b0
Update index.rst
2017-05-29 13:28:54 -04:00
Kenneth Reitz
44c9b7e93b
Update README.rst
2017-05-29 13:28:18 -04:00
Kenneth Reitz
916d171f2b
Merge branch 'master' of github.com:kennethreitz/requests
2017-05-29 13:17:57 -04:00
Kenneth Reitz
3857431159
v2.17.0
2017-05-29 13:17:49 -04:00
Kenneth Reitz
4ad4670583
Merge pull request #4099 from requests/requests-namespace
...
Requests namespace
2017-05-29 13:15:20 -04:00
Kenneth Reitz
68076a7f81
Merge pull request #4100 from bcongdon/remove-redirect-cache
...
Remove session redirect cache
2017-05-29 13:14:42 -04:00
Benjamin Congdon
86f8cb8a35
Remove session redirect cache
2017-05-29 09:53:24 -07:00
Kenneth Reitz
7f14db17c8
new requests namespace
2017-05-29 12:11:43 -04:00
Kenneth Reitz
14c1102e0f
new installation location
2017-05-29 12:08:28 -04:00
Kenneth Reitz
c77911ca0f
Merge pull request #4094 from kennethreitz/flake8
...
Flake8
2017-05-29 01:53:26 -04:00
Kenneth Reitz
5a2e5af3a4
try junit
2017-05-29 01:51:06 -04:00
Kenneth Reitz
31fc69ec0d
empty commit
2017-05-29 01:39:42 -04:00
Kenneth Reitz
88b435e7e8
only flake8 the right directory
2017-05-29 01:36:00 -04:00
Kenneth Reitz
60226cc25c
empty commit
2017-05-29 01:32:26 -04:00
Kenneth Reitz
8ddba4662d
no piping to a file
2017-05-28 22:06:04 -04:00
Kenneth Reitz
cd2beaf04a
flake8report.txt
2017-05-28 21:54:13 -04:00
Kenneth Reitz
58501d1ec7
docutils
2017-05-28 21:43:29 -04:00
Kenneth Reitz
beccd21146
bunk change
2017-05-28 21:42:09 -04:00
Kenneth Reitz
0622b5c54e
flake8
2017-05-28 21:38:27 -04:00
Kenneth Reitz
821774cf47
Update requirements.txt
2017-05-28 21:29:35 -04:00
Kenneth Reitz
78349914c8
Merge pull request #4086 from kennethreitz/travis2
...
try this travis file
2017-05-28 11:38:51 -07:00
Kenneth Reitz
2ccecf6dbd
skip for now
2017-05-28 13:05:09 -04:00
Kenneth Reitz
8af1d9331f
fix
2017-05-28 13:03:26 -04:00
Kenneth Reitz
ef34a85378
better ci file
2017-05-28 12:55:59 -04:00
Kenneth Reitz
55014bcc48
try this travis file
2017-05-28 12:51:27 -04:00
Kenneth Reitz
303eca03f3
no more pipenv
2017-05-28 12:37:34 -04:00
Kenneth Reitz
e02eb69fcc
that doesn't work on windows
2017-05-28 12:33:56 -04:00
Kenneth Reitz
2936a77678
speed up appveyor
2017-05-28 12:30:58 -04:00
Kenneth Reitz
e6e3589c36
number of cores for travis
2017-05-28 12:14:27 -04:00
Kenneth Reitz
c3a00771e3
todo
2017-05-28 00:43:54 -04:00
Kenneth Reitz
16c8241a81
v2.16.5
2017-05-28 00:35:36 -04:00
Kenneth Reitz
1dfa631dae
updates to travis ci
2017-05-27 23:54:53 -04:00
Kenneth Reitz
1fa168eea4
tox.ini
2017-05-27 23:52:44 -04:00
Kenneth Reitz
8b5fa606ec
improvements to help utility
2017-05-27 23:51:22 -04:00
Kenneth Reitz
148ab30d70
Merge pull request #4083 from kennethreitz/faster-ci
...
faster ci (test)
2017-05-27 20:37:37 -07:00
Kenneth Reitz
8d0c2537ee
better comments
2017-05-27 23:34:56 -04:00
Kenneth Reitz
458008653c
detox
2017-05-27 23:33:13 -04:00
Kenneth Reitz
679d368e3e
setup.py improvements
2017-05-27 23:27:38 -04:00
Kenneth Reitz
7384fe71d6
let's see what this breaks
2017-05-27 23:22:49 -04:00
Kenneth Reitz
94331723d1
try again
2017-05-27 23:19:59 -04:00
Kenneth Reitz
b565b79858
skip that
2017-05-27 23:14:06 -04:00
Kenneth Reitz
a00d14a61f
pytest
2017-05-27 23:11:01 -04:00
Kenneth Reitz
dc70edf17d
try this
2017-05-27 23:09:38 -04:00
Kenneth Reitz
68fda6bcf2
see if that fixes things
2017-05-27 23:07:24 -04:00
Kenneth Reitz
141ce93445
test
2017-05-27 23:04:12 -04:00
Kenneth Reitz
6abe1ff933
update
2017-05-27 23:02:45 -04:00
Kenneth Reitz
3d425ac191
try this
2017-05-27 23:00:30 -04:00
Kenneth Reitz
0ff28d7421
faster
2017-05-27 22:57:45 -04:00
Kenneth Reitz
2758b8b0f0
improve speed of travis-ci
2017-05-27 22:56:43 -04:00
Kenneth Reitz
6746b2540d
faster
2017-05-27 22:55:22 -04:00
Kenneth Reitz
03944f4cd6
restore old behavior
2017-05-27 20:33:32 -04:00
Kenneth Reitz
4a28ffcfe9
try this
2017-05-27 20:28:30 -04:00
Kenneth Reitz
b6d51d9f2b
change test configuration
2017-05-27 20:25:11 -04:00
Kenneth Reitz
2edb553036
so frustrating
2017-05-27 20:23:02 -04:00
Kenneth Reitz
cffa0effe0
remove pytest-mock
2017-05-27 20:21:29 -04:00
Kenneth Reitz
76a66c41d6
final attempt
2017-05-27 20:19:42 -04:00
Kenneth Reitz
19a1379ff5
>=2.7
2017-05-27 20:17:33 -04:00
Kenneth Reitz
057689bb8a
grr
2017-05-27 20:16:32 -04:00
Kenneth Reitz
88f28325c9
pytest
2017-05-27 20:15:17 -04:00
Kenneth Reitz
62afdabb30
blah
2017-05-27 20:11:04 -04:00
Kenneth Reitz
2468058fea
better requirements
2017-05-27 20:09:58 -04:00
Kenneth Reitz
e4d8571080
concurrency in coverage report
2017-05-27 20:08:08 -04:00
Kenneth Reitz
048997daa0
better requirements
2017-05-27 20:07:35 -04:00
Kenneth Reitz
c166c4f5d4
remove circle.yml
2017-05-27 20:01:08 -04:00
Kenneth Reitz
f4b488b7f8
try removing that
2017-05-27 19:59:19 -04:00
Kenneth Reitz
cd4c701186
xdist
2017-05-27 19:57:40 -04:00
Kenneth Reitz
8e93b100da
lets give this a try
2017-05-27 19:44:54 -04:00
Kenneth Reitz
276024b170
fix tests
2017-05-27 19:33:40 -04:00
Kenneth Reitz
6af910610f
omg
2017-05-27 19:31:31 -04:00
Kenneth Reitz
1d76cb3572
cleanup tests (make them faster)
2017-05-27 19:30:13 -04:00
Kenneth Reitz
03e5f5daf3
socks needed for tests
2017-05-27 19:16:16 -04:00
Kenneth Reitz
b9a004a22b
improvements
2017-05-27 17:25:44 -04:00
Kenneth Reitz
2e67c86075
merge
2017-05-27 17:24:06 -04:00
Kenneth Reitz
f0fb5034fc
better headings
2017-05-27 17:14:10 -04:00
Kenneth Reitz
b0c19226c6
simplify
2017-05-27 17:12:50 -04:00
Kenneth Reitz
4e06345988
issue template
2017-05-27 17:09:52 -04:00
Kenneth Reitz
892fbe09f6
issue template
2017-05-27 17:08:50 -04:00
Kenneth Reitz
46a4e731da
issue template
2017-05-27 17:07:30 -04:00
Kenneth Reitz
46a930941a
issue template
2017-05-27 17:06:37 -04:00
Kenneth Reitz
c6827de846
better template
2017-05-27 17:03:17 -04:00
Kenneth Reitz
5c65f6d01e
issue template
2017-05-27 17:01:09 -04:00
Kenneth Reitz
7ce5ca853d
Merge pull request #4079 from kennethreitz/help
...
$ python -m requests.help
2017-05-27 13:58:19 -07:00
Kenneth Reitz
0ae8524e3b
v2.16.4
2017-05-27 16:57:50 -04:00
Kenneth Reitz
bf4a813304
rename information/info
2017-05-27 16:50:51 -04:00
Kenneth Reitz
6d082ea972
add info about chardet and urllib3
2017-05-27 16:49:48 -04:00
Kenneth Reitz
f180980b28
Merge branch 'master' into bug-report-info
2017-05-27 13:41:54 -07:00
Kenneth Reitz
a44284c045
cleanup version.py
2017-05-27 12:41:11 -04:00
Kenneth Reitz
c1f32f68f6
v2.16.3
2017-05-27 12:20:34 -04:00
Kenneth Reitz
4c155de9fd
test entrypoints
2017-05-27 11:06:53 -04:00
Kenneth Reitz
03dd91093b
pep8 fix
2017-05-27 10:57:46 -04:00
Kenneth Reitz
d42556a936
2.16.2
2017-05-27 10:53:02 -04:00
Kenneth Reitz
103718847a
v2.16.2
2017-05-27 10:52:47 -04:00
Kenneth Reitz
28666e5d3a
vastly simpify making packages available for backwards compatibility
2017-05-27 10:49:57 -04:00
Kenneth Reitz
ecaa10543f
fix setup.py
2017-05-27 10:33:10 -04:00
Kenneth Reitz
908c3b01ee
restore packages to setup.py
2017-05-27 10:32:56 -04:00
Kenneth Reitz
c952e9e4e0
addded import stubs for urllib3
2017-05-27 10:29:00 -04:00
Kenneth Reitz
cceceecb68
fix history
2017-05-27 10:11:18 -04:00
Kenneth Reitz
e9ca4b39b4
more history
2017-05-27 10:09:57 -04:00
Kenneth Reitz
7962c12451
more history notes
2017-05-27 10:09:03 -04:00
Kenneth Reitz
f687e9f3d8
history
2017-05-27 09:58:37 -04:00
Kenneth Reitz
dc24bc3217
Merge branch 'master' of github.com:kennethreitz/requests
2017-05-27 09:37:17 -04:00
Kenneth Reitz
267ec2f9c3
restore package namespace
2017-05-27 09:37:09 -04:00
Kenneth Reitz
18c8924f14
better checking for urllib3
2017-05-27 09:37:02 -04:00
Kenneth Reitz
413f2a557c
Update index.rst
2017-05-27 00:29:54 -04:00
Kenneth Reitz
04faf59f49
Update README.rst
2017-05-27 00:28:48 -04:00
Kenneth Reitz
bcd0e170ac
requirements
2017-05-26 23:37:08 -04:00
Kenneth Reitz
a6c3a0ca72
Merge pull request #4067 from kennethreitz/deps
...
Deps (work in progress)
2017-05-26 20:33:28 -07:00
Kenneth Reitz
d2713412e5
v2.16.0
2017-05-26 23:24:42 -04:00
Kenneth Reitz
2b34880e2f
sanity checks upon boot
2017-05-26 23:22:03 -04:00
Kenneth Reitz
de035b56f9
delete notice
2017-05-26 23:08:00 -04:00
Kenneth Reitz
1f6de03baf
cleanup certs.py
2017-05-26 23:02:55 -04:00
Kenneth Reitz
0d7de6430e
update certs
2017-05-26 22:58:59 -04:00
Kenneth Reitz
a00b7e4b25
no more certs file
2017-05-26 22:58:10 -04:00
Kenneth Reitz
c49ce5ae0b
fix
2017-05-26 22:56:43 -04:00
Kenneth Reitz
6d3d5e59c9
fix models.py
2017-05-26 22:55:55 -04:00
Kenneth Reitz
af52bf795e
remove bunk tests
2017-05-26 22:55:44 -04:00
Kenneth Reitz
f5f3e696ab
fix makefile
2017-05-26 22:53:47 -04:00
Kenneth Reitz
47f170bb35
fix __init__.py
2017-05-26 22:53:28 -04:00
Kenneth Reitz
168109f13c
fix adapters.py
2017-05-26 22:52:29 -04:00
Kenneth Reitz
8a2014e265
fix compat.py
2017-05-26 22:51:40 -04:00
Kenneth Reitz
1d31b36148
fix exceptions.py
2017-05-26 22:50:43 -04:00
Kenneth Reitz
6c41633cfd
fix models.py
2017-05-26 22:50:13 -04:00
Kenneth Reitz
6ef7298466
fix sessions.py
2017-05-26 22:49:43 -04:00
Kenneth Reitz
818daff12a
more test removal of old imports
2017-05-26 22:48:58 -04:00
Kenneth Reitz
0bb200515c
remove test imports from packages
2017-05-26 22:48:01 -04:00
Kenneth Reitz
628633143d
require certifi
2017-05-26 22:46:46 -04:00
Kenneth Reitz
1ea27b3564
add install_requires
2017-05-26 22:44:56 -04:00
Kenneth Reitz
8e17600ef6
delete packages
2017-05-26 22:44:48 -04:00
Kenneth Reitz
282b01a7c9
new release
2017-05-26 22:13:29 -04:00
Kenneth Reitz
e1539ac8ff
everyone makes mistakes :P
2017-05-26 22:12:38 -04:00
Kenneth Reitz
8c2a36140b
fix for python 3
2017-05-26 22:08:46 -04:00
Kenneth Reitz
60b9fb17af
too much
2017-05-26 21:48:35 -04:00
Kenneth Reitz
0aee483497
fix setup.py
2017-05-26 21:43:03 -04:00
Kenneth Reitz
bf53ace6f8
v2.15.0
2017-05-26 21:38:23 -04:00
Kenneth Reitz
4c3d307eb9
Merge pull request #4052 from hile/master
...
Fix regression in API caused by commit 85400d8d6751071ef78f042d1efa72…
2017-05-26 18:34:30 -07:00
Kenneth Reitz
380d130245
Merge pull request #4066 from kennethreitz/next
...
API improvements
2017-05-26 18:33:28 -07:00
Kenneth Reitz
c3367d1854
remove Request.send(session)
2017-05-26 21:28:52 -04:00
Kenneth Reitz
a7239aab84
feedback from @sigmavirus42
2017-05-26 21:23:55 -04:00
Kenneth Reitz
dfd667df96
who wrote this shit
2017-05-26 21:17:13 -04:00
Kenneth Reitz
f41560c5d4
fix the tests
2017-05-26 21:15:58 -04:00
Kenneth Reitz
ce64cce14e
API improvements
2017-05-26 21:07:37 -04:00
Kenneth Reitz
60041f5169
Create CODE_OF_CONDUCT.md
2017-05-26 20:32:06 -04:00
Kenneth Reitz
14d6fa1472
__version__.py
2017-05-25 20:07:38 -04:00
Kenneth Reitz
64efd9cfe0
yay i knew i wasn't crazy
2017-05-25 20:07:23 -04:00
Kenneth Reitz
1001bc671a
fix imports
2017-05-25 19:58:44 -04:00
Kenneth Reitz
733ff4b8a4
Merge branch 'master' of github.com:kennethreitz/requests
2017-05-25 19:52:31 -04:00
Kenneth Reitz
296c215762
__version__
2017-05-25 19:52:17 -04:00
Kenneth Reitz
cc7b3ee7ed
Merge pull request #4064 from sigmavirus24/fix-rtfd
...
Avoid breaking people using requests.__version__
2017-05-25 16:46:08 -07:00
Ian Cordasco
e038aad3cc
Avoid breaking people using requests.__version__
...
Using __version__ as a module breaks users who expect
requests.__version__ to be the version string.
2017-05-25 18:44:30 -05:00
Kenneth Reitz
4f8f4b5fb3
Merge pull request #4063 from kennethreitz/version
...
fix rtd
2017-05-25 16:24:02 -07:00
Kenneth Reitz
ce882a2eae
fix rtd
2017-05-25 19:07:48 -04:00
Kenneth Reitz
f581dc95a9
Merge pull request #4059 from kennethreitz/version
...
__version__.py
2017-05-25 09:39:43 -07:00
Kenneth Reitz
7abfd92aea
take a page out of @sigmavirus42's book
2017-05-25 11:46:12 -04:00
Kenneth Reitz
9fbfd22f6b
take a page out of @sigmavirus42's book
2017-05-25 11:46:00 -04:00
Kenneth Reitz
e634ab73b2
better ''
2017-05-25 11:33:04 -04:00
Kenneth Reitz
3e32356716
__version__.py
2017-05-25 11:31:38 -04:00
Kenneth Reitz
539302a17d
Update README.rst
2017-05-25 10:47:13 -04:00
Cory Benfield
037108178c
Merge pull request #4056 from Lukasa/pytest-httpbin-fix
...
Disable pytest messing with warnings.
2017-05-24 10:46:11 -07:00
Cory Benfield
f3d310b299
Turns out @kennethreitz suprise-broke the CI
2017-05-24 10:20:07 -07:00
Cory Benfield
874bca97cb
Disable pytest messing with warnings.
...
We may be able to remove this if pytest resolves pytest-dev/pytest#2430
2017-05-24 10:04:56 -07:00
Kenneth Reitz
dbb67a1310
Update __init__.py
2017-05-24 08:50:22 -07:00
Ilkka Tuohela
a9470fe31f
Fix regression in API caused by commit 85400d8d67
...
- The added optional parameter changes API and should default to None
This utility call is used by for example requestbuilder package directly
which breaks because it passes only one argument to the function as it
used to be.
2017-05-24 08:47:46 +03:00
Kenneth Reitz
0ba21a79c4
progress
2017-05-22 16:08:01 -07:00
Kenneth Reitz
66293b830a
progress
2017-05-22 15:38:17 -07:00
Kenneth Reitz
6fb9b1ce53
fix lack of taste
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2017-05-21 23:25:18 -07:00
Kenneth Reitz
2772413f3d
Update index.rst
2017-05-21 08:25:50 -07:00
Cory Benfield
ba63e50ecd
Merge pull request #4041 from jdufresne/bdist_wheel
...
Add setup.cfg to declare wheel as universal
2017-05-20 08:11:11 -07:00
Jon Dufresne
2c71f2d520
Add setup.cfg to declare wheel as universal
...
As the project is pure Python, a built wheel should always be universal,
so define in the project globally. Can remove --universal command from
Makefile.
See:
http://pythonwheels.com/
2017-05-20 07:39:09 -07:00
Cory Benfield
fb3f2a030f
Merge branch 'kaptajnen-master'
2017-05-18 09:05:03 -07:00
Jonas Laursen
00c6ad58b7
Simplify fix for #4025
2017-05-18 09:04:34 -07:00
Jonas Laursen
af66521381
Fix #4025
2017-05-18 09:04:34 -07:00
Ian Cordasco
a8bfa82801
Merge pull request #4026 from floppym/sdist-tests
...
Include tests in sdist tarball
2017-05-18 09:50:40 -05:00
Ian Cordasco
6ab6a18ab2
Merge pull request #4033 from Lukasa/issue/4030
...
Test that the readme renders in CI.
2017-05-17 20:41:00 -05:00
Ian Cordasco
570c4c83a5
Amend the syntax for skipping the readme check
2017-05-17 20:06:42 -05:00
Cory Benfield
e2142a1e54
Alex said this would work
2017-05-17 18:02:28 -07:00
Ian Cordasco
52a2efa2ae
Avoid verifying the README.rst on Python 2.6
...
readme-render does not appear to support Python 2.6. This causes tests to fail
on Travis' 2.6 environment.
2017-05-17 19:54:31 -05:00
Ian Cordasco
f88e573c18
Merge branch 'master' into issue/4030
2017-05-17 19:36:49 -05:00
Cory Benfield
da29295369
Merge pull request #4036 from nateprewitt/pin_sphinx
...
Pin sphinx
2017-05-17 15:47:48 -07:00
Nate Prewitt
dbdbffd7f5
Stop creating Pipfile.lock on every make.
...
Pipenv used to require the file to be locked on each individual platform,
but as of v4.0.0, that is no longer necessary. Removing the forced call
to lock will speed up builds in CI.
2017-05-17 13:21:11 -07:00
Nate Prewitt
a3f2972c4f
Temporarily cap Sphinx at 1.5.5 for Python 2.6 compatibility
2017-05-17 13:20:19 -07:00
Cory Benfield
1553770014
Fixup broken changelog
2017-05-17 10:54:06 -07:00
Cory Benfield
37ef88885c
Test the readme in travis
2017-05-17 10:46:05 -07:00
Cory Benfield
2cb07872fe
Add a makefile target for testing the readme
2017-05-17 10:44:14 -07:00
Mike Gilbert
2667c772b9
Include tests in sdist tarball
...
Fixes: https://github.com/kennethreitz/requests/issues/4024
2017-05-16 18:59:23 -04:00
Cory Benfield
0280a18b53
Merge pull request #4015 from nateprewitt/update_manifest
...
remove old test_requests.py listing from MANIFEST.in
2017-05-10 20:04:03 +01:00
Nate Prewitt
f4b90827b0
remove old test_requests.py listing from MANIFEST.in
2017-05-10 09:58:22 -06:00
Cory Benfield
e4693eba4f
v2.14.2
2017-05-10 15:04:22 +01:00
Cory Benfield
2e496c3e1d
Merge pull request #4014 from Lukasa/even-more-compat
...
Remove range operators from markers.
2017-05-10 15:02:54 +01:00
Cory Benfield
f3f4c3e20a
Remove range operators from markers
2017-05-10 14:19:46 +01:00
Cory Benfield
3618f3f68e
v2.14.1
2017-05-09 19:58:39 +01:00
Cory Benfield
f909314652
Changelog for v2.14.1
2017-05-09 19:58:15 +01:00
Cory Benfield
636082fa8f
Merge pull request #4007 from Lukasa/use-more-comaptible-marker
...
Use sys_platform instead of platform_system
2017-05-09 19:55:56 +01:00
Cory Benfield
800a074b5d
Use sys_platform instead of platform_system
...
This is more compatible as a marker and so will break fewer people.
2017-05-09 19:10:31 +01:00
Cory Benfield
508d47dc6e
v2.14.0
2017-05-09 16:44:27 +01:00
Cory Benfield
bf1a2a4e39
Merge pull request #4004 from Lukasa/prepare-2.14
...
Prepare for 2.14 release.
2017-05-09 16:42:02 +01:00
Cory Benfield
ddada2d750
We no longer downcase some hosts.
2017-05-09 10:08:06 +01:00
Cory Benfield
074c4a32d8
Update certifi to 2017.4.17
2017-05-09 09:37:52 +01:00
Cory Benfield
debc5de6d4
Update idna to v2.5
2017-05-09 09:36:27 +01:00
Cory Benfield
4bad52caa2
Update chardet to v3.0.2
2017-05-09 09:34:51 +01:00
Cory Benfield
d49f3e258c
Update urllib3 to v1.21.1
2017-05-09 09:21:08 +01:00
Cory Benfield
823519d45c
Bring changelog up to date.
2017-05-09 09:18:18 +01:00
Kenneth Reitz
f8189eda10
Merge pull request #4001 from bowlofeggs/seconds
...
Specify that the timeout parameter is in seconds.
2017-05-07 00:07:02 -04:00
Randy Barlow
3d813c9a7a
Specify that the timeout parameter is in seconds.
...
Signed-off-by: Randy Barlow <randy@electronsweatshop.com >
2017-05-06 21:25:50 -04:00
Kenneth Reitz
379025a1bc
Update README.rst
2017-05-05 12:54:20 -04:00
Kenneth Reitz
176ba43869
Update README.rst
2017-05-05 12:53:17 -04:00
Kenneth Reitz
7ae662dec9
reddit
2017-05-04 11:59:36 -04:00
Cory Benfield
216aee441d
Merge pull request #3979 from schlamar/bypass-proxy
...
improve proxy bypass on Windows
2017-05-04 15:18:30 +01:00
schlamar
5c389cf3f5
update changelog
2017-05-04 15:31:54 +02:00
schlamar
1c38e1f5f6
proxy bypass on Windows without DNS lookups
2017-05-04 10:44:47 +02:00
schlamar
4f34446b36
test proxy bypass with config from registry
2017-05-04 07:46:59 +02:00
schlamar
724fd44b97
revert 8e6e47af and c121b98c
2017-05-04 07:46:59 +02:00
Kenneth Reitz
26ab951300
Update index.rst
2017-05-03 13:26:15 -04:00
Kenneth Reitz
eae38b8d13
Merge pull request #3988 from Lukasa/fix-appveyor
...
[WIP] Fix up appveyor testing.
2017-05-03 13:25:25 -04:00
Cory Benfield
fcc3b7d7b1
Document the minor changes made
2017-05-03 15:28:39 +01:00
Cory Benfield
d89f8c0d70
Fix up Appveyor testing
2017-05-03 13:19:46 +01:00
Thomas Grainger
8db8a7d82d
configure sudo: false on travis
2017-05-03 09:23:02 +01:00
Cory Benfield
84099eea9f
Merge pull request #3991 from chrisgavin/unused-imports
...
Remove some unused imports.
2017-04-26 13:09:34 +01:00
Chris Gavin
19ba9f1097
Remove some unused imports.
2017-04-25 22:10:01 +01:00
Kenneth Reitz
44106f18b7
Update AUTHORS.rst
2017-04-25 11:06:38 -04:00
Kenneth Reitz
d0a072e15d
Merge pull request #3983 from Lukasa/appveyor
...
Add appveyor testing of Requests.
2017-04-24 12:49:25 -04:00
Cory Benfield
fae7530a17
Add Python 3.6
2017-04-24 08:22:56 +01:00
Cory Benfield
8d6f7e6854
Add appveyor testing of Requests
2017-04-21 12:07:27 +01:00
Cory Benfield
f6c58ec582
Merge pull request #3982 from graingert/travis-sudo-false
...
configure sudo: false on travis
2017-04-21 11:54:33 +01:00
Thomas Grainger
047056c150
configure sudo: false on travis
2017-04-21 11:37:38 +01:00
Cory Benfield
52a3526a99
Merge pull request #3981 from graingert/cache-pip
...
enable travis pip cache
2017-04-21 11:32:41 +01:00
Thomas Grainger
af383b3968
enable travis pip cache
2017-04-21 11:21:59 +01:00
Cory Benfield
524627ef21
Merge pull request #3978 from graingert/remove-seemingly-redundant-pyflakes-references
...
remove seemingly redundant pyflakes references
2017-04-20 09:44:19 -04:00
Thomas Grainger
fcb272cc36
remove seemingly redundant pyflakes references
2017-04-20 13:23:56 +01:00
Cory Benfield
b8674db246
Merge pull request #3969 from shmuelamar/master
...
fix handle of non-ascii location on redirects issue #3888
2017-04-18 12:20:22 -04:00
shmuelamar
722b1dae96
fix handle of non-ascii location on redirects
2017-04-18 00:08:59 +03:00
Cory Benfield
fd7dcd2785
Merge pull request #3963 from shmuelamar/master
...
fix unicode decode error on py2 when handling redirect without scheme
2017-04-14 16:13:49 -04:00
shmuelamar
a3e597c171
fix unicode decode error on py2 when handling redirect without scheme
2017-04-14 16:20:27 +03:00
Cory Benfield
84a6040762
Merge pull request #3958 from Xuanwo/typo-fix
...
Fix a typo in utils
2017-04-08 14:18:43 +01:00
Xuanwo
1cd173a82c
Fix a typo in utils
...
Signed-off-by: Xuanwo <xuanwo.cn@gmail.com >
2017-04-08 20:56:28 +08:00
Cory Benfield
f061fb7e28
Merge pull request #3956 from rubendura/master
...
Fixes DeprecationWarnings in Python 3.6 due to invalid escape sequences
2017-04-05 16:29:41 +01:00
Ruben Dura Tari
ead8fba84b
Fixes DeprecationWarnings in Python 3.6 due to invalid escape sequences. Fixes #3954
2017-04-05 15:51:58 +01:00
Cory Benfield
342096a3b9
Merge pull request #3943 from leo-b/timeout
...
HTTPAdapter.send() timeout defaults
2017-04-03 16:45:11 +01:00
Alexander 'Leo' Bergolth
1be6a17edc
oops! import Timeout as Urllib3Timeout
2017-04-03 16:49:46 +02:00
Alexander 'Leo' Bergolth
28768b945c
use @pytest.mark.parametrize
2017-04-03 16:32:38 +02:00
Alexander 'Leo' Bergolth
93cb1ca763
add some tests for passing in Timeout objects
2017-04-02 15:20:29 +02:00
Cory Benfield
1be8e19403
Merge pull request #3952 from tonybaloney/master
...
Small help in docs to indicate client side authentication
2017-04-02 11:41:53 +01:00
Anthony Shaw
a63ae02e34
Update sessions.py
...
Update docstring for the session init to explain what the cert kwarg types are for.
2017-04-02 20:29:48 +10:00
Anthony Shaw
3cb7539981
Update advanced.rst
...
break client side certificates out into a sub header
2017-04-02 20:21:37 +10:00
Alexander 'Leo' Bergolth
4c13678587
remove change for timeout=None
2017-03-30 16:20:39 +02:00
Alexander 'Leo' Bergolth
1e7ae063ce
whitespace
2017-03-29 18:20:11 +02:00
Alexander 'Leo' Bergolth
fe58c6fdd6
small rearrangement
2017-03-29 18:01:18 +02:00
Alexander 'Leo' Bergolth
a180db963f
allow urllib3 Timeout objects as timeout parameter for HTTPAdapter.send()
...
omit timeout argument when calling urlopen on the connection. this allows setting a default timeout at connection pool level:
adapter.poolmanager.connection_pool_kw['timeout'] = urllib3.Timeout(...)
2017-03-29 16:53:28 +02:00
Ian Cordasco
567e12bfb8
Add debugging submodule for bug reporters
...
The suggested usage in a bug report would be
python -c 'from requests import _bug; _bug.print_information()'
This should generate most of the information we tend to ask for
repeatedly from bug reporters.
2017-03-23 07:22:55 -05:00
Cory Benfield
993cbf5741
Merge pull request #3927 from bagerard/raise_IOError_invalid_certificate_files
...
Raise IOError when providing an invalid path to a CA bundle or …
2017-03-22 20:41:07 +00:00
Bastien Gérard
4207867aaf
PR review fixes:
...
- used httpbin_secure for tests
- updated docstring related to `verify` param"
- used TLS acronym instead of SSL
2017-03-22 21:28:38 +01:00
Bastien Gérard
42ec8b08f2
#3927 fixes based on review
2017-03-22 21:28:38 +01:00
Bastien Gérard
7d8b87c37f
#3926 raise IOError when providing an invalid path to a CA bundle or certificate files
2017-03-22 21:28:38 +01:00
Kenneth Reitz
b60c5a5ed4
Merge branch 'master' of github.com:kennethreitz/requests
2017-03-19 21:14:17 -04:00
Kenneth Reitz
1cb759a9d9
roman numberals
2017-03-19 21:14:08 -04:00
Cory Benfield
552ab7a064
Merge pull request #3922 from bgschiller/patch-1
...
Change apostrophe placement in advanced.rst
2017-03-14 15:40:49 +00:00
Brian Schiller
e0ba82949b
Change apostrophe placement in advanced.rst
...
See Rule2a on http://www.grammarbook.com/punctuation/apostro.asp
2017-03-14 10:09:41 -05:00
Cory Benfield
29085e7d95
Merge pull request #3920 from dufferzafar/patch-1
...
Update README.rst - add 'of'
2017-03-09 08:16:31 +00:00
Shadab Zafar
4acdb99752
Update README.rst
2017-03-09 12:49:52 +05:30
Cory Benfield
c43fefa7ed
Merge pull request #3913 from StyXman/patch-1
...
Add mention to list of tuples as data param.
2017-03-07 09:43:26 +00:00
Marcos Dione
2e9e944bc1
Removed sentence as suggested.
...
Fair enough...
2017-03-07 10:34:21 +01:00
Marcos Dione
16f6e25176
Add mention to list od tuples as data param.
...
`requests.request` accepts list of tuples in the `data` param, but thereś no mention of it in the docs.
2017-03-07 10:26:51 +01:00
Cory Benfield
62bd9247ba
Merge pull request #3909 from sigmavirus24/updates-for-3885
...
Update implementation of TimedCache object
2017-03-04 15:27:45 +00:00
Ian Cordasco
8e6e47af43
Update implementation of TimedCache object
...
There were some odd decisions made about the implementation of some of
the required methods for MuttableMapping in the TimedCache object. This
cleans those up and makes the implementation, ever so slightly, easier
to read.
See also #3885
2017-03-04 09:03:03 -06:00
Kenneth Reitz
41a33f2e86
Update README.rst
2017-03-02 17:31:38 -08:00
Cory Benfield
3e0d78fdaf
Merge pull request #3901 from nedbat/master
...
Smaller logo
2017-03-01 20:05:13 +00:00
Ned Batchelder
eca8351491
Smaller logo
2017-03-01 14:52:34 -05:00
Gary Wu
21972c4601
fix #3902 Add proposed documentation change for post data
2017-03-01 13:04:11 -06:00
Cory Benfield
3f3df8b5ff
Merge pull request #3900 from lutzhorn/master
...
fixed #3894 by mentioning form-encoding of dict
2017-03-01 15:30:36 +00:00
Lutz Horn
3d22f9f5ab
fixed #3894 by mentioning form-encoding of dict
...
The optional `data` parameter will be form-encoded, if a dictionary is provided.
2017-03-01 16:00:08 +01:00
Victor Pfautz
2aaf6ac038
Fixed some typos ( #3892 )
...
* Fixed some typos
2017-02-27 16:25:10 +00:00
Cory Benfield
45a2977e1b
Merge pull request #3885 from davidfontenot/cache_proxy_bypass
...
Cache proxy bypass
2017-02-27 08:56:43 +00:00
David Fontenot
c121b98c4e
wrapped proxy_bypass() with cache lookup
...
Used to alleviate long gethostbyaddr calls
Made new TimedCache and decorator to wrap
a function with a cache
* Entries looked up older than a minute (default amount)
are evicted.
* When full, evicts the oldest entry
2017-02-23 14:04:16 -08:00
Ian Cordasco
d6f4818c0b
Merge pull request #3877 from sigmavirus24/update-docstring
...
Correct docstring for Response.ok
2017-02-16 07:37:18 -06:00
Ian Cordasco
8e049bd9eb
Update docstrings for Response.__{bool,nonzero}__
...
Like the docstring added to Response.ok these were misleading and
vaguely incorrect. Better to be explicit than implicit.
2017-02-16 07:21:15 -06:00
Ian Cordasco
7a281e74ec
Correct docstring for Response.ok
2017-02-16 07:15:37 -06:00
Cory Benfield
e674aa1c8c
Merge pull request #3876 from mislavcimpersak/hotfix/response_ok_docstring
...
added docstring for response.ok property
2017-02-16 09:30:11 +00:00
Mislav Cimperšak
3664682539
added docstring for response.ok property
2017-02-16 10:06:28 +01:00
Kenneth Reitz
655f0edbb4
better testimonials
2017-02-14 17:00:17 -05:00
Ian Cordasco
2414fa82c8
Merge pull request #3873 from nateprewitt/super_len_fix
...
properly handled failed seek
2017-02-14 09:43:19 -06:00
Nate Prewitt
f47aff68f1
properly handled failed seek
2017-02-14 07:45:41 -07:00
Kenneth Reitz
90f3842ed6
edmsynths
2017-02-12 02:18:50 -05:00
Kenneth Reitz
6cbebf782a
fixes
2017-02-11 15:17:27 -05:00
Kenneth Reitz
f2fe735846
fixes
2017-02-11 15:16:09 -05:00
Kenneth Reitz
e7b7574cfe
hhg2p
2017-02-11 15:14:47 -05:00
Kenneth Reitz
6bd6249051
Merge pull request #3865 from JohnVillalovos/master
...
Allow use of 'no_proxy' in the proxies argument
2017-02-10 15:50:10 -06:00
Kenneth Reitz
453397965b
Merge pull request #3846 from jvanasco/feature-pluggable_handling
...
initial attempt at `get_redirect_target`
2017-02-10 15:46:13 -06:00
jonathan vanasco
70f31a3166
* initial attempt at get_redirect_target
...
* removing the `i` from the redirect detection while-loop
2017-02-10 13:53:23 -05:00
John L. Villalovos
85400d8d67
Allow use of 'no_proxy' in the proxies argument
...
Add the ability to add 'no_proxy' and a value to the 'proxies'
dictionary argument.
https://github.com/kennethreitz/requests/issues/2817
Closes gh-2817
2017-02-10 09:41:54 -08:00
Cory Benfield
ad65b0cb19
Merge pull request #3862 from mattkohl/master
...
Updated docs for Pipenv
2017-02-10 12:19:01 +00:00
mattkohl
57659e5987
Removed duplicate key in Pipfile
2017-02-10 11:46:59 +00:00
mattkohl
c134388a43
Removed requirements.txt from MANIFEST.in
2017-02-10 10:51:14 +00:00
mattkohl
b41bb9ecb2
Added name & github link
2017-02-10 10:48:15 +00:00
mattkohl
a3e671d717
Updated test instructions for Pipenv
2017-02-10 10:47:40 +00:00
mattkohl
7b190acf82
Updated Pipfile to reflect version specs in setup.py; added Sphinx
2017-02-10 10:46:35 +00:00
mattkohl
a0b97253c2
Removed docs-init (depended on missing docs/requirements.txt)
2017-02-10 10:45:06 +00:00
Kenneth Reitz
84749f08bc
Update README.rst
2017-02-09 21:31:38 -05:00
Kenneth Reitz
e63dd1a66b
Update README.rst
2017-02-09 21:31:14 -05:00
Ian Cordasco
0bea453913
Merge pull request #3857 from Lukasa/params-docs
...
Say that we use a dictionary of strings.
2017-02-08 06:05:50 -06:00
Cory Benfield
08ce652b8b
Say that we use a dictionary of strings.
2017-02-08 11:54:32 +00:00
Cory Benfield
5c68b8f227
Merge pull request #3853 from StyXman/500-small-head
...
Do not convert /o\ into /O\
2017-02-07 16:04:24 +00:00
Marcos Dione
571d2c2cd7
Fix syntax error
...
I can only wonder how I managed to write it like that...
2017-02-07 16:57:17 +01:00
Marcos Dione
b00d8bf474
Proper version, no bugs, shorter.
2017-02-06 21:44:28 +01:00
Marcos Dione
593734b770
do not convert /o\ into /O\
2017-02-06 17:27:16 +01:00
Cory Benfield
af4052b020
Merge pull request #3851 from nateprewitt/remove_pin
...
remove pin
2017-02-03 17:21:13 +00:00
Nate Prewitt
f521a25970
remove pin
2017-02-03 09:29:13 -07:00
Kenneth Reitz
62176a1ca7
2017
2017-02-02 16:12:33 -05:00
Kenneth Reitz
f278344e01
updated pipfile
2017-02-02 16:12:29 -05:00
Kenneth Reitz
c2c523ba9e
docs
2017-02-02 15:22:01 -05:00
Kenneth Reitz
abaeeb8807
improved sidebar
2017-02-02 15:19:31 -05:00
Kenneth Reitz
6bd091ca70
improved homepage
2017-02-02 15:18:24 -05:00
Kenneth Reitz
260763a83d
better say thanks icon
2017-02-02 15:06:54 -05:00
Kenneth Reitz
5ac53c69c7
11,000,000!
2017-02-02 14:09:31 -05:00
Kenneth Reitz
8c6e9388e7
Merge branch 'master' of github.com:kennethreitz/requests
2017-02-02 14:06:07 -05:00
Kenneth Reitz
036b5d34fd
better sidebar for docs
2017-02-02 14:05:07 -05:00
Cory Benfield
f4a3aa42b6
Merge pull request #3841 from TetraEtc/happy-new
...
Update Copyright in LICENSE to 2017
2017-01-31 08:54:28 +00:00
TetraEtc
1a4ba6c833
Update LICENSE
2017-01-31 13:03:12 +10:00
Cory Benfield
e84086ac86
Merge pull request #3835 from mmedal/master
...
Only send HTTPDigestAuth on 4xx challenges
2017-01-29 09:15:35 +01:00
Matthew Medal
8a58427d8a
Only send HTTPDigestAuth on 4xx challenges
...
Resolves : #3772
2017-01-27 12:56:50 -08:00
Cory Benfield
d3c97dda11
Merge pull request #3836 from nateprewitt/pin_pipenv
...
pin pipenv until kennethreitz/pipenv#90 is resolved
2017-01-27 20:55:06 +00:00
Nate Prewitt
808e4c62dc
pin pipenv until kennethreitz/pipenv#90 is resolved
2017-01-27 13:42:22 -07:00
Cory Benfield
23057dbc22
Merge pull request #3832 from nateprewitt/master
...
fixing codecov with pipenv
2017-01-25 15:40:30 +00:00
Nate Prewitt
795106c188
fixing codecov with pipenv
2017-01-24 21:29:22 -07:00
Kenneth Reitz
b92058b6fe
empty commit
2017-01-24 23:08:27 -05:00
Kenneth Reitz
1da52c04d4
attempted fix for travis
2017-01-24 23:04:25 -05:00
Kenneth Reitz
cf07efa534
give up
2017-01-24 22:51:24 -05:00
Kenneth Reitz
9e681a4a9f
fix makefle
2017-01-24 21:22:16 -05:00
Kenneth Reitz
efa030eae3
proper pipfile.lock
2017-01-24 21:13:18 -05:00
Kenneth Reitz
c008465d24
pypi/simple
2017-01-24 21:09:21 -05:00
Kenneth Reitz
7cad64ac5a
use proper names
2017-01-24 21:02:06 -05:00
Kenneth Reitz
014ec0eb26
Merge remote-tracking branch 'origin/master'
2017-01-24 20:59:59 -05:00
Kenneth Reitz
600ee2bf2b
updated lockfile
2017-01-24 20:59:26 -05:00
Kenneth Reitz
d291202db0
Merge pull request #3830 from nateprewitt/fixing_pipfile_source
...
Fixing Pipfile source
2017-01-24 20:57:59 -05:00
Nate Prewitt
9a2a316f08
updating Pipfile.lock
2017-01-24 16:05:46 -07:00
Nate Prewitt
b12272d7d1
updating Pipfile source to a useable pypi endpoint
2017-01-24 16:05:33 -07:00
Kenneth Reitz
fee0e94a76
empty commit
2017-01-24 13:27:38 -05:00
Cory Benfield
fc54869da0
Merge pull request #3828 from sigmavirus24/blacklist-pipenv
...
Blacklist known bad version of pipenv
2017-01-24 13:13:52 +00:00
Ian Cordasco
6a415a02cf
Blacklist known bad version of pipenv
...
We pinned pipenv to release v2.13.0 but in reality, we could have just
blacklisted the known bad version. For future us, we now blacklist it.
2017-01-24 07:05:30 -06:00
Cory Benfield
e3f89bf23c
Merge pull request #3827 from sigmavirus24/release/2.13
...
Release v2.13.0
2017-01-24 12:52:22 +00:00
Ian Cordasco
32548e2bb6
Pin pipenv to fix CI
2017-01-24 06:45:29 -06:00
Ian Cordasco
b2289cd2d5
Bump version for 2.13.0
...
Add release notes for 2.13.0
2017-01-24 06:32:12 -06:00
Ian Cordasco
4d00d47a5a
Use twine for publishing Requests
2017-01-24 06:22:58 -06:00
Ian Cordasco
af1b542e20
Update idna to v2.2.0
2017-01-24 06:20:44 -06:00
Ian Cordasco
b5704a63ca
Update urllib3 to 1.20.0
...
Further, fix the Makefile to pull urllib3 from the release branch.
git-describe works based on the most recent commit but all of the
nearest commits in the graph for urllib3 are on the release branch
(since the release branch is never merged back to master).
2017-01-24 06:16:54 -06:00
Kenneth Reitz
df56f38bb4
Update README.rst
2017-01-22 17:44:28 -05:00
Kenneth Reitz
304e4cb5ee
Update README.rst
2017-01-22 17:42:04 -05:00
Kenneth Reitz
c7a4819c84
Update README.rst
2017-01-22 17:38:21 -05:00
Kenneth Reitz
e32e7108d0
trying this
2017-01-22 00:44:04 -05:00
Kenneth Reitz
97b5bc21d1
fix broken tests
2017-01-21 21:41:16 -05:00
Kenneth Reitz
ed9004f30e
no need for this anymore!
2017-01-21 21:36:00 -05:00
Kenneth Reitz
ab3c21cf96
empty commit
2017-01-21 21:32:27 -05:00
Kenneth Reitz
9c67691b90
empty commit
2017-01-21 21:28:50 -05:00
Kenneth Reitz
03d96aa9f7
empty commit
2017-01-21 21:19:25 -05:00
Kenneth Reitz
5b801847c4
empty commit
2017-01-21 21:12:03 -05:00
Kenneth Reitz
8f6e990066
empty commit
2017-01-21 21:09:29 -05:00
Kenneth Reitz
5eb2df1acf
empty commit
2017-01-21 21:06:29 -05:00
Kenneth Reitz
62b014560a
use git
2017-01-21 21:03:46 -05:00
Kenneth Reitz
73018f40a3
empty commit
2017-01-21 20:57:48 -05:00
Kenneth Reitz
358bb766d0
empty commit
2017-01-21 20:53:21 -05:00
Kenneth Reitz
2a2dd1389b
empty commit
2017-01-21 20:50:20 -05:00
Kenneth Reitz
8ae576193c
empty commit
2017-01-21 20:45:04 -05:00
Kenneth Reitz
c619bea722
empty commit
2017-01-21 20:45:00 -05:00
Kenneth Reitz
c6973d31ca
last attempt
2017-01-21 20:27:33 -05:00
Kenneth Reitz
0938c9e985
one more time
2017-01-21 20:22:29 -05:00
Kenneth Reitz
bb6f5a1d93
--global
2017-01-21 20:12:15 -05:00
Kenneth Reitz
efe0608cdd
empty commit
2017-01-21 20:08:36 -05:00
Kenneth Reitz
0ad2792873
trying again
2017-01-21 19:47:39 -05:00
Kenneth Reitz
c00783cd86
let's see if this works
2017-01-21 19:45:44 -05:00
Cory Benfield
4c53915a21
Merge pull request #3789 from moin18/3780
...
3780: Lazy load idna library
2017-01-19 09:19:00 +00:00
Cory Benfield
5dcc039457
v2.12.5
2017-01-18 12:41:46 +00:00
Cory Benfield
4ada39841b
Merge pull request #3823 from Lukasa/changes-2.13.5
...
Prepare changelog for 2.12.5
2017-01-18 12:41:04 +00:00
Cory Benfield
219d9a7297
Prepare changelog for 2.12.5
2017-01-18 12:23:41 +00:00
Kenneth Reitz
160d364503
RIP Readability
2017-01-17 18:10:25 -05:00
Kenneth Reitz
8344b0b409
link to twitter
2017-01-17 18:09:47 -05:00
Kenneth Reitz
5259966547
yes 3.7 too
2017-01-17 18:09:09 -05:00
Kenneth Reitz
84ee1d4a42
yes, 3.7 too
2017-01-17 18:08:36 -05:00
Kenneth Reitz
23ac7256ea
Update README.rst
2017-01-17 18:07:10 -05:00
Kenneth Reitz
52b5ed18c1
cleanup makefile
2017-01-17 18:03:23 -05:00
Kenneth Reitz
a68f7169a5
omit coverage packages
2017-01-17 17:56:19 -05:00
Kenneth Reitz
65fb2a50c8
further fix the build
2017-01-17 17:48:36 -05:00
Kenneth Reitz
d374a182d9
fixing build
2017-01-17 17:44:22 -05:00
Kenneth Reitz
115b438e6a
typo
2017-01-17 17:37:21 -05:00
Kenneth Reitz
96fbe9e8c9
get codecov to work
2017-01-17 17:34:33 -05:00
Kenneth Reitz
a1d058c6b1
empty commit
2017-01-17 17:15:50 -05:00
Moin
fae3f92c34
lazily load idna library
2017-01-17 20:34:15 +05:30
Cory Benfield
580b45dd3c
Merge pull request #3812 from inglesp/patch-1
...
Add default value of allow_redirects to docs
2017-01-12 17:12:53 +00:00
Peter Inglesby
2432dd6208
Add default value of allow_redirects to docs
2017-01-12 17:00:42 +00:00
Cory Benfield
e2bd1f9100
Merge pull request #3809 from JungWinter/master
...
Remove unused module from tests
2017-01-11 09:49:59 +00:00
winterJ
e8c0a99cb1
Remove unused module
2017-01-11 18:20:52 +09:00
Cory Benfield
1c69fc2108
Merge pull request #3804 from ncoghlan/patch-1
...
Improve discoverability of OAuth 2 support
2017-01-10 08:31:58 +00:00
Nick Coghlan
775d19ee05
Explicitly mention OpenID Connect
...
OAuth 2 is the authentication protocol underpinning OpenID Connect.
Mention that explicitly for the benefit of folks looking for information on using
requests with OpenID Connect that don't yet know that OAuth 2 is the
relevant underlying authentication protocol.
2017-01-10 15:31:20 +10:00
Nick Coghlan
4942b40496
Improve discoverability of OAuth 2 support
...
The previous summary gave the impression that requests-oauthlib only supports
OAuth 1.
This updates makes it clear that it also supports OAuth 2, and links directly to the
use case specific authentication flow guides.
2017-01-10 15:17:08 +10:00
Kenneth Reitz
ba7101e2cd
Update .travis.yml
2017-01-08 23:13:47 -05:00
Kenneth Reitz
a43845e729
Merge pull request #3801 from andriisoldatenko/add-python-36
...
Added python 3.6.0
2017-01-08 23:13:04 -05:00
Andrii Soldatenko
2bcaff99ea
Added python 3.6.0
2017-01-09 00:40:32 +02:00
Kenneth Reitz
57933d4d45
Merge pull request #3796 from nateprewitt/https_doc_fix
...
updating https demo urls
2017-01-05 01:17:22 -05:00
Nate Prewitt
f5c5536916
updating https demo urls
2017-01-04 15:23:23 -07:00
Cory Benfield
edf09ada17
Merge pull request #3795 from AdamWill/tests-require-pytest-mock
...
Require pytest-mock for the tests
2016-12-30 18:14:59 +00:00
Adam Williamson
33b29be8cf
Require pytest-mock for the tests
...
test_requests.py `test_session_close_proxy_clear` uses the
`mocker` fixture, which is provided by pytest-mock.
2016-12-30 09:40:12 -08:00
Cory Benfield
b9d282b6b7
Merge pull request #3791 from evgen231/master
...
Fixed detection of utf-32-be by BOM.
2016-12-29 09:41:23 +00:00
Герасименко Евгений
0cb6ddaecf
Fixed tests for python 2.x.
2016-12-29 10:30:56 +07:00
Герасименко Евгений
1c34ac3ae6
Fixed detection of utf-32-be by BOM.
2016-12-29 10:21:32 +07:00
Kenneth Reitz
8e0a532cad
wonder when 3.6 will be available on travis
2016-12-23 13:08:52 -05:00
John Dingee
5aa6661587
fix urllib3 documentation link ( #3785 )
2016-12-21 13:08:45 -05:00
Marcin Płonka
bc8b29099e
updating idna.uts46data from upstream project ( #3781 )
...
* updating idna.uts46data from upstream project
* removing redundant find/sed in idna update
* Revert "updating idna.uts46data from upstream project"
This reverts commit 0150cee7057dbdcefa1a2fbe2e8617ad0cba5216.
2016-12-21 10:59:34 -05:00
Kenneth Reitz
c3fb8e020b
we support python 3.6
2016-12-20 13:25:30 -05:00
Kenneth Reitz
789f21807d
python 2.6 compatibiliby
2016-12-20 13:16:14 -05:00
Kenneth Reitz
ba6e948835
skipping pypy for now
2016-12-20 13:10:45 -05:00
Kenneth Reitz
ddde5cd85b
travis and saythanks icons in readme
2016-12-20 12:54:00 -05:00
Kenneth Reitz
5a280a11bc
we don't support python 3.2
2016-12-20 12:50:22 -05:00
Kenneth Reitz
daebd6b807
empty commit
2016-12-20 12:47:39 -05:00
Kenneth Reitz
e127ecab3f
add pypy to travis.yml
2016-12-20 12:42:52 -05:00
Kenneth Reitz
30bcd55fb9
basic travis.yml file
2016-12-20 12:41:47 -05:00
Cory Benfield
1285f576ae
v2.12.4
2016-12-14 11:37:52 +00:00
Cory Benfield
9726f5314e
Merge pull request #3766 from nateprewitt/1979_test_401
...
testing HTTPDigestAuth hooks
2016-12-14 09:41:11 +00:00
Nate Prewitt
1da1213561
add socket tests for 401 redirect and 401 failure
2016-12-13 14:43:16 -07:00
Cory Benfield
4683f16990
Merge pull request #3760 from sigmavirus24/deprecation-warning
...
Add deprecation warnings for 3.0
2016-12-09 14:48:42 +00:00
Ian Cordasco
fae6701478
Add deprecation warnings for 3.0
...
Add extra test parameter for basic auth encoding
2016-12-09 08:43:54 -06:00
Cory Benfield
449d74842d
Merge pull request #3758 from nateprewitt/3753_allow_non_string_params_basic_auth
...
adding string casting for non-bytes values
2016-12-09 08:45:14 +00:00
Nate Prewitt
576b447a37
adding string casting for non-bytes values
2016-12-08 21:13:14 -07:00
Cory Benfield
11a86a5651
Merge pull request #3754 from nateprewitt/3066_auth_and_data
...
test auth doesn't generate incorrect http headers
2016-12-08 09:05:12 +00:00
Nate Prewitt
13716728e7
minor doc string cleanup
2016-12-04 12:11:09 -07:00
Casey Davidson
14d71fd41a
Test chunked upload doesn't set content length
2016-12-04 12:01:07 -07:00
Casey Davidson
2d2c831d07
Add tests to verify that correct 'Content-Length' or 'Transfer-Encoding' headers are being set in PreparedRequest.
2016-12-04 12:00:57 -07:00
Cory Benfield
c398ab0e7d
v2.12.3
2016-12-01 10:48:35 +00:00
Cory Benfield
7d2dfa8684
Merge pull request #3738 from Lukasa/revert-exclusion-patch
...
Revert "Restrict URL preparation to HTTP/HTTPS"
2016-12-01 10:45:25 +00:00
Cory Benfield
6f659a4179
Tests for our URL handling.
2016-11-30 21:45:09 +00:00
Cory Benfield
402a55b647
Revert "Restrict URL preparation to HTTP/HTTPS"
...
This reverts commit 34af72c87d .
2016-11-30 21:19:31 +00:00
Cory Benfield
ca15d48087
v2.12.2
2016-11-30 12:38:26 +00:00
Cory Benfield
5c4549493b
Merge pull request #3695 from nateprewitt/idna_bypass
...
idna bypass
2016-11-25 13:18:01 +00:00
Cory Benfield
36c9c8c3de
Merge pull request #3718 from nsoranzo/master
...
Make Response.content() return None for an empty response
2016-11-24 13:35:37 +00:00
Nicola Soranzo
f897be58bf
Make Response.content return None if raw is None
...
Add test.
2016-11-24 12:54:26 +00:00
Kenneth Reitz
dfad00a6e8
Update README.rst
2016-11-23 20:10:44 -05:00
Kenneth Reitz
d5e050da85
Update README.rst
2016-11-23 20:10:04 -05:00
Kenneth Reitz
1ec08bedd4
links
2016-11-23 20:00:33 -05:00
Kenneth Reitz
724ae1274e
new logo :D
...
https://kennethreitz.org/tattoos
2016-11-23 19:58:18 -05:00
Nicola Soranzo
4f428228d7
Make Response.content() return None if status_code is None
...
Fix #3698 .
2016-11-23 21:15:07 +00:00
Cory Benfield
ccabcf1fca
Merge pull request #3717 from nateprewitt/streaming_docs
...
streaming doc clarification
2016-11-23 10:17:31 +00:00
Nate Prewitt
4f9d0e0455
streaming doc clarification
2016-11-21 14:17:28 -07:00
Cory Benfield
b9f1c448f7
Merge pull request #3673 from klimenko-forks/auth-unicode
...
Enable unicode in basic http auth
2016-11-21 19:27:39 +00:00
Cory Benfield
22ec73d71a
Merge pull request #3713 from tiran/strict_http_protocol_check
...
Restrict URL preparation to HTTP/HTTPS
2016-11-21 19:13:56 +00:00
Dmitry Klimenko
005f93fd0f
added new test, original test restored
2016-11-21 21:42:44 +03:00
Christian Heimes
34af72c87d
Restrict URL preparation to HTTP/HTTPS
...
Requests treats all URLs starting with the string 'http' as HTTP URLs.
Preparation with IDNA breaks non-standard URIs like http+unix. Requests
now prepares only URLs with prefix http:// and https://.
Signed-off-by: Christian Heimes <christian@python.org >
2016-11-21 18:46:57 +01:00
Nate Prewitt
a83685ce00
modifying IDNA encoding check to allow fallback
2016-11-21 08:22:42 -07:00
Nate Prewitt
264f5bd5e1
adding unicode_is_ascii utility function
2016-11-21 08:22:41 -07:00
Nate Prewitt
d52e9b8c80
updated tests with IDNA encoded and IPv6 urls
2016-11-21 08:22:37 -07:00
Kenneth Reitz
268672ab33
Update sidebarlogo.html
2016-11-20 22:49:17 -05:00
Kenneth Reitz
3b956495c1
Update sidebarintro.html
2016-11-20 22:48:43 -05:00
Dmitry Klimenko
3b84be3c99
changed behavior of basic-http-auth test
2016-11-18 20:39:55 +03:00
Dmitry Klimenko
e15280e49d
fixed: httpbin with unicode auth
2016-11-18 19:04:51 +03:00
Dmitry Klimenko
55dea233ce
fixed some error
2016-11-18 15:19:43 +03:00
Dmitry Klimenko
4f0efdb77e
unicode test for _basic_auth_str
2016-11-18 13:31:31 +03:00
Dmitry Klimenko
7c4821231f
Fixed: httpbin doesn't support bytes
2016-11-18 13:14:08 +03:00
Dmitry Klimenko
bf3e960e15
fixed usage unicode string
2016-11-17 23:13:03 +03:00
Cory Benfield
53d4a1feee
Merge pull request #3704 from afeld/patch-1
...
clarify that the `chunk_size` is optional when streaming to a file
2016-11-17 17:27:47 +00:00
Aidan Feldman
ed3ba3dbb8
correct backtick formatting
2016-11-17 12:26:19 -05:00
Dmitry Klimenko
37bde4b638
added unicode auth test
2016-11-17 20:22:32 +03:00
Aidan Feldman
5562c0f097
clarify that the chunk_size is optional when streaming to a file
2016-11-17 12:21:58 -05:00
Dmitry Klimenko
2185fac626
remove extra import
2016-11-17 19:52:13 +03:00
Dmitry Klimenko
329a5cfdd4
Order of type check
2016-11-17 19:50:53 +03:00
Kenneth Reitz
5b66b364a7
Merge pull request #3703 from kennethreitz/revert-3700-master
...
Revert "Adding 'import requests' to readme code snippet."
2016-11-17 10:53:38 -05:00
Kenneth Reitz
5f4d0d08de
Revert "Adding 'import requests' to readme code snippet."
2016-11-17 10:53:33 -05:00
Rakib Hasan
7e138f945e
Adding 'import requests' to readme code snippet. ( #3700 )
...
* added import requests to small demo
2016-11-17 08:23:57 +00:00
Cory Benfield
1e198f9115
Merge pull request #3697 from hussaintamboli/master
...
Fixed issue #3696 . Added a test for it as well.
2016-11-16 18:32:59 +00:00
Hussain
be8b13e89b
Added myself to AUTHORS
2016-11-16 23:33:42 +05:30
Hussain
0d7de50dbd
Just lstrip instead of strip because trailing whitespace already works.
2016-11-16 23:26:48 +05:30
Hussain
248d3e9f0f
Fixed issue #3696 . Added a test for it as well.
2016-11-16 22:48:45 +05:30
Cory Benfield
eb39a557bd
v2.12.1
2016-11-16 10:44:29 +00:00
Cory Benfield
e7a6893282
Merge pull request #3694 from Lukasa/prepare-1.19.1
...
Prepare 2.12.1
2016-11-16 10:44:02 +00:00
Cory Benfield
c2688bbf27
Add changelog for 1.19.1
2016-11-16 10:35:14 +00:00
Cory Benfield
e1b5e19c78
Update bundled urllib3 to 1.19.1
2016-11-16 10:34:08 +00:00
Cory Benfield
7f2a4151f7
Merge pull request #3693 from Lukasa/setuptools-extra
...
Change setuptools extra for secure extra.
2016-11-16 10:33:47 +00:00
Cory Benfield
9ec3478469
Change setuptools extra for new secure extra.
2016-11-16 10:31:39 +00:00
Cory Benfield
341f288449
Merge pull request #3691 from Cleod9/readme-typo-domain-arg
...
Fixes small readme typo - site => domain
2016-11-16 08:39:06 +00:00
Cory Benfield
3ea3324434
Merge pull request #3690 from galgeek/clarify-allow_redirects
...
Clarify allow_redirects
2016-11-16 08:38:33 +00:00
Greg McLeod
b4d843bad2
Fixed readme typo - 'site' should be 'domain'
2016-11-15 22:27:45 -05:00
Barbara Miller
eaf9a688c5
Clarify allow_redirects
...
Make consistent with quickstart doc.
2016-11-15 18:59:05 -08:00
Cory Benfield
9a0a6cab55
Merge pull request #3688 from nateprewitt/release-docs-fix
...
spelling fix for release-process.rst
2016-11-15 20:30:21 +00:00
Nate Prewitt
87b7914bb2
spelling fix for release-process
2016-11-15 13:11:58 -07:00
Cory Benfield
512a78173a
Merge pull request #3684 from nateprewitt/fixing_url_tests_without_method
...
Add method to url tests
2016-11-15 17:51:42 +00:00
Nate Prewitt
5bb01fbfe8
adding method to url tests
2016-11-15 10:46:10 -07:00
Cory Benfield
362da46e9a
v2.12.0
2016-11-15 10:30:17 +00:00
Cory Benfield
2d211d59a0
Fix tests for new urllib3 exception text.
2016-11-15 10:22:38 +00:00
Cory Benfield
72d69d7b62
Update certifi certs to 2016.09.26
2016-11-15 10:11:58 +00:00
Cory Benfield
99fa7becf2
Update urllib3 to 1.19
2016-11-15 10:09:11 +00:00
Cory Benfield
e2408fce9d
Merge pull request #3679 from mlissner/patch-2
...
Amplifies the timeout warning in the docs.
2016-11-14 17:58:13 +00:00
Mike Lissner
cfb7fd8f28
Amplifies the timeout warning in the docs.
...
Partially addresses #3070 .
2016-11-14 09:57:08 -08:00
Cory Benfield
33bd38be15
Merge pull request #3678 from nateprewitt/3675_streaming_docs
...
decoding fix for Streaming Requests docs
2016-11-14 16:55:33 +00:00
Nate Prewitt
d81ad06c64
documentation on encoding fallback for streaming
2016-11-14 09:52:40 -07:00
Nate Prewitt
71b8941f0e
adding decoding requirement for Python 3
2016-11-14 09:43:19 -07:00
Dmitry Klimenko
e514920e19
Unable unicode in basic http auth
...
Fixed the issue with unicode characters in basic http auth
2016-11-12 01:39:37 +03:00
Kenneth Reitz
70f1f8ed35
Merge pull request #3671 from chris-martin/json-ValueError
...
Document that Response.json() may raise ValueError
2016-11-10 18:18:16 -05:00
Chris Martin
a49c387b7a
Document that Response.json() may raise ValueError
2016-11-10 16:26:07 -05:00
Cory Benfield
d24da4a953
Merge pull request #3489 from nateprewitt/1558_pickling_prepared_request
...
adding in pickling tests for PreparedRequest
2016-11-10 17:26:47 +00:00
Nate Prewitt
340902153f
updating pickling tests for PreparedRequest
2016-11-04 10:56:13 -06:00
Cory Benfield
80634b2fad
Merge pull request #3666 from hootnot/doc-patch
...
documentation line added for consistency with the post method
2016-11-03 10:39:47 +00:00
Cory Benfield
f72684e13c
Merge pull request #3655 from nateprewitt/tzickel_post_redirect_w_streamable
...
Rewind readable body before POST redirect
2016-11-03 10:31:04 +00:00
hootnot
623d9e7878
documentation line added for consistency with the post method
2016-11-03 11:10:59 +01:00
Cory Benfield
87e40d116f
Merge pull request #3663 from nateprewitt/fix_cookiejar_from_dict_docs_path
...
fix path for cookiejar_from_dict in api.rst
2016-11-03 10:06:53 +00:00
Nate Prewitt
b5ca0c8d58
correct module for cookiejar_from_dict in docs
2016-11-02 14:59:08 -06:00
Nate Prewitt
522d37c959
update 307 tests to check body content
2016-11-02 12:04:44 -06:00
tzickel
38dd089c5f
Test case for requests getting stuck on post redirect with seekable stream
2016-11-02 12:03:19 -06:00
Nate Prewitt
9849c27b70
test _body_position and rewind_body
2016-11-02 10:12:22 -06:00
Nate Prewitt
40402cd0dd
adding rewind for re-POST bodies
2016-11-02 09:56:56 -06:00
Cory Benfield
bf19750c0a
Merge pull request #3660 from pawelmhm/proxy_empty_pass
...
[httpAdapter] allow empty password in proxy credentials
2016-10-31 13:59:16 +00:00
Pawel Miech
c97a530638
[httpAdapter] allow empty password in proxy credentials
...
fixes #3659
2016-10-31 14:42:01 +01:00
Cory Benfield
7eaa5ee37f
Merge pull request #3658 from elzapp/patch-1
...
Formatted the example to fix the color highlighting
2016-10-31 08:53:04 +00:00
Bård Aase
388e949e83
Formatted the example to fix the color highlighting
2016-10-31 09:09:16 +01:00
Cory Benfield
595a409a18
Merge pull request #3627 from nateprewitt/remove_update_call
...
remove RequestsCookieJar specific update call
2016-10-27 20:53:18 +01:00
Nate Prewitt
390a499e81
test different CookieJar types for add_dict_to_cookiejar
2016-10-27 13:22:45 -06:00
Nate Prewitt
dfd85f2099
make add_dict_to_cookiejar cookielib.CookieJar compatible
2016-10-27 13:17:41 -06:00
Ian Cordasco
9deb603dc3
Merge pull request #3652 from gardiac2002/master
...
The data= parameter barfs on all dictionary-like objects that don't subclass dict itself #3649
2016-10-27 11:51:29 -05:00
Philipp Konrad
548a03acef
requests.post checked data parameters for type like dict.
...
Changed the type check to Mapping.
2016-10-27 17:57:09 +02:00
Cory Benfield
50486cf2be
Merge pull request #3620 from Lukasa/better-idna
...
Better support for internationalized domain names.
2016-10-21 13:09:04 +01:00
Cory Benfield
d14401f799
Merge pull request #3631 from lovedboy/master
...
little modification in consume_socket_content
2016-10-21 09:58:30 +01:00
lovedboy
d587533446
little modification in consume_socket_content
2016-10-21 16:55:58 +08:00
Cory Benfield
83fcabc5bd
Merge pull request #3625 from mie00/tellioerror
...
fix issue when the file-like object raises an IOError with tell
2016-10-21 08:20:37 +01:00
Cory Benfield
e7f5bd634d
Check in updated idna.
2016-10-19 13:19:50 +01:00
Cory Benfield
41b4658738
Further complicate the makefile to rewrite imports
2016-10-19 13:19:37 +01:00
Mohamed Elawadi
f5b5c293b9
fix issue when the file-like object raises an IOError with tell
2016-10-18 11:09:25 +02:00
Ian Cordasco
b8f4c7c7ff
Merge pull request #3621 from Lukasa/fix-packaging
...
Add a missing backport.
2016-10-14 11:38:33 -05:00
Ian Cordasco
c13e313f5a
Merge pull request #3622 from Lukasa/better-makefile
...
Update makefile to only ship tagged releases.
2016-10-14 11:38:17 -05:00
Cory Benfield
8dd51d22fc
Enable UTS46 mode.
2016-10-14 15:13:37 +01:00
Cory Benfield
ae82300073
We only ship tagged releases now.
2016-10-14 11:06:25 +01:00
Cory Benfield
f19d30a670
Seems like we're missing a backport here.
2016-10-14 10:58:26 +01:00
Cory Benfield
110684ea02
Changelog entry for better IDNA.
2016-10-14 10:54:55 +01:00
Cory Benfield
9337b4d95d
Basic tests for internationalized domain names.
2016-10-14 10:53:15 +01:00
Cory Benfield
49b69b57db
Various packaging requirements for idna
2016-10-14 10:21:24 +01:00
Cory Benfield
27812eb902
Use IDNA2008 to encode hosts.
2016-10-14 10:17:52 +01:00
Cory Benfield
35056b1de6
Add license for idna package.
2016-10-14 10:12:16 +01:00
Cory Benfield
3c680cc1c6
Vendor idna v2.1
2016-10-14 10:10:54 +01:00
Cory Benfield
dfb4ef7be0
Add makefile to get latest idna release.
2016-10-14 10:10:17 +01:00
Ian Cordasco
8f37cf79c3
Merge pull request #3617 from Lukasa/jeremycline
...
Note that @jeremycline is now our contact.
2016-10-13 09:08:10 -05:00
Cory Benfield
45478d5be1
Note @jeremycline is now our contact.
2016-10-13 13:28:19 +01:00
Cory Benfield
d0f7a51dd8
Merge branch 'TetraEtc-docs-custom-verbs'
2016-10-12 11:11:17 +01:00
Cory Benfield
02ab1ba5bd
Let's use capitals.
2016-10-12 11:11:05 +01:00
Stewart Polley
341bed9e17
Add Documentation for custom methods
2016-10-08 06:22:07 +10:00
Ian Cordasco
7322a09379
Merge pull request #3607 from frankier/dont-swallow-attributeerror
...
Remove error swallowing exception catching of AttributeError
2016-09-30 07:17:17 -05:00
Frankie Robertson
327512f5ef
Remove error swallowing exception catching of AttributeError
2016-09-29 23:07:16 +09:00
Cory Benfield
022e23c977
Merge pull request #3606 from bbamsch/httpbinTestFix
...
Issue #3597 - Rework Bytestring Host Test to use PyTest Httpbin
2016-09-29 08:09:22 +01:00
Brian Bamsch
5c15fffaca
Rework Bytestring Host Test to use PyTest Httpbin
2016-09-28 20:48:27 -07:00
Cory Benfield
1ac56f1343
Merge pull request #3604 from iamprakashom/master
...
fixes broken link on documentation page
2016-09-28 12:32:53 +01:00
Om Prakash
ed0570bc2b
updates authors
...
updates AUTHORS for #3603
2016-09-28 16:38:51 +05:30
Om Prakash
06920cc266
fixes broken link on documentation page
...
Issue #3603
2016-09-28 16:34:02 +05:30
Cory Benfield
5eabcb7a2f
Merge pull request #3598 from bbamsch/bytestringHostFix
...
Issue #3597 - Avoid bytestring/str hodgepodge when resolving cookie from Request URL
2016-09-28 08:56:38 +01:00
Brian Bamsch
087aeacee5
Change module of internal references to to_native_str()
2016-09-27 20:41:21 -07:00
Brian Bamsch
3ac70defff
Update Comments & Magic Strings
2016-09-27 20:41:17 -07:00
Cory Benfield
9a0b392dee
Merge pull request #3600 from frewsxcv/patch-1
...
Indicate shell command in HISTORY is code-like.
2016-09-27 08:06:27 +01:00
Brian Bamsch
f002b73026
Move to_native_string to _internal_utils.py to avoid circular dependency
2016-09-26 21:41:01 -07:00
Corey Farwell
ae83352bbd
Indicate shell command in README is code-like.
2016-09-26 16:21:07 -04:00
Brian Bamsch
2af059797a
Adjust patch to utilize requests utility functions
...
Use the utility class provided by requests to do native string
transformation rather than recreating the wheel.
2016-09-26 09:14:51 -07:00
Brian Bamsch
550dc19099
Add line to AUTHORS
...
Credit where credit is due 😄
2016-09-25 22:22:33 -07:00
Brian Bamsch
01e405c611
Add patch to avoid bytestring/str hodgepodge
...
When patching Host header into URL, verify that host type matches
urlparse return type before putting it all back together
2016-09-25 22:18:45 -07:00
Brian Bamsch
b28531f4bb
Add test for request when Host header is bytestring
...
Request should successfully set cookie in response, fail if cookie fails
to set as will occur in current state when cookie set tries lookup of
domain
2016-09-25 22:10:57 -07:00
Cory Benfield
439451c3d4
Merge pull request #3591 from nateprewitt/3579_cookie_merge
...
Fix RequestsCookieJar specific update call
2016-09-23 10:32:51 +01:00
Ian Cordasco
9407d697c8
Merge pull request #3545 from nateprewitt/new_prepare_content_length
...
removing redundant logic from prepare_content_length
2016-09-22 07:49:57 -05:00
Nate Prewitt
31b35ab838
removing redundant logic from prepare_content_length
2016-09-21 16:37:28 -06:00
Nate Prewitt
08a158f486
converting update call to merge_cookies call for cookielib compatibility
2016-09-20 12:20:00 -06:00
Ian Cordasco
ddf7df9b00
Merge pull request #3576 from nateprewitt/3557_revert_and_fix_encoding
...
Fix encoding issue in test_response_reason_unicode_fallback
2016-09-20 09:48:40 -05:00
Cory Benfield
c12122970a
Merge pull request #3580 from rbcarson/idna-thread-embedded-3578
...
Add workaround to avoid implicit import of encodings.idna. Fixes #3578 .
2016-09-17 08:18:59 +01:00
Carson Lam
d7227fbb7e
Add workaround to avoid implicit import of encodings.idna.
2016-09-17 00:12:36 -07:00
Cory Benfield
5524472cc7
Merge pull request #3535 from nateprewitt/3339_avoid_getvalues
...
avoid use of getvalues in super_len
2016-09-14 08:10:28 +01:00
Nate Prewitt
39e8c0d96f
reverting 3357 and comparing properly encoded strings
2016-09-13 22:51:28 -06:00
Cory Benfield
2041adbe4d
Merge pull request #3557 from sigmavirus24/fix-failing-test
...
Fix how we test fallback to latin-1 reason encoding
2016-09-06 15:58:02 +01:00
Ian Cordasco
42d4eaf6ea
Fix how we test fallback to latin-1 reason encoding
...
This was terribly broken and found while merging master into proposed/3.0.0
2016-09-06 09:55:37 -05:00
Ian Cordasco
87f96936fe
Merge pull request #3554 from nateprewitt/3538_fallback_to_ISO_8591_1
...
ISO-8859-1 fallback for reason decoding
2016-09-05 18:15:06 -05:00
Nate Prewitt
2e1086f5b4
adding comment
2016-09-05 14:17:46 -06:00
Ian Cordasco
39b3477726
Merge pull request #3552 from Trodis/master
...
pysocks 1.5.7 blacklisting, due to IPv6 problems
2016-09-05 11:47:13 -05:00
Ferhat
dedf9064c6
pysocks 1.5.7 blacklisting, due to IPv6 problems
2016-09-05 18:28:57 +02:00
Nate Prewitt
cd056cd621
adding ISO-8859-1 fallback for reason decoding
2016-09-02 11:37:48 -06:00
Cory Benfield
58d855e193
Merge pull request #3541 from RichieB2B/ncsc-nl/docufix
...
Specify self.cert is used for SSL client certificates
2016-08-26 10:02:21 -04:00
Richard van den Berg
80f304fd30
Specify self.cert is used for SSL client certificates
2016-08-26 15:17:31 +02:00
Cory Benfield
889f855581
Merge pull request #3539 from RichieB2B/ncsc-nl/docufix
...
Add persistent examples
2016-08-26 09:16:54 -04:00
Richard van den Berg
2cd05271be
Add persistent examples
2016-08-26 09:43:11 +02:00
Nate Prewitt
f5c59743e7
adding tests for super_len conditional flow
2016-08-25 16:56:01 -06:00
Nate Prewitt
99364b6b0b
removing use of seek to set total_length
2016-08-24 15:06:53 -06:00
Skipper Seabold
8873a09097
Fall back to streaming
2016-08-24 09:59:33 -06:00
Skipper Seabold
d4965a4ec6
Python 2 compatibility
2016-08-24 09:59:33 -06:00
Skipper Seabold
af7729f64a
Use seek from end rather than getvalue
2016-08-24 09:59:28 -06:00
Cory Benfield
52b15f811f
Merge pull request #3530 from shellhead/mixed-proxy-bug
...
Fixed another scheme proxy over "all" priority issue
2016-08-23 07:54:35 -04:00
Michael Hunsinger
7c80222afa
Fixed another scheme proxy over "all" priority
2016-08-22 21:01:13 -06:00
Cory Benfield
3314259185
Merge pull request #3526 from shellhead/mixed-proxy-bug
...
Fixed bug to give scheme proxy priority over "all"
2016-08-21 18:17:31 -04:00
Michael Hunsinger
77b068bb9e
Fixed bug to give scheme proxy priority over "all"
2016-08-21 10:59:33 -06:00
Keyan Pishdadian
647ed5b6de
Add pickle test with hooks
2016-08-19 14:38:33 -06:00
Keyan Pishdadian
117813ee2e
Add prepared request pickling tests
2016-08-19 14:37:26 -06:00
Cory Benfield
d3567aacc9
Merge pull request #3510 from nateprewitt/add_close_passthrough
...
adding passthrough in close() for non-urllib3-like Responses
2016-08-18 09:28:20 +01:00
Kenneth Reitz
33501c7ae8
Merge pull request #3520 from Brausepaul/master
...
Adding notes about Requests' timeout behavior
2016-08-17 17:30:27 -04:00
Kenneth Reitz
532756803d
v2.11.1
2016-08-17 16:03:38 -04:00
Maik
b5fac31688
Changes to documentation based on comments and correction of list of authors.
2016-08-17 22:03:18 +02:00
Kenneth Reitz
04fdf1a25a
Merge pull request #3514 from Lukasa/prepare-2.11.1
...
Prepare for 2.11.1 bugfix release.
2016-08-17 16:01:58 -04:00
Maik Himstedt
b26606cc3c
Adding notes about Request's timeout behavior.
2016-08-17 20:27:00 +02:00
Brausepaul
13bc52f82c
Merge pull request #1 from kennethreitz/master
...
Updating fork with updates from original repo
2016-08-17 19:24:02 +02:00
Kenneth Reitz
b9648bad19
Update index.rst
2016-08-15 15:36:41 -04:00
Kenneth Reitz
786fb19a6d
Merge pull request #3513 from nateprewitt/doc_updates
...
doc updates
2016-08-15 13:52:56 -04:00
Cory Benfield
ab1a6a4d00
Prepare changelog for 2.11.1.
2016-08-15 10:05:37 +01:00
Nate Prewitt
1435cf5aff
docs updates
2016-08-14 20:56:52 -06:00
Cory Benfield
f12166acb6
Merge pull request #3511 from forrestchang/master
...
fix grammer mistakes in Quickstart
2016-08-13 09:42:25 +01:00
Jiayuan Zhang
00f83fb0c6
fix grammer mistakes in Quickstart
2016-08-13 10:19:10 +08:00
Nate Prewitt
59f12c9669
adding passthrough in close() for non-urllib3-like Responses
2016-08-12 10:54:41 -06:00
Ian Cordasco
f5ff345c35
Merge pull request #3493 from nateprewitt/3490_drop_headers
...
#3490 removing Content-Type and Transfer-Encoding headers on redirect
2016-08-12 06:24:36 -05:00
Nate Prewitt
4d5091c287
building Response manually
2016-08-11 14:54:26 -06:00
Nate Prewitt
e50c61bc86
removing Content-Type and Transfer-Encoding headers on redirect
2016-08-11 10:58:20 -06:00
Kenneth Reitz
c1d7d23b74
Merge pull request #3492 from nateprewitt/update_HISTORY
...
updating HISTORY
2016-08-09 17:16:37 -04:00
Nate Prewitt
10bc2f05d3
updating HISTORY
2016-08-09 15:12:34 -06:00
Cory Benfield
e4b7040530
Merge pull request #3487 from drpoggi/patch-1
...
Update README.rst
2016-08-09 16:40:20 +01:00
David Poggi
1e253cd0b3
Update README.rst
2016-08-09 11:14:40 -04:00
Cory Benfield
5e4abfa3a2
Merge pull request #3486 from nateprewitt/3481_revert_3362
...
reverting 3362
2016-08-09 14:52:22 +01:00
Nate Prewitt
d7f56ba938
reverting 3362
2016-08-09 07:36:39 -06:00
Cory Benfield
5259b37451
Merge pull request #3484 from scop/rtypes
...
Document bunch of return types
2016-08-09 11:42:45 +01:00
Ville Skyttä
542fbbc67f
Document bunch of return types
2016-08-09 13:32:56 +03:00
Kenneth Reitz
931397829e
Update index.rst
2016-08-08 23:01:48 -04:00
Kenneth Reitz
64c9451657
Merge pull request #3480 from drpoggi/patch-1
...
Clarify Python versions supported by requests
2016-08-08 23:00:55 -04:00
David Poggi
5f7b8ab0a7
Update index.rst
2016-08-08 22:58:26 -04:00
David Poggi
33a74f1787
Update index.rst
...
Range formatting update.
2016-08-08 22:57:05 -04:00
David Poggi
bab4aa0fbf
Clarify Python versions supported by requests
2016-08-08 22:49:35 -04:00
Kenneth Reitz
57e7a308b0
Update HISTORY.rst
2016-08-08 17:35:40 -04:00
Kenneth Reitz
a2e41ba1f1
v2.11.0
2016-08-08 11:06:58 -04:00
Kenneth Reitz
05d90b9379
Merge pull request #3475 from Lukasa/prepare-2.11
...
Prepare for 2.11 release.
2016-08-08 11:05:02 -04:00
Cory Benfield
d7700bebeb
Oh yeah, we updated urllib3 too.
2016-08-08 13:37:37 +01:00
Cory Benfield
c6eea58081
Changelog for 2.11
2016-08-08 13:37:09 +01:00
Cory Benfield
7bf67b4101
Update urllib3 to 1.16
2016-08-08 13:21:06 +01:00
Cory Benfield
cf7fdb901c
Merge pull request #3469 from roselma/patch-1
...
Add a bit about RequestsCookieJar to Cookies section
2016-08-03 21:04:58 +01:00
Michael
07b7872df8
Add a bit about RequestsCookieJar to Cookies section
2016-08-03 13:03:34 -07:00
Cory Benfield
be12b27d71
Merge pull request #3462 from sigmavirus24/bug/3461
...
Close and then release the connection
2016-07-30 18:18:14 +01:00
Ian Cordasco
c69e3eed31
Close and then release the connection
...
urllib3 closes the underlying connection when we call
urllib3.Response.close but does not release it back to the connection
pool. This can cause issues when users have a blocking connection pool
configured and connections are not readily returned to the pool.
Since the underlying connection is closed, we should be able to safely
return the connection to the connection pool, so to fix this issue we
merely need to not return after closing the response.
Closes gh-3461
2016-07-30 07:16:18 -05:00
Ian Cordasco
f40764c01b
Merge pull request #3441 from scop/spelling
...
Spelling fixes
2016-07-26 07:26:18 -05:00
Ville Skyttä
5453b88f8f
Spelling fixes
2016-07-26 15:24:29 +03:00
Kenneth Reitz
fb01456061
Merge pull request #3429 from nateprewitt/docstring_cleanup
...
Docstring cleanup
2016-07-20 18:38:38 -04:00
Nate Prewitt
b7809acb47
making class and function docstrings consistent
2016-07-20 11:43:47 -06:00
Kenneth Reitz
4285bac3fd
Merge pull request #3428 from nateprewitt/pep8_fixes
...
adding in pep8 fixes
2016-07-20 12:47:00 -04:00
Nate Prewitt
2d4a89f5dc
adding in pep8 fixes
2016-07-20 10:30:08 -06:00
Nate Prewitt
15a3869006
making module docstrings and coding comments consistent
2016-07-19 14:51:14 -06:00
Cory Benfield
75d72ca4ea
Merge pull request #3415 from nateprewitt/test_cleanup
...
removing redundant test
2016-07-15 08:07:44 +01:00
Nate Prewitt
d262df99bf
removing redundant test
2016-07-14 21:53:10 -06:00
Cory Benfield
d7fc5d5296
Merge pull request #3402 from HarrisonJackson/remove-extra-warnings-import
...
Remove duplicate import warnings
2016-07-14 17:59:51 +01:00
Harrison Jackson
5a3aeedd18
Remove duplicate import warnings
2016-07-14 09:47:27 -06:00
Cory Benfield
6e54fd607f
Merge pull request #3401 from Zeusw/patch-1
...
in python3.x not have StringIO
2016-07-14 08:57:49 +01:00
Zeusw
cf938420f8
in python3.x not have StringIO
...
I think, should such an amendment.
2016-07-14 10:40:32 +08:00
Cory Benfield
425962cb13
Merge pull request #3390 from nateprewitt/3386_header_value_type
...
Defining header value type requirements and tests
2016-07-07 17:20:03 +01:00
Ian Cordasco
5d9b9ffab4
Merge pull request #3388 from nateprewitt/header_doc_update
...
updating documentation to reflect decision of #3386
2016-07-07 09:56:08 -05:00
Nate Prewitt
1cb3b797fe
updating documentation to reflect decision of #3386
2016-07-07 07:44:20 -06:00
Nate Prewitt
be31a90906
Defining header value type requirements and tests
2016-07-05 17:32:05 -06:00
Andrii Kostenko
7700ecae14
Support responses like HTTP/1.1 404 Unicode chars ( #3385 )
2016-07-05 09:01:19 -05:00
Nate Prewitt
71050e9ab9
adding in slice_length fix and test for chunk_size=None ( #3370 )
2016-07-02 15:56:20 -05:00
Cory Benfield
bd9e8f2271
Merge pull request #3366 from nateprewitt/2947-no-returns-in-header
...
check for headers containing return characters
2016-07-02 20:32:17 +01:00
Nate Prewitt
2669ab797c
check and test for headers containing return characters or leading whitespace
2016-07-02 13:10:47 -06:00
Cory Benfield
ebadf81723
Merge pull request #3382 from nateprewitt/iter_content_docstring
...
updating iter_content docstring to match functionality
2016-07-02 19:10:20 +01:00
Nate Prewitt
0c08ca7154
updating docstring to match functionality
2016-07-02 08:43:23 -06:00
Joy Zheng
0bcf634135
Allow None value for chunk_size again ( #3368 )
2016-06-30 19:11:01 -05:00
Nate Prewitt
92fe51c0af
adding asserted_encoding check on None type encoding to match text() behavior ( #3362 )
2016-06-28 14:22:00 -05:00
Cory Benfield
36453b95b1
Merge pull request #3365 from nateprewitt/3364_chunking_is_int
...
added in type check for chunk_size
2016-06-28 08:33:29 +01:00
Nate Prewitt
cf3c99890d
added in type check for chunk_size
2016-06-27 19:58:15 -06:00
Cory Benfield
1f681d8843
Merge pull request #3358 from petedmarsh/master
...
Update list of supported Python versions in todo.rst
2016-06-21 19:53:19 +01:00
Peter Marsh
8484144c67
Update list of supported Python versions in todo.rst
2016-06-21 19:50:11 +01:00
Kenneth Reitz
771ecd7efd
Merge pull request #3236 from eriol/xfail-test
...
Use xfail marker for a test expected to fail without Internet connection
2016-06-20 22:17:23 -04:00
John Vandenberg
400d27f982
Test security warnings ( #3289 )
...
Verify that the expected warnings are emitted
with SubjectAltNameWarning emitted on all environments
due to the https server provided by httpbin_secure.
2016-06-17 08:00:05 -05:00
Kenneth Reitz
e12ee9407c
Merge pull request #3297 from davidfischer/http-error-specifics
...
Note how HTTPErrors are raised
2016-06-08 23:57:44 -07:00
Kenneth Reitz
6c9a0eff04
compensate for lack of taste
2016-06-09 00:38:53 -04:00
Kenneth Reitz
7d0a94d8c6
Merge pull request #3298 from davidfischer/appengine-notes
...
Update a note on AppEngine
2016-06-08 19:49:06 -07:00
David Fischer
6f5b6bd4c4
Update a note on AppEngine
2016-06-08 19:31:32 -07:00
David Fischer
277d4a41ad
Note how HTTPErrors are raised
2016-06-08 18:19:10 -07:00
Cory Benfield
7a404cf4ec
Document header ordering. ( #3295 )
2016-06-08 11:44:33 -05:00
Kenneth Reitz
8813787a12
wildly inaccurate button results in deletion
...
(not the button's fault!)
2016-06-04 22:08:47 -04:00
Cory Benfield
bca205e9bf
Merge pull request #3251 from sigmavirus24/bug/3250
...
Update documentation of Session.max_redirects
2016-06-01 11:08:39 -07:00
Ian Cordasco
de4c75bbad
Update documentation of Session.max_redirects
...
Fixes #3250
2016-06-01 11:00:42 -05:00
Daniele Tricoli
5e86103387
Use xfail marker for a test expected to fail without Internet connection
...
This is only a minor improvement on the great work of
https://github.com/kennethreitz/requests/pull/2859 that permits to run
tests on hosts without Internet connection.
2016-05-29 20:47:41 +02:00
Seppo Yli-Olli
9e9d2c6521
Make BaseAdapter describe the mandatory adapter interface ( #3216 )
...
* BaseAdapter definition of send is missing mandatory params
* Copy over relevant parts of the interface documentation
* Indentation fix
* Change base class documentation for close
2016-05-24 13:23:16 -05:00
Cory Benfield
49b69c4751
Merge pull request #3178 from haikuginger/master
...
Encoding JSON requests to bytes for urllib3 to handle
2016-05-22 17:02:09 +01:00
Brett Higgins
b6d6894f53
Allow graceful interruption of testserver.Server
...
So that failing tests don't cause the server thread to hang
indefinitely, waiting for connections that will never come.
Rationale for suppressing error/traceback from interrupted
_accept_connection in testserver.Server:
https://gist.github.com/brettdh/b6e741227b2297f19d2118077f14dfa5
* Move server socket close to just before join
This way it handles the no-connections, no-exceptions case
as well as the exception case. If the server thread doesn't
exit by itself within 5 seconds of the context manager exit,
the accept will be interrupted.
* Address feedback
- pytest.raises rather than except:pass
- Move socket create/bind back to run()
- Timeout on accepting connections
2016-05-17 10:45:12 -05:00
Ian Cordasco
cd4e6b9aef
Merge pull request #3185 from brettdh/3183-support-all-proxy-env-var
...
Support ALL_PROXY environment variable
2016-05-17 10:42:31 -05:00
Brett Higgins
35744c3e5d
Use iter instead of noop list comprehension
2016-05-16 21:53:20 -04:00
Ian Cordasco
12e3631827
Merge pull request #3195 from kumarvaradarajulu/no_proxy_fix
...
Fix to check for Plain ip notations in no_proxy settings if not CIDR
2016-05-16 07:47:33 -05:00
Kumar Varadarajulu
b94decc47c
Combined tests to one tests for should_bypass_proxies method
2016-05-16 10:49:37 +00:00
Kumar Varadarajulu
f59a95713e
Added tests for should_bypass_proxies function
2016-05-16 10:40:22 +00:00
Kumar Varadarajulu
17b6c5742c
consider plain ip notation of an ip in no_proxy if not in cidr notation
2016-05-16 06:11:25 +00:00
Brett Higgins
4bf8866172
Add 'all' proxy selection to select_proxy
...
It seems it's necessary both in pulling all_proxy from the environment
(rebuild_proxies) and deciding which proxy to use (select_proxy).
Also added new functional test.
2016-05-13 15:30:38 -04:00
Ian Cordasco
4865f0f9bf
Merge pull request #3188 from Lukasa/fixup-indentation
...
Replace tab with appropriate spaces.
2016-05-12 08:11:19 -05:00
Cory Benfield
0838685dab
Replace tab with appropriate spaces.
2016-05-12 10:57:52 +01:00
Brett Higgins
1121f8b915
Support ALL_PROXY environment variable
...
Closes #3183 .
2016-05-11 10:37:53 -04:00
Cory Benfield
87704105af
Merge pull request #3179 from messense/messense-patch-1
...
Fix TypeError when get json-encoded content of a response
2016-05-06 13:59:01 +01:00
messense
cb4c2c0b65
Fix TypeError when get json-encoded content of a response
...
``self.content`` could be ``None``, so ``len(self.content)`` may raise ``TypeError: object of type 'NoneType' has no len()``
2016-05-06 09:53:14 +08:00
Ian Cordasco
3669b4216a
Merge pull request #3173 from Lukasa/socks-proxy-docs
...
Add section on SOCKS proxies.
2016-05-05 12:18:27 -05:00
Jesse Shapiro
04bb965c87
Fixing test; it was accomplishing the right thing, but doing it in the wrong way.
2016-05-05 12:23:59 -04:00
Jesse Shapiro
52c0daff5f
Cleaning up comment on JSON encoding to be more strictly relevant.
2016-05-05 12:12:49 -04:00
Jesse Shapiro
9ff2e43cd6
Removing charset from JSON content type; tightening requirements on .encode()
2016-05-05 06:27:12 -04:00
Jesse Shapiro
386382b18c
Encoding JSON requests to bytes for urllib3 to handle; ensuring same with testing.
2016-05-04 20:09:07 -04:00
Cory Benfield
989e8f15dd
Merge pull request #3171 from luv/master
...
docs: Add a note about SSL c_rehash
2016-05-03 08:44:42 +01:00
Cory Benfield
339e950dc7
Add section on SOCKS proxies.
2016-05-03 08:07:30 +01:00
Lukas Vacek
52facb2257
docs: Add a note about SSL c_rehash
2016-05-02 23:03:35 +02:00
Kenneth Reitz
296928f36f
fixed date formatting
2016-04-29 18:17:21 -04:00
Kenneth Reitz
efb4af0127
v2.10.0
2016-04-29 18:11:49 -04:00
Kenneth Reitz
f69d8c16ed
updated urllib3 (v1.15.1)
2016-04-29 18:11:17 -04:00
Kenneth Reitz
a5da4f399f
v2.10.0
2016-04-29 18:03:28 -04:00
Kenneth Reitz
39d6935488
Merge pull request #2953 from Lukasa/socks_proxy_support
...
SOCKS Proxy Support
2016-04-29 18:03:04 -04:00
Kenneth Reitz
c9ef5653cc
v2.9.2
2016-04-29 17:56:42 -04:00
Kenneth Reitz
2824867412
v2.9.2
2016-04-29 17:52:19 -04:00
Kenneth Reitz
f803dc6c99
updated authors
2016-04-29 17:52:11 -04:00
Kenneth Reitz
ce5e312593
Merge pull request #3096 from piotrjurkiewicz/master
...
Change _store of CaseInsensitiveDict to OrderedDict
2016-04-29 17:47:35 -04:00
Ian Cordasco
ecebf337ed
Merge pull request #3139 from markshannon/fix/3138
...
Initialize hash_utf8 to None, preventing NameError. Fixes #3138 .
2016-04-29 11:05:19 -05:00
Mark Shannon
abe02ed89f
Initialize hash_utf8 to None, preventing NameError. Fixes #3138 .
2016-04-29 16:49:24 +01:00
Cory Benfield
252bfa7885
Merge pull request #3136 from Natim/readthedocs.io
...
Update readthedocs links.
2016-04-28 11:43:14 +01:00
Rémy HUBSCHER
70a344d8eb
Update readthedocs links.
2016-04-28 12:39:10 +02:00
Cory Benfield
343027893b
Merge pull request #3132 from chipaca/no-hostname-no-cry
...
utils: let select_proxy not raise an exception when url has no hostname
2016-04-26 11:35:23 +01:00
John R. Lenton
4e7beef860
utils: let select_proxy not raise an exception when url has no hostname
2016-04-26 11:22:44 +01:00
Ian Cordasco
bbeb0001cd
Merge pull request #3108 from kevinburke/flip-conditional
...
Flip conditional in session.send()
2016-04-21 10:30:22 -05:00
Kevin Burke
ae1ac2d4e0
Flip conditional in session.send()
...
Previously we checked that the `request` being sent was an instance of a
PreparedRequest. If a user somehow created a PreparedRequest using a different
Requests library instance, this check makes the request un-sendable.
(This happened recently - unbeknownst to me, my server was running an outdated
version of pip, vulnerable to this issue - pypa/pip#1489, which creates
multiple subdirectories (src/requests, src/requests/requests) when you rerun
pip install --target. So the PreparedRequest was being created in one version
of the library and compared against the other version of the library, and
throwing this exception, even though they were both PreparedRequest instances!)
It would probably be preferable to check the object's behavior (instead of
its type), but a PreparedRequest has a lot of behavior, and it wouldn't be
really feasible or allow us to provide a helpful error message to check all
of it here. Instead flip the conditional to guard against the user sending an
unprepared Request, which should still give us most of the benefits of the
better error message.
Fixes #3102
2016-04-21 08:12:05 -07:00
Kenneth Reitz
aa1c3adf9a
Merge pull request #3100 from hitstergtd/hitstergtd-docfixes-1
...
Remove stale sentence in philosophy.rst
2016-04-17 13:26:24 -04:00
Piotr Jurkiewicz
b1a7dcd799
Fix test_headers_preserve_order
2016-04-16 22:21:10 +02:00
Hitster GTD
d801d7797e
Remove stale sentence in philosophy.rst
...
Sentence contained reference to version 1.0.0.
2016-04-16 10:57:24 +01:00
Ian Cordasco
60aee145b9
Merge pull request #3091 from bodgit/proxy
...
Clear any pooled proxy connections
2016-04-15 07:50:06 -05:00
Matt Dainty
2029a8a931
Clear any pooled proxy connections
...
As well as clearing any pooled direct connections, iterate over any
ProxyManager objects and clear any pooled proxy connections there as well.
2016-04-15 09:33:37 +01:00
Piotr Jurkiewicz
c8a0fc6aa2
Use OrderedDict from .compat module
2016-04-15 04:43:53 +02:00
Piotr Jurkiewicz
4f5741e1ff
Add test of headers order preservation
2016-04-15 00:35:57 +02:00
Piotr Jurkiewicz
4c04469cfb
Change _store of CaseInsensitiveDict to OrderedDict
2016-04-14 18:10:50 +02:00
Kenneth Reitz
4a716e0dfc
Merge pull request #2897 from BraulioVM/dummy-server
...
Test socket server
2016-04-11 16:29:02 -04:00
Braulio Valdivielso Martínez
634b2beb39
Fixed indenting issues
2016-04-11 20:03:23 +02:00
Ian Cordasco
e65d6fc637
Merge pull request #3082 from tzickel/master
...
Added a test to show a faulty behaviour when posting binary data for an object with no __iter__
2016-04-11 07:38:50 -05:00
Cory Benfield
b5d375417f
Merge pull request #3086 from sleshep/master
...
add rtype in session.request,help pycharm easy.
2016-04-11 08:14:39 +01:00
liuyang
2981366f56
add rtype in session.request
2016-04-11 14:33:23 +08:00
Kenneth Reitz
2874fd18fe
Merge pull request #3080 from Lukasa/rfc7838
...
Add 421 Misdirected Request.
2016-04-10 16:49:27 -04:00
tzickel
219490ea7f
Make a dummy test
2016-04-08 23:17:37 +03:00
tzickel
fb230709a8
Fix for the test ?
2016-04-08 22:23:35 +03:00
tzickel
2246a52a36
Added a test to show a faulty behaviour when posting binary data for an object
...
with no __iter__
2016-04-08 20:25:01 +03:00
Cory Benfield
831d8e0a1e
Add 421 Misdirected Request.
2016-04-08 08:23:46 +01:00
Kenneth Reitz
f0860bd3ca
Merge pull request #3048 from Stranger6667/test-structures
...
Added unit tests for structures module
2016-04-06 15:06:36 -04:00
Kenneth Reitz
456be3cfde
Merge pull request #3024 from Stranger6667/utils-unit-tests
...
Added unit tests for utils module
2016-04-06 15:05:13 -04:00
Kenneth Reitz
b6b1b3a81c
Merge pull request #3049 from Stranger6667/test-hooks
...
Added unit tests for hooks module
2016-04-06 15:04:15 -04:00
Kenneth Reitz
90578795eb
Update HISTORY.rst
2016-04-06 15:02:06 -04:00
Kenneth Reitz
03ed671a41
Merge pull request #3059 from alexanderad/proxy-connection-errors
...
Raise a ProxyError for proxy related connection issues
2016-04-06 15:01:25 -04:00
Cory Benfield
e576f98429
Merge pull request #3069 from achermes/master
...
Update docstring and API doc to document ability to add per-file headers in multipart POST
2016-03-29 12:31:57 +01:00
Alexander Hermes
b8a577050d
Update docstring and API doc to document ability to add per-file headers in multipart POST
...
* Docstring only change - for the function itself cf. requests Issue #1640
2016-03-29 11:57:47 +01:00
Ian Cordasco
3acf3a7238
Merge pull request #3060 from benweatherman/master
...
Consolidate logic for changing method during redirects
2016-03-20 13:46:00 -05:00
Ben
f24d56a1ce
Consolidate logic for changing method during redirects
...
I only moved the code into a function, there was no actual change to
the code. I added a few tests to ensure we're doing things correctly.
The real point of me doing this is to make it easier to bring back
`strict_mode` functionality. For you requests youngsters in the crowd,
`strict_mode` followed the spec for redirects meaning the method
wouldn't change to a GET. The current code follows the browser
convention of changing the method to a GET when doing a 302 redirect.
However, lots of servers want you to follow the standards (the nerve!)
so I'd like to override the logic. Now that the method changing logic
is in `rebuild_method`, I can simply override that function instead of
overriding the entire `resolve_redirects` function as suggested by
kennethreitz/requests#1325
2016-03-17 23:16:39 -05:00
Alexander Shchapov
6ca9d71bb5
Raise a ProxyError for proxy related connection issues.
2016-03-17 15:46:26 -04:00
Cory Benfield
c9f8414476
Merge pull request #3057 from kevinburke/secure-by-default
...
Clarify that SSL verification is on by default
2016-03-17 15:19:59 +00:00
Kevin Burke
e94c812c2d
Clarify that SSL verification is on by default
...
Generally if a kwarg is present it indicates that an option other than the
default is being specified. Putting `verify=True` in the first code sample
for SSL confused me, because it seemed to indicate that you had to specify
`verify=True` to get SSL verification. The opposite is true; SSL verification
is turned on by default and you have to specify `verify=False` to opt out of
SSL verification.
Updates the docs to make this more clear. Furthermore, connections to
https://kennethreitz.com currently time out instead of presenting an invalid
certificate, so I replaced this domain with https://requestb.in , which presents
the same error message as is currently there.
2016-03-17 08:16:56 -07:00
Dmitry Dygalo
81dc9084b2
Added unit tests for structures module
2016-03-15 14:47:32 +01:00
Dmitry Dygalo
eddea4e914
Added unit tests for hooks module
2016-03-14 14:08:44 +01:00
Dmitry Dygalo
1eb153529a
Merge remote-tracking branch 'upstream/master' into utils-unit-tests
...
Conflicts:
tests/test_utils.py
2016-03-13 10:24:47 +01:00
Ian Cordasco
190cddd4ae
Merge pull request #3036 from Lukasa/issue/3035
...
Allow for exceptions from tell()
2016-03-11 07:30:53 -06:00
Cory Benfield
90a166d44a
Release note.
2016-03-11 09:57:59 +00:00
Kenneth Reitz
3a26d13b52
Merge pull request #3041 from bsandrow/patch-2
...
Fix autofunction Reference
2016-03-09 03:59:44 -05:00
Kenneth Reitz
fe475f5d46
Merge pull request #3042 from bsandrow/patch-1
...
Fix api.rst References
2016-03-09 00:35:45 -05:00
Brandon Sandrowicz
f0d5a1f230
Fix autofunction Reference
...
`request.codes` is a class (`LookupDict`), not a function.
2016-03-08 23:57:54 -05:00
Brandon Sandrowicz
ee060ba7f3
Fix api.rst References
...
api.rst references `requests.ConnectTimeout` and `requests.ReadTimeout`, but they aren't imported into the top-level of the package.
2016-03-08 23:51:46 -05:00
Braulio Valdivielso Martínez
b473440cc1
Fix tests in python 3
2016-03-07 18:33:06 +01:00
Cory Benfield
6cc0b56d51
Switch to treat files without tell() as zero-length
2016-03-07 09:05:43 +00:00
Cory Benfield
e034dd1140
Allow for exceptions from tell()
2016-03-07 08:31:23 +00:00
Cory Benfield
4f378b0e1a
Merge pull request #3032 from davidsoncasey/master
...
Changes for #3028
2016-03-06 18:07:59 +00:00
Casey Davidson
f74a6707af
Verify that cookie can be properly accessed if domain is specified, and that error is raised otherwise. Refs #3028 .
2016-03-05 20:37:56 -08:00
Casey Davidson
c53a685e7d
Fix typo.
2016-03-05 20:30:36 -08:00
Braulio Valdivielso Martínez
03743b15ed
Added docstrings to tests in test_testserver.py
2016-03-05 23:50:11 +01:00
Braulio Valdivielso Martínez
0dff06a7b9
Add blank line in test_requests.py
2016-03-05 23:28:32 +01:00
Braulio Valdivielso Martínez
c4abb4c9fb
Remove unwanted changes in test_utils.py
2016-03-05 23:26:36 +01:00
Braulio Valdivielso Martínez
94d4818fde
Remove unwanted change in test_requests.py
2016-03-05 23:22:52 +01:00
Braulio Valdivielso Martínez
eeafdc143b
Move test_chunked_upload to test_lowlevel.py
2016-03-05 23:21:00 +01:00
Braulio Valdivielso Martínez
66c52c3ce0
Leave two lines of separation between top level definitions
2016-03-05 23:11:31 +01:00
Braulio Valdivielso Martínez
3c3bde5381
Remove unwanted changes
2016-03-05 23:10:13 +01:00
Braulio Valdivielso Martínez
4edf1ae55f
Compare response bodies with unicode strings
2016-03-05 23:05:36 +01:00
Braulio Valdivielso Martínez
7088c06d8d
Changed tests to use socket.sendall instead of socket.send
2016-03-05 22:45:26 +01:00
Casey Davidson
b9517a58bc
Assert that both cookies were added in test. Refs #3028 .
2016-03-04 15:59:13 -08:00
Casey Davidson
d8b36c1718
Override __contains__ method of RequestsCookieJar to catch CookieConflictError. Refs #3028
2016-03-04 15:55:43 -08:00
Casey Davidson
1185d65202
Add tests to specify when CookieConflicError should be raised. References #3028 .
2016-03-04 15:55:43 -08:00
Braulio Valdivielso Martínez
44161ac373
Moved TestTestServer to its own file
2016-03-04 19:35:46 +01:00
Braulio Valdivielso Martínez
0d1a779030
Fixed style issues
2016-03-04 19:33:58 +01:00
Braulio Valdivielso Martínez
bf026e3c31
Removed unittest execution chunk
2016-03-04 19:24:15 +01:00
Braulio Valdivielso Martínez
e3ad31f3be
Added test_chunked_upload to test_requests.py
2016-03-04 19:21:32 +01:00
Braulio Valdivielso Martínez
f17ef753d2
Moved test_chunked_upload to test_requests.py
2016-03-03 22:13:47 +01:00
Braulio Valdivielso Martínez
567b31080e
Fixed formatting error in python2.6
2016-03-03 22:00:27 +01:00
Braulio Valdivielso Martínez
75a9a981b5
Removed unnecessary files
2016-03-03 22:00:08 +01:00
Braulio Valdivielso Martínez
ca35c847a2
Moved testserver to tests/
2016-03-03 21:52:59 +01:00
Braulio Valdivielso Martínez
141db281d1
Merged master
2016-03-03 21:44:21 +01:00
Braulio Valdivielso Martínez
9ac5a6e4ae
Fixed encoding issues, added timeouts to event waits and refactored Server
2016-03-03 21:11:17 +01:00
Braulio Valdivielso Martínez
241656355b
Changed whitespace in docstring
2016-03-03 20:09:13 +01:00
Braulio Valdivielso Martínez
fa91b0ab7c
Fixed style
2016-03-03 20:07:42 +01:00
Kenneth Reitz
46184236dc
docs2
2016-02-21 23:02:10 -05:00
Kenneth Reitz
7c5d703466
docs
2016-02-21 23:01:41 -05:00
Kenneth Reitz
f8798a253a
http://pep8.org
2016-02-21 23:00:42 -05:00
Kenneth Reitz
7de1495bf5
add httpbin.org
2016-02-21 22:54:04 -05:00
Kenneth Reitz
c4adf614a6
translate all the pages
2016-02-21 22:35:38 -05:00
Kenneth Reitz
f90c311851
peeps be stealin'!
2016-02-21 22:04:52 -05:00
Kenneth Reitz
f2ec732ce8
stay informed
2016-02-21 20:45:45 -05:00
Kenneth Reitz
e47e80b92f
&bsp;
2016-02-21 20:34:15 -05:00
Kenneth Reitz
5f06b8196e
updated sidebars
2016-02-21 20:32:42 -05:00
Kenneth Reitz
41c26ce1f5
improvements to index
2016-02-21 20:32:36 -05:00
Kenneth Reitz
75096a167c
transcendental meditation
2016-02-19 09:26:21 -05:00
Kenneth Reitz
b366ef039c
improved presentation of style guide
2016-02-19 09:11:09 -05:00
Kenneth Reitz
fc1e9b46a1
lyrics, er, docstrings
2016-02-19 09:08:29 -05:00
Kenneth Reitz
a7b5e3191d
pass go, yay $200
2016-02-19 08:51:36 -05:00
Kenneth Reitz
ca303cda0a
letters
2016-02-19 06:14:51 -05:00
Kenneth Reitz
1b1f4ac77d
cheat code
2016-02-19 06:08:38 -05:00
Kenneth Reitz
d8bf59dde4
namedrop
2016-02-19 05:45:55 -05:00
Kenneth Reitz
14a83339a7
words (docs)
2016-02-19 05:41:17 -05:00
Kenneth Reitz
b70136cf52
completely (docs)
2016-02-19 05:38:33 -05:00
Kenneth Reitz
f653b9ac58
sentences
2016-02-19 05:03:04 -05:00
Kenneth Reitz
1cf1699e37
what's docstrung
2016-02-19 04:56:25 -05:00
Kenneth Reitz
8dc5f68bc1
sp
2016-02-19 04:50:55 -05:00
Kenneth Reitz
29b191b5ea
</tone>
2016-02-19 04:48:47 -05:00
Kenneth Reitz
ee024423a5
more pleasant wording about strong opinion
2016-02-19 04:44:11 -05:00
Kenneth Reitz
90ddeca70d
updated style guide
2016-02-19 04:42:54 -05:00
Dmitry Dygalo
f123f89d32
Added unit tests for utils module
2016-02-19 10:32:23 +01:00
Kenneth Reitz
5d0ffd85ce
style guide
2016-02-19 04:30:06 -05:00
Kenneth Reitz
2cb052aa95
sp
2016-02-19 04:11:41 -05:00
Kenneth Reitz
886f92324a
contributing
2016-02-19 04:10:37 -05:00
Kenneth Reitz
d3bd9f30a6
contributing
2016-02-19 04:09:03 -05:00
Kenneth Reitz
688a00c386
improve contributions section
2016-02-19 03:47:12 -05:00
Kenneth Reitz
f63106005b
better codeblocks on mobile
2016-02-19 02:59:05 -05:00
Kenneth Reitz
f8af499700
improve further advanced.rst
2016-02-19 02:45:07 -05:00
Kenneth Reitz
f4445b3d4f
improve advanced.rst
2016-02-19 02:42:22 -05:00
Kenneth Reitz
bf8c8312dd
cleanup quickstart
2016-02-19 02:12:15 -05:00
Kenneth Reitz
f4f863f168
cleanup advanced.rst
...
single-quoted strings, yo!
2016-02-19 02:06:33 -05:00
Kenneth Reitz
f422ace07e
clean up codeblock styles
2016-02-19 01:52:59 -05:00
Kenneth Reitz
60b591eaac
docs: widen things up
2016-02-19 01:47:54 -05:00
Kenneth Reitz
dbefff6821
sphinx is now working properly on RTD (grrrR)
2016-02-19 01:23:31 -05:00
Kenneth Reitz
e98d71de13
docs cleanup
2016-02-19 00:56:14 -05:00
Kenneth Reitz
45992769b2
+sphinx
2016-02-18 23:58:47 -05:00
Kenneth Reitz
47fa07dcd8
update requirements workflow
2016-02-18 23:57:30 -05:00
Kenneth Reitz
f6252c2203
improved installation instructions
2016-02-18 20:59:01 -05:00
Kenneth Reitz
c1c393122d
change up marketing, update js/css
2016-02-18 20:41:04 -05:00
Kenneth Reitz
9f33a0cd3c
refactor API documentation
2016-02-18 20:41:04 -05:00
Kenneth Reitz
b0704b86de
years
2016-02-18 14:16:50 -05:00
Kenneth Reitz
057722af23
Update Makefile
2016-02-10 21:07:22 -05:00
Kenneth Reitz
169b7edcc3
Update README.rst
2016-02-07 11:51:23 -05:00
Kenneth Reitz
283491f8b6
Update Makefile
2016-02-07 10:58:30 -05:00
Kenneth Reitz
a3ded28c57
Update Makefile
2016-02-07 03:45:31 -05:00
Kenneth Reitz
2fa5fa6ac5
Update Makefile
2016-02-07 03:43:35 -05:00
Kenneth Reitz
476938ab8d
Delete setup.cfg
2016-02-07 03:43:15 -05:00
Kenneth Reitz
3a77b59df2
Update index.rst
2016-02-05 18:08:48 -05:00
Kenneth Reitz
00c0a80e6b
Update README.rst
2016-02-05 18:08:18 -05:00
Kenneth Reitz
087de5232c
v2.9.2 in history
2016-02-05 17:53:18 -05:00
Kenneth Reitz
fc512d8924
Don't use redirect_cache if allow_redirects=False
...
Fix for #2997
2016-02-05 17:51:09 -05:00
Kenneth Reitz
bbadf47a8f
syntax changes
2016-02-05 15:53:59 -05:00
Dmitry Dygalo
18b26d20f7
Added tests module.
2016-02-05 13:21:57 +01:00
Cory Benfield
6143b7eebc
Merge pull request #2994 from Stranger6667/fix-bad-test
...
Fixed test execution.
2016-02-03 20:53:08 +00:00
Dmitry Dygalo
1c5c6eeb7a
Fixed test execution.
2016-02-03 21:19:20 +01:00
Kenneth Reitz
7461371361
behold the power of requests
2016-02-03 06:11:36 -05:00
Kenneth Reitz
20290e3f2c
docs fix
2016-02-03 06:01:50 -05:00
Kenneth Reitz
87f04e2a32
docs cleanup
2016-02-03 05:59:49 -05:00
Kenneth Reitz
54d3b59f89
update
2016-02-03 05:50:45 -05:00
Kenneth Reitz
ba2b355168
Update README.rst
2016-02-03 05:33:23 -05:00
Kenneth Reitz
fbe104876e
Update README.rst
2016-02-03 05:14:01 -05:00
Kenneth Reitz
4d97b5b39a
Update README.rst
2016-02-03 05:13:34 -05:00
Kenneth Reitz
9057f7539b
Update README.rst
2016-02-03 05:09:45 -05:00
Kenneth Reitz
9c939ec026
Update README.rst
2016-02-03 05:09:25 -05:00
Kenneth Reitz
72d8293e08
Update README.rst
2016-02-03 05:07:47 -05:00
Kenneth Reitz
33d2ba961b
Update README.rst
2016-02-03 05:07:33 -05:00
Kenneth Reitz
ab22b3ea5f
Update README.rst
2016-02-03 05:07:08 -05:00
Kenneth Reitz
c003797319
Update README.rst
2016-02-03 05:05:48 -05:00
Kenneth Reitz
52054be612
Update README.rst
2016-02-03 05:04:23 -05:00
Kenneth Reitz
f997c0590f
Update README.rst
2016-02-03 05:02:06 -05:00
Kenneth Reitz
8c963b52ea
standard
2016-02-03 04:59:42 -05:00
Kenneth Reitz
4095b26f13
readme cleanup
2016-02-03 04:58:22 -05:00
Kenneth Reitz
2d0d291f5a
Merge branch 'master' of github.com:kennethreitz/requests
2016-02-03 04:54:07 -05:00
Kenneth Reitz
20b4bb7c36
revised readme
2016-02-03 04:52:50 -05:00
Kenneth Reitz
b1e97650f7
Update README.rst
2016-02-03 04:00:14 -05:00
Kenneth Reitz
6e35ec4c12
cleandup test_requests.py
2016-02-03 03:50:14 -05:00
Kenneth Reitz
90688c68ad
cleanup setup.py from #2991
2016-02-03 03:37:52 -05:00
Kenneth Reitz
458cb64e3d
cleanup tests from merge of #2991
2016-02-03 03:35:51 -05:00
Kenneth Reitz
5481db22b5
Merge pull request #2991 from Stranger6667/tests-refactoring
...
[WIP] Test suite refactoring
2016-02-03 03:26:27 -05:00
Dmitry Dygalo
6c2942b198
Initial work
2016-02-02 13:24:05 +01:00
Kenneth Reitz
b782e66462
happy belated new year
2016-02-02 02:33:53 -05:00
Cory Benfield
ed8cfd33e6
Merge pull request #2986 from untitaker/syntax-error
...
Fix syntax error
2016-01-30 19:14:20 +00:00
Markus Unterwaditzer
2140c98fa4
Fix syntax error
2016-01-30 19:59:58 +01:00
Cory Benfield
3f725bc226
Merge pull request #2985 from homeworkprod/patch-1
...
Fixed markup for/rendering of list in section "Custom Headers".
2016-01-30 14:00:14 +00:00
Jochen Kupperschmidt
0d25f8a00c
Fixed markup for/rendering of list in section "Custom Headers".
2016-01-30 14:45:07 +01:00
Kenneth Reitz
6195edc075
cleanup of auth __eq__
2016-01-29 22:18:07 -05:00
Kenneth Reitz
f7447d1871
Merge pull request #2958 from Malizor/master
...
Add equality functions for authentication handlers
2016-01-29 22:08:26 -05:00
Kenneth Reitz
3f8b1fb617
Merge pull request #2984 from rbcarson/httpadapter-maxretries-doc
...
Remove int type on HTTPAdapter's max_retries argument doc
2016-01-29 21:59:03 -05:00
Carson Lam
a02069ec9e
Remove int type on max_retries argument.
2016-01-29 15:30:22 -08:00
Ian Cordasco
645ac3087f
Merge pull request #2981 from Lukasa/unencrypted-keys
...
Warn about encrypted keys in the docs.
2016-01-27 10:19:26 -06:00
Cory Benfield
5887b136e3
Warn about encrypted keys in the docs.
2016-01-27 11:56:27 +00:00
Cory Benfield
00fa5f171c
Merge pull request #2976 from shoma/fix-debug-logging-doc
...
Fix api doc of debug logging for Python 3
2016-01-22 07:12:01 +00:00
shoma
75c7e5f1c3
Update example for Python 2/3 compatible.
2016-01-22 13:48:22 +09:00
shoma
ceb88ac077
Fix api doc of debug logging for Python 3
2016-01-22 12:47:18 +09:00
Cory Benfield
d76f304462
Merge pull request #2972 from munro/master
...
Return request & response with TooManyRedirects
2016-01-21 23:01:58 +00:00
Ryan Munro
56a1b55a42
Use httpbin to assert the final redirection URL
2016-01-20 11:24:03 -08:00
Ryan Munro
1f05867493
Add exception message to TooManyRedirects test
2016-01-20 11:06:39 -08:00
Ryan Munro
6a8a480d6c
Review changes to TooManyRedirect exception with response
2016-01-20 10:48:12 -08:00
Cory Benfield
8b92d9989b
Merge pull request #2973 from sigmavirus24/no-distutils-fallback
...
Stop falling back to distutils in setup.py
2016-01-20 13:54:58 +00:00
Ian Cordasco
5f2fef5bb5
Stop falling back to distutils in setup.py
...
distutils has been deprecated for years now and pip is refusing to install
projects using it. As such, *some* users are reporting problems installing
requests. Let's avoid this entirely by not falling back to distutils at all.
2016-01-20 07:51:42 -06:00
Ryan Munro
5a18066c45
Fix Python 3.x tests for TooManyRedirects API
2016-01-19 16:59:18 -08:00
Ryan Munro
e6f218f3f6
Return request & response with TooManyRedirects
2016-01-19 16:44:58 -08:00
Kenneth Reitz
6592dbc29b
github_banner
2016-01-15 18:57:40 -05:00
Kenneth Reitz
851d65efb7
remove hellobar
2016-01-15 18:55:26 -05:00
Kenneth Reitz
7250665297
Python 3.5
2016-01-15 18:45:17 -05:00
Kenneth Reitz
f9d5cbe5b5
add github banner
2016-01-15 18:44:56 -05:00
Kenneth Reitz
07d8c28a75
align rezzy the sea turtle
2016-01-15 18:41:30 -05:00
Kenneth Reitz
820d31d5e2
Merge pull request #2915 from onceuponatimeforever/alabaster_sphinx_theme
...
Switch to alabaster sphinx theme in the docs
2016-01-15 18:35:03 -05:00
Kenneth Reitz
fe0850f341
Update conf.py
2016-01-15 17:57:46 -05:00
Nicolas Delvaux
06df08e676
Add equality functions for authentication handlers
2016-01-04 17:01:06 +01:00
Cory Benfield
a3acd30bcc
Socks extra
2015-12-31 09:19:45 +00:00
Cory Benfield
e4d15c4649
Help @sigmavirus24 with code golf.
2015-12-30 16:45:51 +00:00
Cory Benfield
11b9b24ac9
Some code cleanups.
2015-12-30 14:37:53 +00:00
Cory Benfield
1c54014daf
Don't parse nonexistent URLs.
2015-12-30 10:48:29 +00:00
Cory Benfield
39ee5d46dc
Silence SOCKS dependency warning on import
2015-12-30 10:40:30 +00:00
Cory Benfield
08364c6739
Add support for SOCKS
2015-12-30 10:40:24 +00:00
Cory Benfield
396963ac7e
Temporary urllib3 patch
2015-12-30 10:40:12 +00:00
Cory Benfield
cd84b3ff94
Update to urllib3 1.14
2015-12-30 10:07:16 +00:00
Cory Benfield
cbb0830ee9
Merge pull request #2948 from vincentbernat/patch-1
...
advanced: use "client.*" to designate client certificate
2015-12-28 15:58:54 +00:00
Vincent Bernat
f14f30817e
advanced: use "client.*" to designate client certificate
...
Using "server.crt" is confusing as one may try to put the server certificate while this is really the client certificate that should be put here. Instead, use "client.cert", "client.key" and "client.pem".
2015-12-28 16:21:53 +01:00
Cory Benfield
a1c9b8439c
Merge pull request #2945 from ibnIrshad/fixdocs-2062
...
Docs: clarify the precedence of `auth=` over `netrc`
2015-12-21 18:49:52 +00:00
Isa Hassen
fcb8c8d33b
Docs: clarify the precedence of auth= over netrc
...
This closes #2062 by clarifying in the docs which auth
header takes precedence:
1st auth=
2nd .netrc
3rd headers=
This precedence order is already tested in test_requests.py,
in the test_basicauth_with_netrc method. Perhaps we should
add further tests for non-basic auth schemes.
2015-12-21 11:52:45 -05:00
Cory Benfield
1108058626
v2.9.1
2015-12-21 14:53:36 +00:00
Ian Cordasco
06a411c289
Merge pull request #2937 from Lukasa/release/2.9.1
...
Release 2.9.1
2015-12-21 08:51:21 -06:00
Ian Cordasco
728c318080
Merge pull request #2936 from Lukasa/netrc_with_bytes_url
...
Handle bytes and unicode URLs for netloc
2015-12-19 11:34:34 -06:00
Cory Benfield
6e0649d9f8
Push code review advice from @sigmavirus24
2015-12-19 08:44:21 +00:00
Cory Benfield
46b7f19857
Changelog for urllib3 update
2015-12-19 08:41:51 +00:00
Cory Benfield
834a9601c3
Update urllib3 to 1.13.1
2015-12-19 08:40:39 +00:00
Cory Benfield
b444f21b1f
Update changelog for 2.9.1
2015-12-18 09:54:42 +00:00
Cory Benfield
589f13ca9d
Handle bytes and unicode URLs for netloc
2015-12-18 09:22:23 +00:00
Cory Benfield
f7cb796241
Merge branch 'fix-1859'
2015-12-18 09:18:10 +00:00
Cory Benfield
96a068b58e
Merge branch 'master' into fix-1859
2015-12-18 09:14:13 +00:00
Ian Cordasco
b32c3bc10f
Merge pull request #2931 from Lukasa/uploading_bytes
...
Fix regression from #2844 regarding binary bodies.
2015-12-16 09:20:26 -06:00
Cory Benfield
fc8fa1aa26
Fix regression from #2844 regarding binary bodies.
2015-12-16 14:56:13 +00:00
Cory Benfield
5f7a3a74aa
v2.9.0
2015-12-15 15:29:27 +00:00
Ian Cordasco
046a0f215d
Merge pull request #2927 from Lukasa/release/2.9.0
...
Prepare 2.9.0 release.
2015-12-15 09:26:56 -06:00
Cory Benfield
424fe263d8
Suggested wording from @sigmavirus24
2015-12-15 15:20:26 +00:00
Cory Benfield
2f744b5010
Update 2.9.0 release log.
2015-12-15 14:59:14 +00:00
Cory Benfield
3c0f0b9ab5
Update urllib3 to 1.13
2015-12-15 14:47:20 +00:00
Ian Cordasco
3d33f30436
Merge pull request #2926 from bsamek/master
...
Refactor default params
2015-12-11 16:13:53 -06:00
Brian Samek
9aca57d4bf
Revert changes to params
...
This reverts commit 9a20afd6b5 .
Docstring changes were desirable, but changes to params were not.
2015-12-11 16:47:47 -05:00
Brian Samek
9a20afd6b5
Refactor default params
...
Specified the default argument for params that have a default in the docstring
so that the default is easier to see from the code. Modified the docstring in
api.py to match the docstring in sessions.py.
2015-12-11 13:32:09 -05:00
Cory Benfield
2d91365cba
Merge pull request #2923 from bsamek/verifyparam
...
Add hint to :param verify.
2015-12-09 16:33:09 +00:00
Brian Samek
3ad66349ea
Add hint to :param verify.
...
It is not clear that :param verify defaults to True. The way the verify
portion of the docstring is written it looks like it defaults to False, and
you have to pass in True if you'd like the SSL cert to be verified, but the
opposite is the case.
2015-12-09 11:21:21 -05:00
Braulio Valdivielso Martínez
534ee814fc
Tested timeouts in text_response_server requests retrieval
2015-12-08 20:54:12 +01:00
Braulio Valdivielso Martínez
3eeea3771b
Added a way for TestServer request handlers to store data for later retrieval by the main thread (actual requests, for example)
2015-12-08 20:40:58 +01:00
Braulio Valdivielso Martínez
578b032555
Tested TestServer multiple request handling
2015-12-08 16:37:03 +01:00
Braulio Valdivielso Martínez
4a41c591f8
Tested text_response_server
2015-12-08 16:23:02 +01:00
Braulio Valdivielso Martínez
3b2a489e13
Added text_response_server classmethod to TestServer and updated basic_response_server to use it
2015-12-08 16:12:40 +01:00
Ian Cordasco
e48fea7fb3
Merge pull request #2917 from matt-jordan/qop
...
requests/auth: Handle an empty 'qop' attribute in an Authenticate challenge
2015-12-05 22:48:52 -06:00
Matt Jordan
5c19d3e07b
requests/auth: Handle an empty 'qop' attribute in a Authenticate challenge
...
Some malfunctioning HTTP servers may return a qop directive with no token, as
opposed to correctly omitting the qop directive completely. For example:
header: WWW-Authenticate: Digest realm="foobar_api_auth", qop="",
nonce="a12059eaaad0b86ece8f62f04cbafed6", algorithm="MD5",
stale="false"
Prior to this patch, requests would respond with a 'None' Authorization header.
While the server is certainly incorrect, this patch updates requests to be
more tolerant to this kind of shenaniganry. If we receive an empty string for
the value of the qop attribute, we instead treat that as if the qop attribute
was simply not provided.
Closes #2916
2015-12-05 16:14:52 -06:00
Susan Tan
4d5e534467
Remove kenneth's sphinx themes from docs directory
2015-12-04 04:06:17 -08:00
Susan Tan
6e903de068
Switch to alabaster instead of kr sphinx theme for requests docs
...
Add in the pre-existing ad tracker Javascript tags from kr sphinx theme.
2015-12-04 04:06:14 -08:00
Ian Cordasco
40ce36671c
Merge pull request #2896 from BraulioVM/master
...
[WIP] Set 'Transfer-Encoding: chunked' if data is a file with length 0
2015-12-02 08:35:41 -06:00
Braulio Valdivielso Martínez
5ecf789a6f
Avoid server from blocking if an exception is found in the main thread
2015-12-02 02:02:09 +01:00
Braulio Valdivielso Martínez
aac32ac56e
Updated tests relying on the old testserver and added basic test for chunked uploads
2015-12-02 01:53:39 +01:00
Braulio Valdivielso Martínez
6551c290fd
Allow main thread to block testserver before closing
2015-12-02 01:52:32 +01:00
Cory Benfield
dfa97addcc
Merge pull request #2909 from jwilk/spelling
...
Fix typos
2015-12-01 11:28:06 +00:00
Jakub Wilk
23d9b077d8
Fix typos
2015-12-01 12:24:56 +01:00
Cory Benfield
6cfe6e775f
Merge pull request #2902 from jparise/jparise-authors
...
Include a link to my GitHub profile.
2015-11-26 14:57:10 +00:00
Jon Parise
27f5a15364
Include a link to my GitHub profile.
2015-11-26 09:34:01 -05:00
Braulio Valdivielso Martínez
6adabacd81
Close socket properly in test_server_closes
2015-11-26 01:11:18 +01:00
Braulio Valdivielso Martínez
b4b4661f46
Implemented test to verify that the context manager exits after the server is closed
2015-11-26 01:05:16 +01:00
Braulio Valdivielso Martínez
f7917c305a
Make server set stop_event right after closing its socket
2015-11-26 01:04:27 +01:00
Braulio Valdivielso Martínez
11ad502b80
Added basic_response_server classmethod and tested it
2015-11-26 00:29:53 +01:00
Braulio Valdivielso Martínez
2ad3f07982
Make exceptions in the testserver.Server thread not block the main thread
2015-11-25 14:41:03 +01:00
Braulio Valdivielso Martínez
ab0f063d85
Made TestServer.Server listen on an arbitrary open port by default
2015-11-25 14:15:51 +01:00
Braulio Valdivielso Martínez
47e96c4e57
Renamed dummyserver to testserver
2015-11-25 14:05:21 +01:00
Braulio Valdivielso Martínez
b806ce15ba
Make strings in DummyServer test bytestrings
2015-11-25 13:53:54 +01:00
Braulio Valdivielso Martínez
9a2cc99b06
Put docstring inside Server class
2015-11-25 13:52:53 +01:00
Ian Cordasco
c1f51fd100
Merge pull request #2898 from lndbrg/patch-1
...
Update adapters.py
2015-11-24 20:44:51 -06:00
Olle Lundberg
68db4132e3
Update adapters.py
...
Remove duplicate word.
2015-11-25 02:02:41 +01:00
Braulio Valdivielso Martínez
99825de025
Implemented dummy socket server interface and added one test
2015-11-24 23:08:38 +01:00
Braulio Valdivielso Martínez
4c82dbab6f
Fix 'Transfer-Encoding: chunked' change
2015-11-24 13:42:13 +01:00
Braulio Valdivielso Martínez
6f6b2fd1d5
Set 'Transfer-Encoding: chunked' if data file length equals 0
2015-11-23 20:52:06 +01:00
Ian Cordasco
6506dc8f66
Merge pull request #2895 from Lukasa/contributing
...
Add basic CONTRIBUTING.md file
2015-11-20 08:14:59 -06:00
Cory Benfield
085a8768a2
Where did you get Requests?
2015-11-20 13:59:59 +00:00
Cory Benfield
e5d6630888
Add basic CONTRIBUTING.md file
2015-11-20 11:29:35 +00:00
Cory Benfield
6c47a0c5e9
Merge pull request #2891 from lorenzph/pyopenssl-min-version
...
Specify minimum pyOpenSSL version
2015-11-19 19:11:34 +00:00
Philip Lorenz
6597b53834
Specify minimum pyOpenSSL version
...
urllib3 requires "set_tlsext_host_name" which was only added in
pyOpenSSL 0.13. As some distributions (e.g. Ubuntu 12.04) still ship an
older version enforce the correct minimum version during installation.
2015-11-19 20:05:03 +01:00
Cory Benfield
2128321b85
Merge pull request #2878 from kiddick/master
...
Remove redundant json import.
2015-11-12 13:56:55 +00:00
unknown
de2a5f4332
Remove redundant json import.
2015-11-12 16:54:47 +03:00
Cory Benfield
6d0017ee6a
Merge pull request #2873 from sigmavirus24/bug/2872
...
Fix super_len for partially read files
2015-11-11 07:52:47 +00:00
Ian Cordasco
5397ef71b3
Fix super_len for partially read files
...
Closes #2872
2015-11-10 21:22:24 -06:00
Ian Cordasco
0a1aaca024
Add failing test for #2872
2015-11-10 21:15:29 -06:00
Cory Benfield
4e89ba7077
Merge pull request #2869 from vienno/unnest-cookie-loop
...
unnest deep loop
2015-11-10 13:21:01 +00:00
vienno
f835843f87
error in github bio link
2015-11-10 14:07:55 +01:00
vienno
cf9da5b52e
add myself to authors
2015-11-10 14:05:24 +01:00
vienno
d849d6e907
Replace 'if x' with 'if x is not None' in cookie loop
2015-11-10 13:58:09 +01:00
vienno
89178ebcdc
Complete unnesting of if statements in cookie loop
2015-11-10 13:47:40 +01:00
vienno
a25a641fb4
unnest deep loop
2015-11-10 12:36:36 +01:00
Ian Cordasco
35170e180e
Merge pull request #2858 from Lukasa/support_ca_cert_directories
...
Add support for a directory of CAs
2015-11-07 15:39:41 -06:00
Ian Cordasco
7d5d067e9c
Merge pull request #2861 from Lukasa/broken_chunked_encoding
...
Fix breakage introduced by 8f591682
2015-11-07 11:50:50 -06:00
Cory Benfield
c1c164ba80
Removed test of chunked encoding
2015-11-07 14:08:15 +00:00
Cory Benfield
02576ae7e7
Merge pull request #2864 from aartur/master
...
Assure session is closed on exception.
2015-11-06 21:02:30 +00:00
Artur Siekielski
1ced0040bd
Assure session is closed on exception.
2015-11-06 21:54:43 +01:00
Cory Benfield
e67cd15bc8
Fix breakage introduced by 8f591682
2015-11-05 18:54:40 +00:00
Ian Cordasco
f7e0494130
Merge pull request #2859 from kennethreitz/pytest-httpbin
...
Move test suite offline using pytest-httpbin
2015-11-05 09:37:22 -06:00
Cory Benfield
43b90d7f72
Remove remaining test that contacts external server.
2015-11-05 13:49:35 +00:00
Cory Benfield
7c91e27d01
Remove threaded test
2015-11-05 13:49:35 +00:00
Cory Benfield
15cf19431a
Pin httpbin version.
2015-11-05 13:49:35 +00:00
Cory Benfield
be564e500c
Fixup assertion broken in rewrite to py.test
...
Broke it in 0364a8ca7fc67b89f3e54d50fa3936d65e979b96
2015-11-05 13:49:35 +00:00
Cory Benfield
70d7b134c8
Stop being so specific when testing error strings.
2015-11-05 13:49:35 +00:00
Cory Benfield
a8fdba15b1
Use py.test style assertions
2015-11-05 13:49:35 +00:00
Cory Benfield
3bc189b0af
Inject and use httpbin fixture everywhere.
2015-11-05 13:49:35 +00:00
Cory Benfield
9b63f9cd37
Make sure we unapply this patch.
2015-11-05 13:48:42 +00:00
Cory Benfield
f52287d999
Stop using HTTP and HTTPS schemes in one test.
2015-11-05 13:48:42 +00:00
Cory Benfield
a56db9ecc4
Stop inheriting from unittest.TestCase
2015-11-05 13:48:42 +00:00
Cory Benfield
e5053cd322
Define some httpbin fixtures.
2015-11-05 13:48:42 +00:00
Cory Benfield
de53523bef
Add pytest-httpbin requirement.
2015-11-05 13:48:42 +00:00
Cory Benfield
0352ec0bd3
Add support for a directory of CAs
2015-11-05 13:21:21 +00:00
Cory Benfield
4dffe5efaa
Update trove classifiers.
2015-11-05 10:38:25 +00:00
Ian Cordasco
8f460faa31
Merge pull request #2849 from annp89/master
...
Add 511 Network Authentication Required status code
2015-10-26 10:58:01 -05:00
Ann Paul
7dd94941c8
Add 511 Network Authentication Required status code to dict of status codes
2015-10-26 08:42:37 -07:00
Ian Cordasco
d290a9b4c6
Merge pull request #2825 from Lukasa/universal_newlines
...
Add warnings about text/binary mode files.
2015-10-24 09:37:16 -05:00
Cory Benfield
f1fd11e54f
Emit warnings when using text mode files.
2015-10-24 09:29:23 +01:00
Cory Benfield
1dff6c9153
Merge pull request #2845 from gagoman/fix-2844
...
Fix issue #2844
2015-10-23 13:24:36 +01:00
Alex Khomchenko
edc68a0ac8
fix issue #2844
2015-10-23 15:22:36 +03:00
Cory Benfield
13ea7394cc
Merge pull request #2831 from shagunsodhani/proposed-fix-for-#2826
...
added fix for #2826
2015-10-16 13:21:45 +01:00
shagun Sodhani
b675377dc2
added fix for #2826
2015-10-16 17:01:36 +05:30
Cory Benfield
58b20d671c
Merge pull request #2829 from dblia/getresponse-buffering
...
Use buffering for HTTP responses on chunked requests
2015-10-15 15:37:06 +01:00
Dimitris Bliablias
8f591682e6
Use buffering for HTTP responses on chunked requests
...
For non-chunked requests, the request is performed using the 'urlopen'
method that underlying uses buffering for the HTTP responses (for Python
2.7+ versions). For chunked requests though, the request is made via a
different code path and so the 'getresponse' method is called without
using buffering. So, the response is consumed per single byte via a
recv() call on the underlying socket.
This patch, fixes that issue to mimic the non-chucked request behavior.
2015-10-15 16:58:07 +03:00
Cory Benfield
6c2d09dc2f
Merge pull request #2827 from daniel-mueller/master
...
Fixed usage example in sessions.py
2015-10-15 14:01:13 +01:00
Daniel Müller
d8f28f4bca
Fixed usage example in sessions.py
2015-10-15 14:32:35 +02:00
Cory Benfield
7c55446b7e
Add warnings about text/binary mode files.
2015-10-14 13:23:19 +01:00
Cory Benfield
18a6b60110
v2.8.1
2015-10-13 13:55:09 +01:00
Cory Benfield
14a555ac71
Merge pull request #2821 from Lukasa/issue/2818
...
Allow non-native-string method names.
2015-10-12 15:50:53 +01:00
Cory Benfield
2df3c7c75d
Move to_native_string for methods to prepare()
2015-10-12 10:50:37 +01:00
Cory Benfield
b071c49556
Failing test for issue #2818
2015-10-12 10:48:57 +01:00
Ian Cordasco
978a89d5a3
Merge pull request #2810 from Lukasa/certupdate
...
Update requests certificate bundle.
2015-10-08 11:12:09 -05:00
Ian Cordasco
931fd0eece
Merge pull request #2814 from Lukasa/issue/2813
...
Use general null check for JSON
2015-10-08 10:13:08 -05:00
Cory Benfield
3948a9562d
Use general null check for JSON
2015-10-08 14:53:35 +01:00
Ian Cordasco
2da8a604d3
Merge pull request #2812 from Lukasa/issue/2811
...
Don't treat NewConnectionErrors as timeouts.
2015-10-08 08:10:01 -05:00
Cory Benfield
f7be4e5f28
NewConnectionErrors aren't timeouts.
...
This is a compatibility change, and should be removed in 2.8.0
2015-10-08 14:05:17 +01:00
Cory Benfield
23051979f4
Update requests certificate bundle.
...
This brings it up-to-date with the certifi 2015.9.6.2 release,
specifically its `weak.pem` bundle.
2015-10-08 08:09:53 +01:00
Ian Cordasco
e499b354c4
Merge pull request #2804 from Lukasa/final-2.8.0
...
Final 2.8.0
2015-10-05 11:21:40 -05:00
Cory Benfield
ba7d09354a
Changelog for #2785 .
2015-10-05 15:57:05 +01:00
Ian Cordasco
96e9490100
Merge pull request #2803 from asieira/master
...
Update default user-agent (#2785 )
2015-10-05 09:54:17 -05:00
Cory Benfield
397f10bac7
Increment version numbers.
2015-10-05 15:41:04 +01:00
Cory Benfield
8dcd9f12de
Prepare changelog for 2.8.0
2015-10-05 15:38:31 +01:00
Cory Benfield
09bd3232dd
Update urllib3 to 1.12
2015-10-05 15:38:24 +01:00
Alexandre Sieira
4e44c2ab64
Removing change to .gitignore ( #2785 )
2015-10-05 11:36:21 -03:00
Cory Benfield
d996a95cf7
Merge pull request #2721 from Lukasa/no_proxy_fix
...
Ignore empty fields in no_proxy env var
2015-10-05 15:28:49 +01:00
Cory Benfield
f6afa71281
Merge pull request #2763 from ravipra/json_supersedes
...
Fixed issue #2756
2015-10-05 15:27:53 +01:00
Alexandre Sieira
2a635ba87d
Update default user-agent ( #2785 )
...
* Updated default user agent so that it includes only the requests
version;
* Added PyCharm / IDEA project directory to `.gitignore`.
2015-10-05 11:18:23 -03:00
Cory Benfield
8963e1567b
Merge pull request #2678 from sigmavirus24/proposed/2.8.0
...
Proposed 2.8.0
2015-10-05 15:09:41 +01:00
Cory Benfield
f7a43e2664
Merge branch 'hosamaly-master'
2015-10-03 18:33:38 +01:00
Cory Benfield
139418475c
Remove reference to ok.
2015-10-03 18:33:25 +01:00
Cory Benfield
a89d5c003a
Revert "Clarify the contract of Response#ok, and avoid exceptions in it"
...
This reverts commit 086e19d8e1 .
2015-10-03 18:32:28 +01:00
Hosam Aly
086e19d8e1
Clarify the contract of Response#ok, and avoid exceptions in it
2015-10-03 16:34:36 +01:00
Hosam Aly
443d07e0d3
Fix #2799 : Update Quickstart documentation of Response.json()
2015-10-03 00:01:58 +01:00
Cory Benfield
3c6f89b8f4
Merge pull request #2798 from Doctor-love/patch-1
...
Clarified description for option "trust_env"
2015-10-02 13:48:56 +01:00
Doctor-love
63b3b9be55
Clarified description for option "trust_env"
2015-10-02 14:47:50 +02:00
Cory Benfield
610fbd062f
Merge pull request #2797 from sumitbinnani/DocumentationCorrection
...
Updated Documentation for Issue #2756
2015-10-02 10:08:23 +01:00
sumitbinnani
bf38d5bf52
Update models.py
...
Updated Documentation:
```data``` as well as ```files``` supersedes json
2015-10-02 13:50:52 +05:30
Cory Benfield
aead8c347c
Merge pull request #2792 from Lukasa/update-test-dependencies
...
Update test dependencies
2015-10-01 10:27:25 +01:00
Cory Benfield
79675a0638
Update test dependencies
2015-10-01 10:26:14 +01:00
Cory Benfield
21bf8cd9bf
Merge pull request #2789 from sigmavirus24/remove-self
...
Remove offer to pair with others from README
2015-09-30 14:29:27 +01:00
Ian Cordasco
76a0d3fcb9
Remove offer to pair with others from README
2015-09-27 21:48:42 -05:00
Kenneth Reitz
b8df8911c3
60m times
2015-09-24 13:40:49 -04:00
Cory Benfield
46ff1a9a54
Merge pull request #2775 from ueg1990/remove_unused_module
...
Removed unused module from hooks.py
2015-09-13 13:26:05 +01:00
ueg1990
649aeaa489
Removed unused module from hooks.py
2015-09-13 06:36:39 -04:00
Kenneth Reitz
9d69c7845d
Merge pull request #2774 from ueg1990/pythonic_hooks
...
Some pythonic suggestions for requests/hooks.py
2015-09-13 01:05:34 -04:00
ueg1990
c5a41269d9
Some pythonic suggestions for requests/hooks.py
2015-09-12 20:43:25 -04:00
Cory Benfield
7c74050d66
Merge pull request #2772 from jimbrowne/master
...
Move CA Certificates documentation next to SSL Cert Verification
2015-09-11 20:22:13 +01:00
Jim Browne
2cee3bb57a
docs: move CA Certificates next to SSL Cert Verification
2015-09-11 10:50:23 -07:00
Cory Benfield
17a9e6da9e
Merge pull request #2769 from jwilk/spelling
...
docs: Fix typos
2015-09-10 22:14:11 +01:00
Jakub Wilk
e9c94e0f06
docs: Fix typos
2015-09-10 22:45:59 +02:00
Ian Cordasco
ebc38f7825
Merge pull request #2767 from ueg1990/master
...
Remove redundant function call list when iterating over status codes
2015-09-10 12:38:25 -05:00
Usman Ehtesham Gul
96e8e8b92f
Remove redundant function call list when iterating over status codes
2015-09-10 12:59:39 -04:00
Ravi Prakash Putchala
1f48a4c9ea
Removed the other 'encode' as well, in the test case.
2015-09-09 14:43:22 +05:30
Ravi Prakash Putchala
7a0cd16c1a
changed the null check for 'data' parameter to be more explicit.
...
removed the superfluous encode from the testcase.
2015-09-09 13:04:24 +05:30
Ravi Prakash Putchala
37037607b5
Fixed issue #2756
...
Now 'json' parameter will be used to prepare body only if the 'data'
parameter is not present
2015-09-08 14:45:46 +05:30
Cory Benfield
56ecdebcc5
Merge pull request #2741 from jasongrout/per-host-proxy
...
Implement per-host proxies
2015-09-06 15:02:40 +12:00
Cory Benfield
14ee84b5fd
Merge pull request #2758 from mhils/patch-1
...
Fix RFC Quotation
2015-09-06 09:01:39 +12:00
Maximilian Hils
f4eaefa63e
fix rfc quotation
2015-09-05 12:07:49 +02:00
Jason Grout
704a922fc2
Clarify documentation for per-host proxies
...
Make sure it's clear that a per-host proxy matches a scheme and exact
hostname.
2015-09-04 22:55:38 +00:00
Ian Cordasco
719c76cd9d
Merge pull request #2753 from Lukasa/ssldocs
...
Document the string form of the verify parameter.
2015-08-31 20:34:11 -05:00
Cory Benfield
7c958ee28e
Document the string form of the verify parameter.
2015-08-31 10:26:06 +01:00
Ian Cordasco
bf9e66364f
Merge pull request #2751 from carlosvargas/master
...
Add link to ES translation.
2015-08-29 07:21:07 -05:00
Carlos Vargas
00d8c24fe1
Add link to ES translation.
2015-08-28 19:12:10 -07:00
Jason Grout
4c6540898c
don't lowercase a url before urlparsing it
...
urlparse automatically lowercases the scheme and hostname
2015-08-28 20:20:07 +00:00
Jason Grout
f3d4480a33
Use url parsing to check the scheme
2015-08-28 20:06:45 +00:00
Jason Grout
fb496e4e86
Add test for per-host proxy selection
2015-08-27 18:21:04 +00:00
Jason Grout
c80121df91
Fix documentation for the proxies dictionary
2015-08-27 18:21:04 +00:00
Jason Grout
500f15da1f
Factor out the proxy selection code
2015-08-27 18:21:04 +00:00
Jason Grout
2c8721540a
Fix documentation for proxies in the Session class
2015-08-27 17:26:45 +00:00
Jason Grout
d7a3aa6188
Fix another place the proxy-selecting logic is used.
2015-08-27 17:26:14 +00:00
Ian Cordasco
bf436ea0a4
Merge pull request #2746 from csparpa/master
...
Add link to IT translation
2015-08-25 19:38:04 -05:00
csparpa
a2e828d4d7
Add link to IT translation
2015-08-25 22:09:10 +02:00
Jason Grout
22075f02d0
Clarify the per-host proxy code
2015-08-25 18:21:20 +00:00
Jason Grout
618514231b
Reword documentation for per-host proxies
2015-08-25 15:11:27 +00:00
Jason Grout
56844d1287
Add documentation for host-specific proxies
2015-08-25 14:53:52 +00:00
Cory Benfield
e57925223f
Merge pull request #2743 from sigmavirus24/fix-py26-tests
...
Fix tests on python 2.6
2015-08-25 08:27:20 +01:00
Ian Cordasco
66567e037b
Fix tests on python 2.6
2015-08-24 20:47:22 -05:00
Ian Cordasco
767cc9d2dc
Merge pull request #2742 from everett-toews/data-arg
...
Include file-like object in data arg description
2015-08-24 20:44:45 -05:00
Everett Toews
8b03cd96cb
Include file-like object in data arg description
2015-08-24 18:28:41 -05:00
Jason Grout
48fe34447d
Implement per-host proxies
...
This change allows the proxy dict to be have entries of the form
{'<scheme>://<hostname>': '<proxy>'}. Host-specific proxies will be used in
preference to the scheme-specific proxies (i.e., proxy dict entries with keys
like 'http' or 'https').
Fixes #2722
2015-08-24 21:16:35 +00:00
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
Cory Benfield
b6127ca9ca
Ignore empty fields in no_proxy
2015-08-13 15:04:49 -04: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
Kenneth Reitz
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
Cory Benfield
5d7392f140
Merge branch 'fix-merge-setting' of https://github.com/ak1r4/requests into proposed/2.8.0
2015-08-06 19:06:23 -04: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
Ian Cordasco
873f834fc9
Merge remote-tracking branch 'upstream/master' into proposed/2.8.0
2015-07-18 10:57:34 -05:00
Ian Cordasco
31817b66c6
Fix pool connection closed test
2015-07-18 10:57:28 -05: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
Ian Cordasco
d7026bfb2a
Upgrade urllib3 to 7fcfcd08a6a2150f93144d111904d1e4fb65c909
2015-07-18 10:43:26 -05:00
Cory Benfield
2b5cdc56f3
Expand on chunk length
2015-07-18 16:41:29 +01:00
Ian Cordasco
77d7e53c12
Merge branch 'auth-digest-multi-thread' of https://github.com/exvito/requests into proposed/2.8.0
2015-07-18 10:38:58 -05:00
Ian Cordasco
1e640c8456
Merge branch 'debian-imports' of https://github.com/untitaker/requests into proposed/2.8.0
2015-07-18 10:38:30 -05:00
Susan Tan
5ec7576f23
Catch and wrap ClosedPoolError
...
Partially resolves #1572 : "urllib3 exceptions passing through requests
API".
Inspired from Lukasa's 2605be11d82d42438ac7c3993810c955bde74cef.
2015-07-17 01:30:51 -07: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
colin
8d0889b91b
fix contextlib.closing bug for sessions where content is not consumed (issue #2593 )
2015-05-24 09:59:35 -04:00
Cory Benfield
3c850b3339
Merge pull request #2608 from radarhere/patch-1
...
Fixed typos
2015-05-21 09:16:24 +01:00
Andrew Murray
d249c0a9c6
Fixed typo in contributing.rst
2015-05-21 10:31:42 +10:00
Andrew Murray
d866d8a44d
Fixed typos in HISTORY.rst
2015-05-21 10:25:42 +10:00
Ian Cordasco
ab1f493c8b
Merge branch 'max-age-pr'
2015-05-15 10:13:42 -05:00
latyas(懒)
dd0f164f8e
Update cookies.py
2015-05-15 10:13:06 -05:00
Cory Benfield
059e105f8f
Use complexjson everywhere
2015-05-15 10:13:06 -05:00
Cory Benfield
395a3e8885
Partially revert ab84f9be57
2015-05-15 10:13:06 -05:00
latyas(懒)
d3bd3630ee
max-age may be not digits
2015-05-15 10:16:35 +08:00
Ian Cordasco
639f8347a3
Merge pull request #2598 from Lukasa/not-poor
...
Partially revert ab84f9be57
2015-05-14 17:32:19 -05:00
Cory Benfield
553907aa6b
Use complexjson everywhere
2015-05-14 22:30:24 +01:00
Cory Benfield
fb6dade63d
Partially revert ab84f9be57
2015-05-14 20:58:20 +01:00
latyas(懒)
cda95d3cde
morsel['max-age'] may be a str.
...
Example:
here are Set-Cookie list:
```python
sclst = ['dwac_bcIBMiaagZmkYaaadeYtg11eVR=j9jHdmPjUhgDOhyH9f89X4lQgehEmflVyeA%3D|dw-only|||CNY|false|Asia%2FShanghai|true; Path=/',
'sid=j9jHdmPjUhgDOhyH9f89X4lQgehEmflVyeA; Path=/',
'geoLocation=CN; Path=/',
'dwpersonalization_fae107a9dd0fc32ed99532ec1977f31f=bc8sEiaagZqRsaaadk8XoNTL8h20150506; Expires=Sun, 14-Jun-2015 10:37:07 GMT; Path=/',
'dwanonymous_fae107a9dd0fc32ed99532ec1977f31f=abjpA8kng31LjPp8ZEERDT4XVg; Version=1; Comment="Demandware anonymous cookie for site Sites-abercrombie_cn-Site"; Max-Age=15552000; Expires=Tue, 10-Nov-2015 10:37:07 GMT; Path=/',
'myStore=91156; Path=/',
'AF_PREF=en_CN; Path=/',
'dwsid=MiHJy3KYZKDcN0lZg4HS1zSpj1VV4s_tFu39ar0KXNpAx9aX8X2LlvZQ9m5fOOknb6QXtmmukHcOjmivYf31hg==; path=/; HttpOnly']
```
```python
for sc in sclst:
C = Cookie.SimpleCookie(sc)
for morsel in C.values():
cookie = requests.cookies.morsel_to_cookie(morsel)
cookiejar.set_cookie(cookie)
```
Then, exception occured
```shell
File "/Library/Python/2.7/site-packages/requests/cookies.py", line 402, in morsel_to_cookie
expires = time.time() + morsel['max-age']
TypeError: unsupported operand type(s) for +: 'float' and 'str'
```
As Cookie.SimpleCookie is in STL, should `morsel_to_cookie` check the type of `max-age`? On the other hand, if **max-age** can not be converted to float, it's illegal obviously.
2015-05-14 18:44:33 +08:00
Cory Benfield
c3c4c96a95
Merge pull request #2601 from sahutd/issue2599
...
Auth handler calls close instead of raw.close_conn
2015-05-14 07:15:10 +01:00
Saimadhav Heblikar
86aff09103
Auth handler calls close instead of raw.close_conn
2015-05-14 11:42:07 +05:30
Cory Benfield
4505f71829
Merge pull request #2597 from t-8ch/defensive_programming
...
do not blindly catch all AttributeErrors
2015-05-13 07:16:44 +01:00
Thomas Weißschuh
c6c8d649af
do not blindly catch all AttributeErrors
...
see shazow/urllib3#618
2015-05-12 23:21:03 +00:00
Kenneth Reitz
868625532d
Merge remote-tracking branch 'origin/master'
2015-05-06 12:42:47 -07:00
Kenneth Reitz
74609c5c8f
cleanup styles a bit
2015-05-06 12:42:43 -07:00
Kenneth Reitz
ab84f9be57
removed poor code
2015-05-06 12:36:26 -07:00
Kenneth Reitz
3475399a47
fix captilization
2015-05-06 12:35:14 -07:00
Ian Cordasco
a6937534ce
Merge pull request #2588 from gutworth/patch-1
...
use reST link syntax
2015-05-03 21:18:37 -05:00
Benjamin Peterson
ba7975fd16
use reST link syntax
2015-05-03 20:34:09 -04:00
Cory Benfield
b7bd297340
v2.7.0
2015-05-03 15:47:20 +01:00
Cory Benfield
ee7389da98
Synchronize urllib3 to 1.10.4
2015-05-03 15:16:07 +01:00
Cory Benfield
6acca21bae
Merge pull request #2582 from mhavard999/master
...
Make docstring of api.get more clear
2015-05-01 06:59:46 +01:00
Matt Havard
6e9ebc06d1
Make docstring of api.get more clear
2015-04-30 23:54:34 -04:00
Kenneth Reitz
ff71b25efc
release and version history
2015-04-25 17:50:03 -04:00
Kenneth Reitz
c8004e3dd7
Merge remote-tracking branch 'origin/master'
2015-04-25 17:49:14 -04:00
Kenneth Reitz
e859204554
new community
2015-04-25 17:49:12 -04:00
Kenneth Reitz
5d722bd0f5
Merge pull request #2570 from sigmavirus24/release-process-docs
...
Add new release process to docs
2015-04-25 17:46:31 -04:00
Kenneth Reitz
1f85ce8670
be cordial
2015-04-25 17:44:25 -04:00
Kenneth Reitz
51938de6b7
improve contributing section
2015-04-25 17:42:48 -04:00
Kenneth Reitz
535c51f548
style of contributing.rst
2015-04-25 17:36:14 -04:00
Kenneth Reitz
09023f5894
Merge pull request #2572 from Lukasa/contribution
...
Add basic contributing guide
2015-04-25 17:34:45 -04:00
Cory Benfield
9dba203952
Add basic contributing guide
2015-04-25 21:39:00 +01:00
Ian Cordasco
f74fc486be
Update version number examples. Strip whitespace
...
Also I've included a bit more verbiage around why a major release
would happen and some reassurances that they will be rare.
2015-04-25 09:29:40 -05:00
Ian Cordasco
773e730d80
Add new release process to docs
...
Closes #2569
2015-04-24 19:28:23 -05:00
Markus Unterwaditzer
93216afbaf
Add information about the package stub
2015-04-24 15:29:19 +02:00
Markus Unterwaditzer
b7fc3a1250
Import aliases for Debian
...
Alternative to #2375
2015-04-24 12:05:19 +02:00
Ian Cordasco
ca66267d2c
Add release notes for 2.6.2
...
Closes #2561
2015-04-23 11:29:10 -05:00
Ian Cordasco
73b9b6906d
Update urllib3 to 7b82da0fa3a13514d11a863e379e7541d0ec46ef
2015-04-23 11:27:42 -05:00
Ian Cordasco
3880cf1255
Merge pull request #2556 from sigmavirus24/release/2.6.1
...
Prepare v2.6.1
2015-04-22 17:12:26 -05:00
Ian Cordasco
ae7c28eb8e
Update notes for 2.6.1
2015-04-22 16:52:40 -05:00
Ian Cordasco
3e3fc7683c
Remove VendorAlias meta_path hook
2015-04-22 16:26:14 -05:00
Cory Benfield
3d339ed7e6
Update urllib3 to 0b744993
...
(cherry picked from commit df63ee3e13672caa6b3256c6579fa85caefb2729)
2015-04-22 13:16:12 -05:00
Ian Cordasco
cfb9e66b04
Update history and version number for v2.6.1
2015-04-22 09:10:48 -05:00
Ian Cordasco
5fcd843eb2
Update urllib3 to 10b7a0fefa6596f47a9a6afc80f1f4d1ae950b66
2015-04-22 08:17:39 -05:00
Kenneth Reitz
1f0e5775f2
add betamax
2015-04-21 17:18:04 -04:00
Kenneth Reitz
4cfc5bcd96
add @sigmavirus42's blog post
2015-04-21 17:15:51 -04:00
Cory Benfield
b906c04a6f
Merge pull request #2553 from sigmavirus24/bug/2552
...
Simplify PreparedRequest.prepare API
2015-04-21 06:59:55 +01:00
Ian Cordasco
35045e851a
Simplify PreparedRequest.prepare API
...
Do not require that hooks be passed as an empty list to
PreparedRequest.prepare. In the event hooks is None in prepare or
prepare_hooks, use an empty list as a default.
Related to #2552
2015-04-20 20:13:58 -05:00
Kenneth Reitz
16eeee1436
and extensions
2015-04-17 08:52:47 -04:00
Kenneth Reitz
576e18a796
recommended packages and extensions
2015-04-17 08:51:02 -04:00
Kenneth Reitz
d0e64d32ba
Merge pull request #2550 from Lukasa/recommended
...
Recommended packages.
2015-04-17 08:44:38 -04:00
Cory Benfield
a0d9e0bc57
Merge pull request #2504 from pvanderlinden/bug/2503-resolve-redirect-pass-all-arguments
...
fix resolve redirect to pass all original arguments
2015-04-16 06:57:56 +01:00
Kenneth Reitz
5a799dd0f5
Merge pull request #2546 from Lukasa/crystals
...
Keepers of the Three Crystals.
2015-04-14 14:03:08 -04:00
Cory Benfield
8cf5e67041
Recommended packages.
2015-04-13 11:39:23 -04:00
Ian Cordasco
a0632d8df0
Minor formatting change
2015-04-10 22:03:26 -05:00
Ian Cordasco
5478dd6271
Merge pull request #2547 from sh1buy/bug_2540
...
Fix MisssingSchema error message does not handle unicode input correctly #2540
2015-04-10 21:59:13 -05:00
sh1buy
599f834351
fix bug 2540
2015-04-11 03:29:21 +03:00
sh1buy
f02d0f9e79
Fix bug 2540
2015-04-11 01:41:02 +03:00
sh1buy
f89b5a5d90
fix bug 2540
2015-04-11 00:23:07 +03:00
Cory Benfield
0cd9f5855e
Keepers of the Three Crystals.
2015-04-10 14:40:52 -04:00
Kenneth Reitz
ccc03b93ef
Test
2015-04-10 13:22:14 -04:00
Kenneth Reitz
b0c008c593
Merge pull request #2536 from smiley/master
...
Document that "PreparedRequest.prepare_cookies" can only be called once
2015-04-06 18:29:17 -04:00
Cory Benfield
a57c87a459
Merge pull request #2535 from sigmavirus24/bug/2530
...
Fix build version number in metadata
2015-04-06 17:54:22 -04:00
Smiley Barry
e3c7b43fc9
#2532 : Documented strange behaviour in "PreparedRequest.prepare_cookies", caused by cookielib. Also documented a workaround if absolutely necessary.
2015-04-06 21:00:51 +03:00
Ian Cordasco
956ec8321a
Merge pull request #2427 from luozhaoyu/master
...
Bug fix: field uri in digest authentication should not be empty when enc...
2015-04-06 10:19:15 -05:00
Cory Benfield
0581f2c7d2
Merge pull request #2533 from sigmavirus24/bug/2465-2
...
Place VendorAlias first in meta_path
2015-04-06 07:19:15 -04:00
Cory Benfield
1ff9a05181
Merge pull request #2534 from sigmavirus24/bug/2527
...
Copy a PreparedRequest's CookieJar reliably
2015-04-06 07:15:55 -04:00
Ian Cordasco
36093e69c7
Copy a PreparedRequest's CookieJar reliably
...
When a PreparedRequests's cookie jar is not a RequestsCookieJar instance, it
will not have a "copy" method. By adding _copy_cookie_jar we can reliably copy
cookie jars so that we have an actual copy instead of the same instance on
different prepared requests.
This also updates the RequestsCookieJar.update logic to create copies of
cookies from the other jar.
Closes #2527
2015-04-05 21:49:52 -05:00
Ian Cordasco
dacf69a16d
Fix build version number in metadata
...
Closes #2530
2015-04-05 21:49:10 -05:00
Ian Cordasco
1b5bfe681b
Place VendorAlias first in meta_path
...
When other libraries or tools add items to the meta_path, we need to preempt
some of their import hooks to be sure modules can be properly found. This also
prevents problems importing built-in modules on Python 2 where it will first
attempt to import something like:
requests.packages.chardet.sys
By placing our VendorAlias first, the above will fail and then it will fall
back to trying to import sys directly instead.
Closes #2465
2015-04-05 20:48:36 -05:00
Cory Benfield
18e678c1f8
Merge pull request #2531 from benjaminran/issue2062
...
Issue 2062: Updated custom header precedence info with .netrc example
2015-04-05 23:33:29 +01:00
benjaminran
1b1866934b
updated custom header precedence info with .netrc example
2015-04-05 14:23:10 -07:00
exvito
5a69137ac8
Issue #2334 - HTTPDigestAuth - Renamed thread local attribute
...
Per @sigmavirus24 suggestion: private and more readable.
2015-04-04 14:25:08 +01:00
exvito
36dea43406
Issue #2334 - HTTPDigestAuth - Improved per-thread state init
...
Inspired in @tardyp approach.
2015-04-03 17:04:33 +01:00
Cory Benfield
d294de38c4
Merge pull request #2525 from benjaminran/issue2062
...
Issue 2062: Added custom header precedence info
2015-04-03 16:57:54 +01:00
Pierre Tardy
142e24de7b
digestauth: threadsafe test
...
Signed-off-by: Pierre Tardy <pierre.tardy@intel.com >
2015-04-03 16:32:39 +01:00
benjaminran
898465756a
added custom header precedence info
2015-04-03 07:58:42 -07:00
exvito
e8d9bc55bc
Issue #2334 - HTTPDigestAuth - All state now in thread local storage
...
Following feedback from tardyp and @vincentxb.
2015-04-03 14:21:29 +01:00
exvito
e65360dbaf
Issue #2334 - HTTPDigestAuth - Replace getattr utilization
...
Following Lukasa + kennethreitz suggestion.
2015-04-02 21:29:51 +01:00
exvito
845e8f943f
Issue #2334 - HTTPAuthDigest - Making it thread-safe
...
The existing code counts the number of 401 responses in the num_401_calls
authenticator attribute. This is in place so as to ensure the necessary auth
header is sent, while avoiding infinite 401 loops (issue #547 ).
This commit makes num_401_calls an instance of threading.local() (previously
an integer), using num_401_calls.value as the counter.
It ensures that concurrent authentication requests get each their own counter
and behave as expected (otherwise every other concurrent request would have
its authentication fail).
2015-04-02 14:24:54 +01:00
Kenneth Reitz
0ad075c430
Update index.rst
2015-03-31 12:44:50 -04:00
Ian Cordasco
460caf71a4
Merge pull request #2518 from deronnax/shorter_version_extraction
...
shorter and faster version extraction from __init__.py
2015-03-27 07:49:29 -05:00
Cory Benfield
452ba32edf
Merge pull request #2497 from Lukasa/secprocess
...
Requests security release policy
2015-03-27 11:03:41 +00:00
Paul van der Linden
587eb193dd
fix resolve redirect to pass all original arguments
2015-03-26 19:57:16 +00:00
deronnax
1145fe64a5
matching the version only at the begining of lines
2015-03-26 15:53:19 +01:00
deronnax
ce234d53a5
shorter and faster version extraction from __init__.py
2015-03-25 18:21:34 +01:00
Cory Benfield
e95e173b8c
Merge pull request #2514 from kennethreitz/revert-2513-master
...
Revert "Minor Patch TypeError thrown"
2015-03-23 15:13:14 +00:00
Ian Cordasco
b2ce5be9d0
Revert "Minor Patch TypeError thrown"
2015-03-23 10:11:13 -05:00
Cory Benfield
a0f5776f35
Merge pull request #2513 from Montycarlo/master
...
Minor Patch TypeError thrown
2015-03-23 06:18:48 +00:00
Josh Brown
1b5317ea08
Minor Patch TypeError thrown
2015-03-23 16:01:48 +11:00
Ian Cordasco
8dda20f8e3
Merge pull request #2512 from Lukasa/elapsed
...
Expand on what 'elapsed' means.
2015-03-22 14:51:17 -05:00
Cory Benfield
54791d1970
Expand on what 'elapsed' means.
2015-03-21 16:27:21 +00:00
Cory Benfield
b7e3370762
'At least'
2015-03-18 21:40:03 +00:00
Cory Benfield
84cc36017a
Expand on chunked handling.
2015-03-18 21:31:55 +00:00
Cory Benfield
bedd2be0a7
Clarify that we ship patches early.
2015-03-18 21:27:20 +00:00
Cory Benfield
b974cd3741
Describe our new vulnerabilities process.
2015-03-17 20:07:28 +00:00
Cory Benfield
86f9b1616a
Merge pull request #2501 from yasoob/master
...
Added myself to authors.rst
2015-03-16 20:31:09 +00:00
M.Yasoob Ullah Khalid ☺
dfa0a2925f
added myself to authors.rst
2015-03-17 01:29:33 +05:00
M.Yasoob Ullah Khalid ☺
81d2d5535a
Merge pull request #1 from kennethreitz/master
...
Only for me
2015-03-17 01:25:05 +05:00
Cory Benfield
cd3f7eb388
Merge pull request #2493 from yasoob/master
...
made the quickstart more reader friendly
2015-03-15 18:39:54 +00:00
M.Yasoob Ullah Khalid ☺
3711e04f37
edited the useragent string
2015-03-15 22:42:43 +05:00
Cory Benfield
8c6d82a244
Merge pull request #2496 from Lukasa/cve
...
Update 2.6.0 changelog with CVE number CVE-2015-2296
2015-03-15 11:50:51 +00:00
Cory Benfield
3385c78999
Update 2.6.0 changelog with CVE number.
2015-03-15 11:49:32 +00:00
M.Yasoob Ullah Khalid ☺
6e2f1eb402
made the quickstart more reader friendly. Closes #2418
2015-03-15 01:02:09 +05:00
Ian Cordasco
fa338da717
Merge pull request #2492 from sigmavirus24/release/v2.6.0
...
Bump version and add release notes for 2.6.0
2015-03-14 11:43:32 -05:00
Ian Cordasco
80a3e87bf3
Bump version and add release notes for 2.6.0
2015-03-14 11:42:38 -05:00
Ian Cordasco
bbbd9de6fd
Merge pull request #2472 from scholer/master
...
Avoid data duplication when creating a Request with str/bytes/bytearray input
2015-03-14 07:43:17 -05:00
Ian Cordasco
e776bb2656
Merge pull request #2489 from Lukasa/cookiebad
...
Don't label cookies for the target domain.
2015-03-14 07:05:48 -05:00
Cory Benfield
f7c85685a8
Add explanatory comment for cookie change
2015-03-14 11:29:05 +00:00
Cory Benfield
8a2fd7ce6d
Merge pull request #2486 from sigmavirus24/bug/2462
...
Extract version from requests/__init__.py instead of importing requests
2015-03-14 11:20:33 +00:00
Cory Benfield
76f7ce8a24
Merge pull request #2487 from ulope/return_type
...
Add return type field to entry-point docstrings
2015-03-14 11:19:12 +00:00
Ulrich Petri
573d460aa7
Add return type field to entry-point docstrings
...
Fixes : #2483
2015-03-14 10:49:32 +01:00
Cory Benfield
3bd8afbff2
Don't ascribe cookies to the target domain.
2015-03-14 08:49:55 +00:00
Ian Cordasco
1acc4992d4
Parse version number out of requests/__init__.py
...
With the new import machinery in requests/packages/__init__.py people
using `python setup.py test` will not be able to run the tests the first
time on a new environment. The VendorAlias logic breaks the import
machinery and the tests fail. By removing the import of requests in
setup.py, we avoid the issue where sys.meta_path continues to have the
version of VendorAlias from the import in setup.py.
Closes #2462
2015-03-13 21:47:29 -05:00
Cory Benfield
bc746e158c
Merge pull request #2485 from sigmavirus24/bug/shazow/urllib3/567
...
Import urllib3's Retry location from the right place
2015-03-12 06:50:33 +00:00
Ian Cordasco
c4bd6ea150
Import urllib3's Retry location from the right place
...
Importing from urllib3's top-level location causes the namespace to be
urllib3.util.retry.Retry instead of
requests.packages.urllib3.util.retry.Retry. Without this fix, an using
requests with an un-vendored version of urllib3 will break when urllib3's
retry handling kicks in.
Closes shazow/urllib3#567
2015-03-11 20:52:12 -05:00
Ian Cordasco
9adaae6785
Merge pull request #2482 from sigmavirus24/update-urllib3
...
Update urllib3 to 43b5b2b452e4344374de7d08ececcca495079b8d
2015-03-11 09:52:11 -05:00
Ian Cordasco
a0790f37b7
Update urllib3 to 43b5b2b452e4344374de7d08ececcca495079b8d
2015-03-10 19:34:34 -05:00
Cory Benfield
14b653ab3c
Merge pull request #2478 from plaes/iter-lines
...
Document Response.iter_lines() deficiencies
2015-03-07 10:03:42 +00:00
Priit Laes
4497a26c37
Document Response.iter_lines() reentrancy issues
2015-03-07 12:00:41 +02:00
Priit Laes
62200cb07e
Add testcase to demonstrate r.iter_lines() reentrancy issue
2015-03-07 12:00:37 +02:00
Ian Cordasco
c53aa08cce
Merge pull request #2429 from kennethreitz/sigmavirus24/docs/support
...
Update support documentation to be more accurate
2015-03-04 16:20:33 -06:00
Cory Benfield
bcfcd9f980
Add Lukasa's GPG key fingerprint.
2015-03-04 20:16:25 +00:00
Rasmus Scholer (TimelineX)
ec700a9a13
Avoid duplicating files data when creating a Request with str/bytes/bytearray in the files argument. 30-40% performance improvement.
2015-03-04 10:21:38 -05:00
Ian Cordasco
e7ac8ea0c1
Add PGP Key fingerprints
2015-03-04 08:11:39 -06:00
Ian Cordasco
39e49e5fb9
Merge pull request #2466 from sigmavirus24/bug/2465
...
Only add VendorAliases for vendored dependencies
2015-03-04 07:49:12 -06:00
Ian Cordasco
61f4faae70
Merge pull request #2468 from scholer/master
...
Support for bytearray when creating Request with files argument, just like str and bytes.
2015-03-03 14:01:31 -06:00
Rasmus Scholer (TimelineX)
1887f32b17
test_can_send_bytes_bytearray_objects_with_files test now uses string input, not float.
2015-03-03 14:37:39 -05:00
Rasmus Scholer (TimelineX)
326f77d57c
Created test case for using bytes and bytearray objects with files argument to Request.
2015-03-03 03:41:00 +01:00
Rasmus Scholer (TimelineX)
11b12c3e07
models.RequestEncodingMixin._encode_files now takes bytearray as fp in addition to the currently supported bytes and str input.
2015-03-03 02:44:52 +01:00
Ian Cordasco
2669f0c0b1
Fix when packages are unvendored
...
When working these changes back upstream to pip, we realized that the
previous fix wasn't ideal since unvendoring the packages broke the
imports. For example, if urllib3 were unvendored, then the following
would fail:
from requests.packages import urllib3
2015-02-28 23:04:24 -06:00
Ian Cordasco
9d8a57f2a2
Add a test to ensure the alias does not regress
2015-02-28 20:19:13 -06:00
Ian Cordasco
6ea3f2ada8
Only alias the imports for vendored dependencies
...
While discussion the issue, Donald Stufft (@dstufft) and I realized the
simplest solution is to simply add an alias per vendored dependency. The
resulting changes are simple and effective. It prevents the issue in
2.5.2 and 2.5.3 where the following would work:
from requests.packages import webbrowser
This now appropriately raises an ImportError.
Closes #2465
2015-02-28 20:13:46 -06:00
Cory Benfield
461b740db6
Merge pull request #2459 from kennethreitz/release-notes/2.5.3
...
Update HISTORY and release version for 2.5.3
2015-02-24 16:32:15 +00:00
Ian Cordasco
628474d626
Update HISTORY and release version for 2.5.3
2015-02-24 10:30:17 -06:00
Cory Benfield
de674fc82c
Merge pull request #2458 from kennethreitz/revert-2442-certs
...
Revert "Update certificate bundle."
2015-02-24 16:18:16 +00:00
Ian Cordasco
b58318163c
Revert "Update certificate bundle."
2015-02-24 09:44:51 -06:00
Ian Cordasco
d8be2473d1
Update HISTORY and version for v2.5.2
2015-02-23 16:28:42 -06:00
Ian Cordasco
58e513579a
Update urllib3 to 29aa09bde9c42cc9a8d79aac47ee3d362b438cca
2015-02-23 16:02:30 -06:00
Ian Cordasco
0b6d2e451b
Merge pull request #2444 from Yasumoto/urllib_upgrade
...
Upgrade urllib3 to 490d3a227fadb626cd54a240b9d0922f849914b4
2015-02-23 16:01:06 -06:00
Cory Benfield
6f3c91b834
Merge pull request #2453 from requiredfield/master
...
document combination of repeated response headers
2015-02-21 10:20:57 +00:00
requiredfield
ed73d9e45d
document combination of repeated response headers
2015-02-20 12:20:18 -06:00
Ian Cordasco
5a22d2060f
Merge pull request #2450 from iKevinY/shields-badges
...
Update README to use Shields badges
2015-02-19 20:01:55 -06:00
Kevin Yap
344b51327c
Update README to use Shields badges
...
Shields badges are friendlier to retina displays.
2015-02-19 11:10:55 -08:00
Joe Smith
62df872871
Upgrade urllib3 to 490d3a227fadb626cd54a240b9d0922f849914b4
2015-02-11 11:04:25 -08:00
Ian Cordasco
a5a314e8ee
Merge pull request #2442 from Lukasa/certs
...
Update certificate bundle.
2015-02-10 13:05:56 -06:00
Cory Benfield
b86330d1f1
Update certificate bundle.
2015-02-10 19:03:59 +00:00
Ian Cordasco
69d9594338
Merge pull request #2440 from aquarion/patch-1
...
Update to use readthedocs.org instead of rtfd.org
The requests-toolbelt link can't mix HTTPS with the short domain rtfd.
2015-02-06 08:02:58 -06:00
Nicholas Avenell
291b6b24b7
Update to use readthedocs.org instead of rtfd.org
...
https://toolbelt.rtfd.org causes an SSL error because the wildcard SSL cert is for *.readthedocs.org.
2015-02-06 13:46:38 +00:00
Cory Benfield
426493f388
Merge pull request #2438 from colindickson/master
...
add a timeout value to connection_error_invalid_port test to accelerate failure
2015-02-04 07:01:10 +00:00
Colin Dickson
80aee7a225
add a timeout value to connection_error_invalid_port test to accelerate failure
2015-02-04 21:05:03 -05:00
Colin Dickson
ced6550a25
split test_connection_error into two distinct tests, and changed "unknown url" test URL since fooobarbangbazbing.httpbin.org currently gives a valid response.
2015-02-03 21:23:07 -05:00
Cory Benfield
c7beb703bf
Merge pull request #2437 from tomscytale/docs_query_param_array
...
quickstart: using a list as a value in query params
2015-02-03 10:34:06 +00:00
Tom S
53f33eb473
quickstart: using a list as a value in query params
2015-02-03 09:19:30 +00:00
Cory Benfield
69b7c45c2e
Merge pull request #2436 from colindickson/master
...
Fix for failing test: test_connection_error
2015-02-03 06:50:11 +00:00
Ian Cordasco
e644857877
Fix typo. Use smaller paragraphs. Add CVE list
2015-01-28 20:48:22 -06:00
Ian Cordasco
3a5e2b2f3d
Add a missing comma
2015-01-28 08:58:43 -06:00
Ian Cordasco
02f852cc41
Add Cory's twitter account
...
Added some more detail to the Vulnerability section
2015-01-28 08:58:05 -06:00
Ian Cordasco
ff56e431ad
Update support documentation to be more accurate
...
We were missing instructions to report security vulnerabilities,
and all of the documentation referred to Kenneth as the only
source of support. We were also missing a link to StackOverflow.
2015-01-28 08:16:05 -06:00
Kenneth Reitz
b137472936
Merge pull request #2393 from sigmavirus24/bug/2356
...
Attempt to quote anyway if unquoting fails
2015-01-27 10:24:34 -08:00
Kenneth Reitz
383b20b023
Merge pull request #2412 from sigmavirus24/remove-cruft
...
Remove entirely unnecessary and unused bits from requests.compat
2015-01-27 10:24:25 -08:00
Kenneth Reitz
3314eb9a62
Merge pull request #2413 from sigmavirus24/bug/2411
...
Check that filenames are unicode or bytes
2015-01-27 10:23:18 -08:00
Kenneth Reitz
cf3a7f4945
Merge pull request #2415 from sigmavirus24/bug/2408
...
Move noncebit to the only place it is used
2015-01-27 10:22:53 -08:00
Zhaoyu Luo
fb1971778f
Bug fix: field uri in digest authentication should not be empty when encounter http redirections
2015-01-25 18:11:22 -06:00
Cory Benfield
2f7f6a57f3
Merge pull request #2420 from chriskuehl/master
...
Replace n-dash in HISTORY to workaround pip bug
2015-01-23 07:19:39 +00:00
Chris Kuehl
74d85d0a2f
HISTORY: replace n-dash to workaround pip bug
...
There exists a problem (maybe a bug?) in pip when using a locale like
`LC_ALL=C` (which is commonly used by CI environments and system
configuration tools such as Puppet), where the PKG-INFO file is decoded
using ascii, raising a UnicodeDecodeError when PKG-INFO contains
non-ASCII characters (such as the n-dash removed by this commit):
> Downloading/unpacking requests from https://pypi.python.org/packages/source/r/requests/requests-2.5.1.tar.gz
> Downloading requests-2.5.1.tar.gz (443Kb): 443Kb downloaded
> Running setup.py egg_info for package requests
>
> Exception:
> Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 104, in main
> status = self.run(options, args)
> File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 245, in run
> requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
> File "/usr/lib/python3/dist-packages/pip/req.py", line 1014, in prepare_files
> req_to_install.assert_source_matches_version()
> File "/usr/lib/python3/dist-packages/pip/req.py", line 359, in assert_source_matches_version
> version = self.installed_version
> File "/usr/lib/python3/dist-packages/pip/req.py", line 351, in installed_version
> return self.pkg_info()['version']
> File "/usr/lib/python3/dist-packages/pip/req.py", line 318, in pkg_info
> data = self.egg_info_data('PKG-INFO')
> File "/usr/lib/python3/dist-packages/pip/req.py", line 261, in egg_info_data
> data = fp.read()
> File "/usr/lib/python3.2/encodings/ascii.py", line 26, in decode
> return codecs.ascii_decode(input, self.errors)[0]
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 8161: ordinal not in range(128)
I'm not able to reproduce this by installing the package directly, only by
installing another package which depends on it (via `install_requires`).
The command I used was `LC_ALL=C /usr/bin/pip-3.2 install --upgrade ocflib`,
with "pip 1.1 from /usr/lib/python3/dist-packages (python 3.2)" (which
is the packaged version for Debian 7).
Although this should probably be addressed ultimately in pip, replacing
this character in HISTORY is a pain-free and pragmatic way to help
developers and system administrators who may be stuck with old versions
of pip for many years to come.
2015-01-22 19:45:49 -08:00
Ian Cordasco
eec44dbbb1
Check that a filename is a basestring instance
...
Instead of only checking one or another type of string-like object that
we accept, let's be able to check both. Previously, we only checked if
the filename was an instance of the native str type which on Python 2
excluded unicode filenames and bytes-like filenames on Python 3.
Fixes #2411
2015-01-20 20:44:52 -06:00
Ian Cordasco
677bbe30d7
Move noncebit to the only place it is used
...
Since we only allow for "auth" qop-value, hardcode it
Fixes #2408
2015-01-19 18:50:50 -06:00
Ian Cordasco
f37fe551bb
Remove entirely unnecessary and unused bits from requests.compat
2015-01-18 21:17:11 -06:00
Ian Cordasco
751b35c346
Attempt to quote anyway if unquoting fails
...
Fixes #2356
2015-01-18 21:07:43 -06:00
Ian Cordasco
d2d576b6b1
Update urllib3 to a27758625e4169330fcf965652b1093faf5aaaa2
2015-01-09 20:55:54 -06:00
Kenneth Reitz
a57eacf080
Merge pull request #2375 from sigmavirus24/fix-imports-when-unbundled
...
Copy pip's import machinery wholesale
2015-01-09 15:38:30 -05:00
Kenneth Reitz
b176ccd481
drawn towards it rather than pushed away
2015-01-08 10:04:58 -05:00
Kenneth Reitz
176b365287
certifi
2015-01-08 10:01:39 -05:00
Kenneth Reitz
09658b80c0
certifi
2015-01-08 09:58:31 -05:00
Kenneth Reitz
ac34e3b346
simpler button
2015-01-08 09:55:40 -05:00
Kenneth Reitz
5549f50258
cleanups
2015-01-08 09:52:56 -05:00
Kenneth Reitz
15597c27cd
Requests Pro
2015-01-08 09:52:50 -05:00
Kenneth Reitz
673bd6afce
javascripts
2015-01-06 00:56:47 -05:00
Cory Benfield
7612015424
Merge pull request #2395 from shrayasr/happy-new-year
...
Changing year in all copyright information
2015-01-01 08:28:11 +00:00
Shrayas
892f2560c1
Changing year in all copyright information
...
- Happy new year! Thanks for this awesome library :)
2015-01-01 09:04:50 +05:30
Kenneth Reitz
2d1ffad80b
Merge pull request #2390 from Lukasa/cookiedocs
...
Clean up cookie docstrings, document cookie jar.
2014-12-24 10:15:37 -05:00
Cory Benfield
101425ebfc
Enhance documentation for clarity.
2014-12-24 14:54:49 +00:00
Cory Benfield
f4ec3d2309
Clean up cookie docs and display them.
2014-12-24 14:33:14 +00:00
Ian Cordasco
b83131779c
Bump version to 2.5.1
2014-12-23 11:54:01 -06:00
Ian Cordasco
ce5b5fe227
Add release notes for 2.5.1
2014-12-23 11:50:31 -06:00
Ian Cordasco
eccbf4a412
Merge pull request #2389 from sigmavirus24/bug/fix-digest-auth
...
Fix bug in renegotiating a nonce with the server
2014-12-23 11:40:35 -06:00
Ian Cordasco
86c3ecfd34
Fix bug in renegotiating a nonce with the server
...
If a session runs long enough (without constant activity) then the server can
expire the nonce the session has negotiated. If that happens the session will
get a new 401 response which we were immediately returning to the user. A user
would then have to essentially reinitialize session.auth each time they get an
unexpected 401.
Also, there's no need for setattr calls when we can simply assign the
attribute on the instance.
2014-12-23 10:40:31 -06:00
Ian Cordasco
bd3cf95e34
Fix error handling on Python 3
2014-12-16 22:49:24 -06:00
Ian Cordasco
386c589ba0
Merge branch 'master' of https://github.com/ContinuousFunction/requests into pr/2344
2014-12-16 22:18:51 -06:00
Cory Benfield
f723ab538f
Merge pull request #2382 from daftshady/exception
...
catch exception more specifically
2014-12-16 09:19:50 +00:00
daftshady
925e975295
catch exception more specifically in Response.ok
2014-12-16 16:55:13 +09:00
ContinuousFunction
4c61fef13f
Uncommented test in test_requests.py
...
Uncommented test_sesion_pickling in test_requests.py and ran the file to
make sure the test passes.
2014-12-15 13:41:10 -05:00
ContinuousFunction
39090cfba6
Merge branch 'master' of https://github.com/kennethreitz/requests
2014-12-15 13:24:06 -05:00
Cory Benfield
d7c0249aa8
Merge pull request #2381 from namlede/patch-1
...
Fix a typo in a comment
2014-12-15 07:59:47 +00:00
Ben Edelman
01b58ba04e
Fix a typo in a comment
...
I just fixed a minor typo: "throws" is misspelled as "thows".
2014-12-15 01:37:19 -05:00
Ian Cordasco
a8205bb509
Merge pull request #2379 from arthurdarcet/master
...
utils.guess_filename fails if the given parameter looks like a file object but has a non-string name attribute
2014-12-13 13:49:04 -06:00
Ian Cordasco
da82fb4b1d
Give proper attribution to pip
2014-12-12 21:12:31 -06:00
Arthur Darcet
e8d02ea0bb
utils.guess_filename fails if the given parameter looks like a file object but has a non-string name attribute
...
e.g. a cherrypy uploaded file behave like a regular file, except that its name attribute is an int and passing it directly to requests fails because of that
2014-12-12 17:32:43 +01:00
Ian Cordasco
d615405519
Copy pip's import machinery wholesale
2014-12-08 20:48:40 -06:00
Ian Cordasco
e23bf10cf4
Merge pull request #2374 from krvc/fix_link
...
Updated the broken link to twitter streaming API documentation
2014-12-08 17:46:08 -06:00
rakesh
508f4b1ca5
Updated the broken link to twitter streaming API documentation
2014-12-09 01:59:55 +05:30
Ian Cordasco
1d9bf43def
Merge pull request #2373 from frewsxcv/patch-1
...
Enable GitHub syntax highlighting on README
2014-12-08 12:40:44 -06:00
Corey Farwell
bf2e73522f
Enable GitHub syntax highlighting on README
2014-12-08 13:04:27 -05:00
Kenneth Reitz
4e90aa7bd0
Merge pull request #2363 from sigmavirus24/fix-tests
...
Update tests to work offline
2014-12-02 20:46:10 -08:00
Ian Cordasco
f172b30356
Merge pull request #2365 from sigmavirus24/release/2.5
...
Release v2.5.0
2014-12-01 17:22:17 -06:00
Ian Cordasco
33b25176b8
Bump version to 2.5.0
2014-12-01 17:03:24 -06:00
Ian Cordasco
9a0ce93935
Add updates for 2.5.0
2014-12-01 17:02:42 -06:00
Ian Cordasco
cf82d4406b
Update tests to work offline
2014-12-01 16:21:41 -06:00
Kenneth Reitz
90857b8b59
Merge pull request #2216 from sigmavirus24/retries-take-2
...
Retries logic
2014-12-01 14:45:27 -05:00
Kenneth Reitz
7aa6c62d6d
updatee chardet, urllib3
2014-12-01 14:40:32 -05:00
Kenneth Reitz
53d02381e2
Merge pull request #2349 from sigmavirus24/fix-pickling
...
Properly serialize RecentlyUsedContainers for cache
2014-11-30 14:12:43 -05:00
Kenneth Reitz
8ae4d02d73
Merge pull request #2348 from danmichaelo/master
...
Docs: Add more section labels for referencing
2014-11-30 14:12:04 -05:00
Kenneth Reitz
1c4a666b16
Merge pull request #2353 from mattrobenolt/patch-1
...
url was already parsed, don't urlparse twice
2014-11-30 14:11:52 -05:00
Matt Robenolt
2a5364cf72
url was already parsed, don't urlparse twice
2014-11-23 17:54:44 -08:00
Ian Cordasco
c8baf88125
Properly serialize RecentlyUsedContainers for cache
...
RecentlyUsedContainers are threadsafe so they require a lock and as such
cannot be serialized with pickle directly. To handle it, we need to
convert it to a dictionary first and then back when deserializing.
Fixes #2345
2014-11-17 22:16:32 -06:00
ContinuousFunction
3246b1fe17
Changed ConnectionError to InvalidURL
2014-11-17 20:06:24 -08:00
Dan Michael O. Heggø
8b03f60278
Docs: Add more section labels for referencing
...
so sections can be linked from other projects using Intersphinx
2014-11-17 11:39:33 +01:00
ContinuousFunction
087a27aba9
Partially addresses Issue #1572
...
Addresses the LocationParseError but not the DecodeError from
kennethreitz#1572. When running
test_requests.py, I got an error in test_session_pickling which resulted
in a TypeError. I'm not sure of the reason for the TypeError but I have
commented out that test.
2014-11-15 16:58:25 -08:00
Ian Cordasco
adf475ef82
Update HTTPAdapter docstring
2014-11-12 13:58:03 -06:00
Ian Cordasco
2eb7e3c80b
Add last few changes and add a quick test
2014-11-12 13:56:28 -06:00
Ian Cordasco
f54a4e3de1
Update urllib3 to df4ec5cce1
2014-11-12 13:56:28 -06:00
Ian Cordasco
2bc7762cb6
Update how we handle retries to be consistent with documentation
2014-11-12 13:56:28 -06:00
Kenneth Reitz
9dc660269f
Merge pull request #2309 from sigmavirus24/add-deprecation-warnings
...
Add DeprecationWarnings to inform users of plans
2014-11-12 12:36:03 -05:00
Kenneth Reitz
1601387cbe
Merge pull request #2308 from kevinburke/read-timeout-retry
...
Note about read timeout errors and max_retries
2014-11-12 12:35:24 -05:00
Kenneth Reitz
45ef1f8eeb
Merge pull request #2332 from asnelzin/fix-2329
...
Add overriding Content-Length
2014-11-12 12:34:48 -05:00
Kenneth Reitz
e4ddca0f8b
Merge pull request #2326 from sigmavirus24/close-functional-sessions
...
Close sessions created in the functional API
2014-11-12 12:34:14 -05:00
Ian Cordasco
19b8e3042e
Merge pull request #2333 from akitada/reinit-pos
...
Fix HTTPDigestAuth not to treat non-file as a file
2014-11-12 09:53:32 -06:00
Akira Kitada
67c505781c
Fix HTTPDigestAuth not to treat non-file as a file
...
Ensure pos is set to None when the body is not a file
so that HTTPDigestAuth detects the type of the body correctly.
2014-11-13 00:51:35 +09:00
Alexander Nelzin
ee50afef59
Fixed.
2014-11-12 15:35:27 +03:00
Alexander Nelzin
34f6088c8f
Added test for overriding Content-Length.
2014-11-12 15:23:23 +03:00
Ian Cordasco
431282e778
Merge pull request #2299 from mattrobenolt/master
...
Cap the redirect_cache size to prevent memory abuse
2014-11-07 14:18:41 -06:00
Ian Cordasco
3155bc9936
Close sessions created in the functional API
...
This is related to #1882 and #1685 . By calling close on the session, we
clear the PoolManager operated by the Session and close all sockets.
Fixes #1882
Partially-fixes #1685
2014-11-07 08:55:18 -06:00
Ian Cordasco
1c52d15d97
Merge pull request #2323 from Lukasa/strict
...
Pass strict to urllib3.
2014-11-07 08:12:23 -06:00
Cory Benfield
f28bde7250
Pass strict to urllib3.
2014-11-07 09:19:18 +01:00
Kenneth Reitz
122c92e590
Merge pull request #2253 from yossigo/digest_redirect_fix
...
A fix for #1979 : repeat HTTP digest authentication after redirect.
2014-11-01 10:04:29 -04:00
Kenneth Reitz
124c0940e9
Merge pull request #2317 from sigmavirus24/bug/2316
...
Use to_native_string instead of builtin_str
2014-11-01 10:04:09 -04:00
Ian Cordasco
29ef108158
Use to_native_string instead of builtin_str
...
Fixes #2316
2014-10-31 21:20:04 -05:00
Kevin Burke
a703e24573
Update documentation about max_retries to reflect code
2014-10-27 09:56:18 -07:00
Matt Robenolt
387c8f852c
Cap the redirect_cache size to prevent memory abuse
2014-10-27 09:20:06 -07:00
Ian Cordasco
091991be0d
Merge pull request #2306 from ssadler/fix-failing-test-test_prepare_unicode_url
...
Fix failing test test_prepare_unicode_url
2014-10-26 19:32:46 -05:00
Ian Cordasco
d505b94fa4
Add DeprecationWarnings to inform users of plans
...
After a long discussion in IRC and on several issues, the developers of
requests have decided to remove specific functions from requests.utils
in version 3.0.0. To give users ample time to prepare for this, we've
added DeprecationWarnings long in advance. See also the planning of this
in issue #2266 .
2014-10-26 19:24:41 -05:00
Kevin Burke
f2f3bdea8d
Note about read timeout errors and max_retries
2014-10-26 12:46:23 -07:00
Scott Sadler
583859b820
fix failing test "test_prepare_unicode_url" \(take 3\)
2014-10-26 14:45:12 +01:00
Scott Sadler
8e69c9f0a1
Revert "fix failing test "test_prepare_unicode_url""
...
This reverts commit 26ed7c2e1d .
2014-10-26 14:41:56 +01:00
Scott Sadler
26ed7c2e1d
fix failing test "test_prepare_unicode_url"
2014-10-26 12:49:46 +01:00
Scott Sadler
77687de509
Revert "fix failing test "test_prepare_unicode_url""
...
This reverts commit cfd6e25749 .
2014-10-26 12:40:05 +01:00
Kenneth Reitz
be805f942e
Merge pull request #2295 from 2deviant/feature-custom-newline
...
Adding a custom line delimiter to iter_lines()
2014-10-25 14:33:52 -04:00
Scott Sadler
c044a70796
update AUTHORS
2014-10-25 16:52:02 +02:00
Scott Sadler
cfd6e25749
fix failing test "test_prepare_unicode_url"
2014-10-25 16:51:51 +02:00
Val Tenyotkin
3602690886
Changing parameter name newline ==> delimiter.
2014-10-24 16:37:35 -07:00
Yossi Gottlieb
3d8823cafc
Clean up handle_redirect.
2014-10-23 13:46:44 +03:00
Val Tenyotkin
f5ff05be1e
Adding a custom line delimiter to iter_lines()
2014-10-21 18:03:11 -07:00
Cory Benfield
6b58a359e8
Merge pull request #2290 from syedsuhail/fix-2282
...
Fix #2279 . Update layout css
2014-10-19 10:42:28 +01:00
syedsuhail
96efb5ec96
Fix #2279 . Update layout css
2014-10-19 14:06:02 +05:30
Cory Benfield
e1e1855b85
Merge pull request #2289 from syedsuhail/fix-2288
...
Fix #2288 . Change urllib3 and chardet workflow
2014-10-19 08:56:36 +01:00
syedsuhail
3a6348dbb9
Fix #2288 . Change urllib3 and chardet workflow
2014-10-19 13:18:26 +05:30
Kenneth Reitz
f7ecad843b
Merge pull request #2282 from morganthrapp/patch-1
...
Update sidebarintro.html
2014-10-14 11:22:48 -04:00
morganthrapp
4d498db3ed
Update sidebarintro.html
...
Fix issue #2279 . "Gittip" changed to "Gratipay". Tip button extended from 48px to 60px.
2014-10-14 10:56:05 -04:00
Kenneth Reitz
c41eb27091
Merge pull request #2273 from sigmavirus24/add-changelog-to-sidebar
...
Add Release History to the sidebar
2014-10-12 10:55:34 -04:00
Ian Cordasco
2ac771b35e
Merge pull request #2271 from mikecool1000/fix-2250
...
Fixed #2250
2014-10-10 13:30:18 -05:00
Michael DeLay
8339b60fd5
Made more better
2014-10-10 09:58:30 -07:00
Ian Cordasco
589f2f6d6e
Add Release History to the sidebar
...
Closes #2269
2014-10-09 21:07:05 -05:00
mikecool1000
ce1ac88543
Fixed #2250
2014-10-09 12:22:18 -07:00
mikecool1000
4594667f07
Update utils.py
...
Fixed -2250
2014-10-08 19:26:07 -07:00
Yossi Gottlieb
6ff6f756c0
Clean up, support all redirects, fix potential endless 401 loop.
2014-10-08 00:06:01 +03:00
Kenneth Reitz
46d646064c
v2.4.3
2014-10-06 05:44:25 -04:00
Kenneth Reitz
78d12bbbe9
v2.4.3
2014-10-06 05:42:55 -04:00
Kenneth Reitz
6da438dabd
Merge pull request #2268 from sigmavirus24/fix-params
...
Re-order params for backwards compat
2014-10-06 05:40:03 -04:00
Kenneth Reitz
4ec26da2f7
Merge pull request #2267 from minrk/unicode-url-py2
...
allow unicode URLs on Python 2
2014-10-06 05:39:54 -04:00
Ian Cordasco
0e4efab270
Re-order params for backwards compat
2014-10-05 18:55:59 -05:00
MinRK
ca2ebc5b68
allow unicode URLs on Python 2
...
on Python 2 u'é'.decode('utf8') fails with UnicodeEncodeError,
but only AttributeError is caught.
This only calls decode on known bytes objects.
2014-10-05 16:30:11 -07:00
Kenneth Reitz
5850b1f53b
Merge pull request #2249 from t-8ch/fix_2247
...
fix #2247
2014-10-05 13:19:14 -04:00
Kenneth Reitz
779c001e44
requests v2.4.2
2014-10-05 13:15:33 -04:00
Kenneth Reitz
79f56e2e7e
fix documentation for utils.get_unicode_from_response() :)
2014-10-05 13:14:38 -04:00
Kenneth Reitz
90dc467fc0
v2.4.2 changelog
2014-10-05 13:13:42 -04:00
Kenneth Reitz
65cdccb70f
Merge pull request #2241 from tijko/master
...
raise RuntimeError when a single streamed request calls *iter methods th...
2014-10-05 12:48:40 -04:00
Kenneth Reitz
1e79cf6a47
Merge pull request #2258 from willingc/add-json
...
Add json parameter
2014-10-05 12:46:09 -04:00
Cory Benfield
20ca9feeb3
Merge pull request #2265 from sigmavirus24/session-attrs
...
Remove timeout from __attrs__
2014-10-05 09:05:29 +01:00
Ian Cordasco
b1f3a2dd66
Remove timeout from __attrs__
...
We do not allow the user to set the timeout value on the Session any longer so
this is extraneous
2014-10-04 23:04:36 -05:00
Kenneth Reitz
e74791d054
Merge pull request #2238 from buttscicles/byte-urls
...
Support bytestring URLs on Python 3.x
2014-10-02 12:20:05 -04:00
Ian Cordasco
8ed941fa69
Fix a couple of issues I noticed
...
- Don't _ prefix json in prepare_body
- Don't initialize json to []
- Don't initialize json to {}
- Reorder parameters to PreparedRequest.prepare
- Remove extra parentheses
- Update docstring
2014-09-30 16:03:31 -05:00
Joe Alcorn
a68d1b4517
Support bytestring URLs on Python 3.x
2014-09-30 19:29:10 +01:00
Yossi Gottlieb
c28da22e9c
A fix for #1979 repeat HTTP digest authentication after redirect.
2014-09-27 21:05:59 +03:00
Thomas Weißschuh
cd5eb62961
remove unused import
2014-09-26 22:28:29 +00:00
Thomas Weißschuh
6e1db21733
fix #2247
...
We have to pass urllib3 the url without the authentication information,
else it will be parsed by httplib as a netloc and included in the request line
and Host header
2014-09-25 19:49:28 +00:00
Cory Benfield
a718a81d27
Merge pull request #2248 from jktjkt/docs-CAs
...
docs: Clarify how to pass a custom set of CAs
2014-09-25 19:28:05 +01:00
Jan Kundrát
3635b1501d
docs: Clarify how to pass a custom set of CAs
...
This new wording makes it hopefully easier to find how to override the
system-provided list of trusted CAs. I failed to find this through some googling
and had to resort to asking on IRC previously.
2014-09-25 20:06:04 +02:00
Kenneth Reitz
de76fbeefb
Merge pull request #2244 from sigmavirus24/bug/2231
...
Avoid getting stuck in a loop
2014-09-24 22:57:38 -04:00
Cory Benfield
e0d88c2814
Merge pull request #2245 from sigmavirus24/doc-fix
...
Correct redirection introduction
2014-09-23 07:25:26 +01:00
Ian Cordasco
671ba85d41
Correct redirection introduction
...
The history attribute contains responses, not requests.
Thanks to Yang Yang for reporting this to me via email
2014-09-22 21:08:29 -05:00
Ian Cordasco
ac44b48297
Avoid getting stuck in a loop
...
This prevents a case where we make a request to URL A, which 301s to B which
would then 301 back to A. Alternatively, for less simple schemes, this will
also prevent us from getting stuck in a loop, e.g., it will prevent the
following from causing an endless loop:
A -> B -> C -> D -> E -> F --
^ \
| /
---<------------<----------<-
2014-09-22 21:01:36 -05:00
Tim Konick
64ba451049
make StreamConsumedError doubly inherit
2014-09-22 15:58:54 -04:00
Tim Konick
6e5f7bb9d3
using the StreamConsumedError
2014-09-22 15:51:59 -04:00
Tim Konick
58e0a6f4a0
add-in StreamConsumedError
2014-09-22 15:51:10 -04:00
Tim Konick
d6470870d0
rm else after if then raise block
2014-09-22 12:46:07 -04:00
Tim Konick
fdf932c61c
raise RuntimeError when a single streamed request calls *iter methods than once
2014-09-22 12:04:29 -04:00
Cory Benfield
d28d45af91
Merge pull request #2237 from buttscicles/contributing-update
...
Remove invoke from requirements.txt, docs
2014-09-20 23:12:38 +01:00
Joe Alcorn
d243668d16
Remove invoke from requirements.txt, docs
2014-09-20 20:56:00 +01:00
Cory Benfield
466a70f7c1
Fixup the remaining references to timeline.json.
2014-09-20 15:00:36 +01:00
Kenneth Reitz
082c8d0db8
Merge pull request #2227 from mjul/master
...
Added example of how to send multiple files in one request.
2014-09-18 10:06:54 +09:00
Martin Jul
0924069b68
Moved multiple files upload example to advanced section.
2014-09-16 11:54:31 +02:00
Martin Jul
4707d11004
Added example of how to send multiple files in one request.
2014-09-16 11:38:40 +02:00
Ian Cordasco
9b41308b9f
Merge pull request #2223 from blueyed/doc-followup-2222
...
Document skipping in PreparedRequest; followup to #2222
2014-09-12 11:54:40 -05:00
Daniel Hahler
bff8b91638
Document skipping in PreparedRequest; followup to #2222
2014-09-12 18:07:28 +02:00
Cory Benfield
1a44a99f17
Merge pull request #2222 from blueyed/fix-MissingScheme-for-hostport
...
Add tests to test_invalid_url for `InvalidSchema`
2014-09-12 15:16:11 +01:00
Daniel Hahler
d3566ee1b0
Add more tests to test_invalid_url
...
This adds tests for the behavior introduced in b149be5d , where
`PreparedRequest` was made to skip `parse_url` for e.g.
`localhost:3128/`.
2014-09-12 16:11:30 +02:00
Kenneth Reitz
9e8702d3d5
lawl
2014-09-09 12:42:00 -04:00
Kenneth Reitz
27b6bfc213
mils
2014-09-09 12:39:36 -04:00
Kenneth Reitz
dff383ce8f
requests v2.4.1
2014-09-09 12:34:34 -04:00
Cory Benfield
5e94c81e98
Merge pull request #2210 from sigmavirus24/bug/2207
...
Fix #2207
2014-09-09 15:24:24 +01:00
Cory Benfield
2416e2343a
Merge pull request #2213 from kennethreitz/req-rsp
...
Request->Response.
2014-09-09 08:45:30 +01:00
Cory Benfield
bf8f791a93
Request->Response.
2014-09-09 08:44:40 +01:00
Ian Cordasco
27c83f7177
Fix #2207
...
@Lukasa wrote the fix in #2207
2014-09-07 12:02:23 -05:00
Kenneth Reitz
359659cf4b
Merge pull request #2203 from Lukasa/remove_certifi
...
Remove hard certifi dependency and document.
2014-09-05 08:11:57 -07:00
Cory Benfield
9c6ae1dc0b
Link to Mozilla trust store.
2014-09-04 19:44:37 +01:00
Kenneth Reitz
0df32de02d
Merge pull request #2199 from mtorromeo/patch-1
...
Open README and HISTORY as utf-8 encoded files (fixes #2196 )
2014-09-04 11:41:46 -07:00
Cory Benfield
a77054f90f
Remove hard certifi dependency and document.
2014-09-04 19:40:15 +01:00
Kenneth Reitz
1324ca1a0f
Merge pull request #2193 from sigmavirus24/bug/2192
...
Capture and re-raise urllib3 ProtocolError
2014-09-04 11:39:41 -07:00
Kenneth Reitz
209a871b63
Merge pull request #2191 from kevinburke/comma
...
add trailing comma
2014-09-04 11:39:23 -07:00
Kenneth Reitz
07bbe214aa
Merge pull request #2187 from kevinburke/more-docs
...
Document Timeout behaviour
2014-09-04 11:39:12 -07:00
Kenneth Reitz
958845ae35
requests[security]
2014-09-04 11:37:45 -07:00
Kenneth Reitz
bc2560480e
Merge pull request #2195 from sigmavirus24/betterssl
...
Add betterssl extra
2014-09-04 11:36:56 -07:00
Ian Cordasco
9354855648
Consolidate error handling
2014-09-03 16:01:25 -05:00
Massimiliano Torromeo
226b5c7b0a
Open README and HISTORY as utf-8 encoded files ( fixes #2196 )
2014-09-03 09:40:27 +02:00
Ian Cordasco
ce7957c085
Add test for invalid port
2014-08-29 16:50:45 -05:00
Ian Cordasco
c6a1167e8b
Merge remote-tracking branch 'kevinburke/domain-failure-connection-error' into bug/2192
2014-08-29 16:43:51 -05:00
Ian Cordasco
c809867035
Add betterssl extra
2014-08-29 16:39:22 -05:00
Kevin Burke
2c76122a48
Add test that invalid domain raises a ConnectionError
2014-08-29 14:07:28 -07:00
Ian Cordasco
da122231e4
Capture and re-raise urllib3 ProtocolError
2014-08-29 15:16:30 -05:00
Kevin Burke
34ea836d77
tildes
2014-08-29 12:08:03 -07:00
Kevin Burke
59f5a1089a
add trailing comma
2014-08-29 12:06:58 -07:00
Kevin Burke
81d6b3e435
s/behavior/behaviour
2014-08-29 11:51:09 -07:00
Kevin Burke
dfa41afd43
Document Timeout behaviour
2014-08-29 11:50:11 -07:00
Kenneth Reitz
95161ed313
v2.4.0 changelog
2014-08-29 10:32:18 -04:00
Kenneth Reitz
1fcda912db
Revert "Documentation update : connection keep alive"
...
This reverts commit 1b2602344f .
Conflicts:
docs/user/advanced.rst
2014-08-29 10:30:49 -04:00
Carol Willing
0713e09526
Fixes typo in test
2014-08-28 19:42:21 -07:00
Carol Willing
402f3b4993
Changes check on base and json. Fails on tests.
2014-08-28 19:27:45 -07:00
Carol Willing
b34a496649
Adds review changes
2014-08-28 16:45:24 -07:00
Carol Willing
8f17741849
Adds json parameter for POST requests
2014-08-28 12:53:19 -07:00
Kenneth Reitz
d22b8d8e7e
3.4 classifier
2014-08-28 13:10:26 -04:00
Kenneth Reitz
d33ce49aaa
keep-alive
2014-08-28 13:05:30 -04:00
Kenneth Reitz
89cb408bb0
v2.4.0
2014-08-28 13:05:23 -04:00
Kenneth Reitz
5f483369aa
Merge pull request #2178 from sigmavirus24/env-retrieval
...
Add Session method to merge environment settings with per-request settings
2014-08-26 15:44:51 -04:00
Kenneth Reitz
7e24176ca1
Merge pull request #2183 from Lukasa/docupdate
...
Fix #2180 .
2014-08-26 15:41:44 -04:00
Cory Benfield
08d8876230
Remove timeline.json from docs.
2014-08-26 20:20:34 +01:00
Ian Cordasco
596ca83f0c
Update verify check and doc-string
2014-08-26 14:20:19 -05:00
Ian Cordasco
b4a7906bca
Add Session method to merge environment settings with per-request settings
2014-08-26 14:20:19 -05:00
Kenneth Reitz
7a09e727e3
Merge pull request #2174 from kevinburke/test-clarification
...
Clarify which tests to run in the Makefile
2014-08-26 15:15:28 -04:00
Kenneth Reitz
32e403a908
Merge pull request #2176 from kevinburke/connect
...
Add support for connect timeouts
2014-08-26 15:13:30 -04:00
Kenneth Reitz
c879873b3e
Merge pull request #2179 from kevinburke/urllib3-pypy-ssl
...
Updates urllib3 to 528ad3c
2014-08-26 15:10:51 -04:00
Kevin Burke
8bbc4fcb57
Updates urllib3 to 528ad3c
...
This includes fixes for openssl running with Pypy, so SSL connections can be
made if ndg-httpsclient, pyopenssl and pyasn1 are installed.
see also:
- https://github.com/shazow/urllib3/issues/449
- https://github.com/pypa/pip/issues/1988
2014-08-25 13:44:29 -07:00
Kevin Burke
7f236fcc40
woops
2014-08-24 20:22:55 -07:00
Kevin Burke
39b3a436d3
assert connect timeout inheritance
2014-08-24 20:18:05 -07:00
Kevin Burke
8f9ce13e43
ConnectTimeout multiple inheritance
2014-08-24 19:56:57 -07:00
Kevin Burke
f0b9b60f62
revert change
2014-08-24 19:46:46 -07:00
Kevin Burke
c2aeaa3959
Add support for connect timeouts
...
Modifies the timeout interface to also accept a tuple (connect, read) which
would be used to set individual connect and read timeouts for Requests. Adds
Advanced documentation explaining the interface and providing guidance for
timeout values.
2014-08-23 15:12:29 -07:00
Kevin Burke
024db279c4
clarify comment
2014-08-23 10:10:44 -07:00
Kevin Burke
e70179a620
Clarify which tests to run in the Makefile
...
If you put your Virtualenv in the same folder as Requests (as I
usually do), py.test will pick up any test_* files inside the
virtualenv and attempt to run them too, leading to the following error:
https://gist.github.com/kevinburke/1aa2b07e01de3a7daa15
Instead specify the test file we would like to run in the Makefile.
2014-08-23 10:02:27 -07:00
Kenneth Reitz
c0322e490b
Merge pull request #2172 from ContinuousFunction/master
...
Add to authors and fix case
2014-08-22 09:04:50 -04:00
Cory Benfield
1c20d01f10
Cleanup grammar from previous commit.
2014-08-22 11:50:37 +01:00
Cory Benfield
391e064b8f
Merge pull request #2173 from tychotatitscheff/master
...
Documentation update : connection keep alive
2014-08-22 11:47:35 +01:00
tat3657
1b2602344f
Documentation update : connection keep alive
2014-08-22 10:39:05 +02:00
ContinuousFunction
337b338187
Adding my name to authors
2014-08-21 11:25:29 -07:00
ContinuousFunction
5aa1881959
Adding myself to authors.
2014-08-21 11:16:59 -07:00
ContinuousFunction
8bb8a9a37c
Adding my name to authors.
2014-08-21 11:12:36 -07:00
ContinuousFunction
c7e087cf56
Added space and sentence case
...
Added space and sentence case as requested by sigmavirus24.
https://github.com/kennethreitz/requests/pull/2168
2014-08-21 11:05:02 -07:00
Kenneth Reitz
aa6650a2e7
Merge pull request #2168 from ContinuousFunction/master
...
Tracking Previous Requests
2014-08-21 13:43:23 -04:00
ContinuousFunction
2fc6e8a894
Update on Tracking Previous Requests
...
Modified the comment in sessions.py and rewrote the test in
test_requests.py
2014-08-19 10:51:26 -07:00
Kenneth Reitz
53d3cece00
21m
2014-08-19 12:53:26 -04:00
ContinuousFunction
df641e74ff
Tracking Previous Requests
...
Addresses the issue brought up here:
https://github.com/kennethreitz/requests/issues/1929
2014-08-17 19:13:26 -07:00
Kenneth Reitz
35d083e166
Merge pull request #2153 from jschneier/master
...
handle urllib3 api changes; closes #2045
2014-08-01 21:33:55 -04:00
Josh Schneier
47d0517d66
handle urllib3 api changes; closes #2045
2014-07-29 23:29:21 -04:00
Kenneth Reitz
3eb69be879
Merge pull request #2148 from romanlevin/handle-socket-error-in-iter_content
...
Handle socket errors in iter_content
2014-07-27 09:59:08 -04:00
Roman Levin
cf01a743af
Replace setattr
2014-07-24 23:30:11 +02:00
Roman Levin
9eab9f7415
Handle socket errors in iter_content
2014-07-24 23:00:50 +02:00
Kenneth Reitz
fe693c4922
Merge pull request #2142 from sigmavirus24/urllib3-1.9
...
Upgrade urllib3 to 1.9.x
2014-07-22 16:21:05 -04:00
Kenneth Reitz
9575d6a6ce
Merge pull request #2145 from TkTech/patch-1
...
Update faq.rst
2014-07-22 16:20:37 -04:00
Tyler Kennedy
35f7bcdaa2
Update faq.rst
...
Revised wording based on feedback from @sigmavirus24
2014-07-22 13:10:40 -04:00
Tyler Kennedy
57b861148e
Update faq.rst
...
Removed an unnecessary "to" in the "What are "hostname doesn't match" errors?" section.
2014-07-22 12:38:08 -04:00
Cory Benfield
eb2906a65c
Merge pull request #2140 from dpursehouse/linkify-usernames
...
Linkify Github usernames in authors list
2014-07-22 07:57:25 +01:00
Ian Cordasco
170d6269eb
Fix test bug courtesy of @shazow
2014-07-21 15:00:14 -05:00
Ian Cordasco
811ee4eb5d
Upgrade urllib3 to 1.9.x
2014-07-21 13:37:10 -05:00
Cory Benfield
e66466a331
Merge pull request #2141 from esparta/master
...
Docs: Using print() function instead print command on advanced & quickstart
2014-07-18 21:17:43 +01:00
Espartaco Palma
698b93b86d
Docs: Using print() function instead print command on advanced & quickstart user docs
2014-07-18 11:44:57 -05:00
David Pursehouse
eef4e0836c
Add links to Twitter accounts
...
Change-Id: Ic88eb128384b3cc9108151c219cd759c7524a4f1
2014-07-18 22:46:19 +09:00
Cory Benfield
4c94282fdf
Merge pull request #2139 from dpursehouse/line-wrapping
...
More line wrapping
2014-07-18 10:59:48 +01:00
David Pursehouse
743f38209d
Linkify Github usernames in authors list
...
- Linkify github usernames
- Remove usernames that do not exist
Change-Id: Ib88b70a3010e915b3570ae5062c8cb416c9a6462
2014-07-18 17:00:00 +09:00
David Pursehouse
44e426e4ff
More line wrapping
...
Change-Id: I950c3da727fb97b58d96a872b0d2ed718cc60ba8
2014-07-18 16:35:54 +09:00
Cory Benfield
587a5153f0
Merge pull request #2138 from dpursehouse/more-doc-updates
...
More doc updates
2014-07-18 08:24:27 +01:00
David Pursehouse
be453ba3c3
Remove empty 'internals' page
...
The file is empty and not linked from anywhere, resulting in
a warning when building the docs.
Change-Id: Ib995d094ef525496fe8b2a369e0a0c5b4c7bd2dd
2014-07-18 15:19:32 +09:00
David Pursehouse
17852784e8
Remove redundant sentence from quickstart introduction
...
Change-Id: Ic03aa394941367745f3148d299b5313849f77051
2014-07-18 15:18:20 +09:00
David Pursehouse
c6fa5bb1cd
Fix a couple more malformed :meth: and :class: links
...
Change-Id: Ie38844a40ec7a483e6ce5e56077be344242bcd99
2014-07-18 15:15:54 +09:00
David Pursehouse
49ecffb86e
Add authentication classes to the API document
...
Change-Id: Ic1464f246602b809f3c29fbafd6f36b747d5d5df
2014-07-18 15:15:54 +09:00
Ian Cordasco
999ba49611
Merge pull request #2136 from dpursehouse/greenfeld-not-greenfield
...
Fix name misspelling
2014-07-16 07:14:36 -05:00
David Pursehouse
f0fb20cd83
Fix name misspelling
...
Change-Id: Ied3e600e5673eff48558b634b3c2616d13a3337b
2014-07-16 15:13:11 +09:00
Cory Benfield
e25fbc879e
Merge pull request #2135 from dpursehouse/fix-meth-and-class-directives
...
Docs: Fix :class: and :meth: directives
2014-07-16 06:36:40 +01:00
David Pursehouse
2a6303e018
Docs: Fix :class: and :meth: directives
...
A few instances of the directives were malformed and did not
result in hyperlinks in the generated HTML.
Change-Id: I94d93de928ee4ff24a48797baf2ac77598a20704
2014-07-16 10:50:57 +09:00
Ian Cordasco
d21916c0ff
Merge pull request #2134 from nonZero/patch-1
...
removed unneeded parentheses from if clause
2014-07-15 12:13:09 -05:00
Ian Cordasco
54fc8075e6
Merge pull request #2133 from esparta/master
...
Update link to pip site on docs/user/install.rst
2014-07-15 12:12:49 -05:00
Udi Oron
6dc13f2194
removed unneeded parentheses from if clause
2014-07-15 19:56:47 +03:00
Cory Benfield
127ab0a9f6
Merge pull request #2131 from dpursehouse/quickstart-doc-updates
...
Quickstart doc updates
2014-07-15 11:40:28 +01:00
David Pursehouse
a8a4c9828a
Restructure "Redirection and History" section in quickstart documentation
...
Change-Id: Ida38d551e8cd0edaeb92d09de411a6f4a3d0578b
2014-07-15 18:44:13 +09:00
David Pursehouse
f5a2138e8c
Minor tidy-ups in quickstart documentation
...
Change-Id: Ia862c17707a2a76182c549db88821636e8402729
2014-07-15 18:27:50 +09:00
David Pursehouse
cde5a4a5d5
Add Timeout exception in API documentation
...
The Timeout exception is referenced from quickstart.rst but does
not get hyperlinked.
Change-Id: I69ad881bf9d2475c6239ac7b17f68ddbce0d03cd
2014-07-15 18:27:38 +09:00
Cory Benfield
55df62954b
Merge pull request #2130 from dpursehouse/doc-index-updates
...
Doc index updates
2014-07-15 09:57:47 +01:00
David Pursehouse
504b960fb4
Documentation: Add Sony to list of users
...
Change-Id: I0568f27562e5d12f7e5e528b216ca1b1e9cd8256
2014-07-15 17:53:18 +09:00
David Pursehouse
d9ea1aaeb0
Documentation: Wrap lines in index.rst
...
Wrap lines at 80 characters where possible.
Change-Id: Ib254734a7a18b62f965577c368929058258b489f
2014-07-15 17:53:14 +09:00
Ian Cordasco
28d1ef5be9
Merge pull request #2128 from tshepang/patch-1
...
Fix broken link
2014-07-14 09:39:19 -05:00
Tshepang Lekhonkhobe
36b6c37496
Fix broken link
2014-07-14 16:13:23 +02:00
Kenneth Reitz
e48b4b492d
Merge pull request #2124 from Lukasa/certifi
...
Depend on certifi
2014-07-11 13:30:07 -04:00
Cory Benfield
52facc7984
Install certifi with requests.
2014-07-10 21:49:31 +01:00
Cory Benfield
7a51337ce0
Preferentially use certifi to requests.
2014-07-10 21:49:16 +01:00
Espartaco Palma
291bc9ea07
Update link to pip site on docs/user/install.rst
2014-07-04 11:42:56 -05:00
Kenneth Reitz
39f0c66cbe
Merge pull request #2115 from sigmavirus24/fix-2092
...
Update how we check verify when inspecting env variables
2014-07-03 09:35:55 -04:00
Ian Cordasco
3957b0befb
Fix silly check
2014-07-02 10:42:00 -05:00
Cory Benfield
538a41e70d
Merge pull request #2116 from sigmavirus24/fix-2107
...
Replace dead link with StackOverflow answer
2014-07-02 16:41:14 +01:00
Ian Cordasco
d25280dc20
Replace dead link with StackOverflow answer
2014-07-02 10:34:25 -05:00
Ian Cordasco
84f67379c8
Update how we check verify when inspecting env variables
2014-07-02 10:26:15 -05:00
Ian Cordasco
de2cd2e9c8
Merge pull request #2112 from np-csu/patch-1
...
Update quickstart.rst
2014-06-29 08:31:23 -05:00
np-csu
1bf4af6395
Update quickstart.rst
...
line 394: correct an input error.
2014-06-29 21:05:04 +08:00
Kenneth Reitz
b9bbfa659f
Merge pull request #2049 from codedstructure/adapter-proxy_manager_for
...
Separated out proxy_manager_for to fix #2048
2014-06-23 12:11:13 -07:00
Cory Benfield
fcb735fd99
Merge pull request #2097 from bkerensa/patch-1
...
Update out-there.rst
2014-06-15 09:19:34 +01:00
Benjamin Kerensa
c451dd2c77
Update out-there.rst
...
Remove french blog post which is now a deadlink.
2014-06-15 00:10:09 -07:00
Kenneth Reitz
6b21e5c8f0
Merge pull request #2095 from ericfrederich/redirect_cache
...
Redirect cache
2014-06-12 14:42:41 -04:00
Eric L Frederich
493697a0aa
Merge branch 'master' into redirect_cache
2014-06-12 08:25:33 -04:00
Eric L Frederich
c3444f8c7a
don't make duplicate requests for permanent redirects
2014-06-12 08:25:21 -04:00
Kenneth Reitz
2c262de0fe
Merge pull request #2090 from ericfrederich/fix_308
...
handle 308 redirection the same as 301 and 302
2014-06-12 00:19:44 -04:00
Kenneth Reitz
b80ed77cdd
Update index.rst
2014-06-11 16:40:23 -04:00
Eric L Frederich
da3178f377
Re-add resume to not break existing apps
...
as requested by Cory Benfield
2014-06-11 13:27:36 -04:00
Eric L Frederich
ec3a2e6f04
rename resume/resume_incomplete to permanent_redirect according to rfc7238
...
Use temporary_redirect intead of temporary_moved to make the words
line up nicely ;-)
2014-06-11 11:08:10 -04:00
Eric L Frederich
07d9b730b7
handle 308 redirection the same as 301 and 302
2014-06-10 16:30:17 -04:00
Kenneth Reitz
743ce8119b
Merge pull request #2088 from jeffknupp/master
...
various pep-8 cleanups; remove unsused imports; remove unused variables
2014-06-10 12:02:21 -04:00
Jeff Knupp
bff65f42ee
Update with style considerations by @kennethreitz
2014-06-10 11:16:24 -04:00
Jeff Knupp
e2c4da7dd2
various pep-8 cleanups; remove unsused imports; remove unused variables
2014-06-10 09:09:33 -04:00
Kenneth Reitz
3ee781b895
Merge pull request #2076 from Lukasa/basic
...
Basic Auth handler sets unicode header value on Python 2
2014-06-09 10:53:23 -04:00
Ian Cordasco
326f6adcfa
Merge pull request #2087 from Lukasa/2616
...
Update trivial mentions to RFC 2616.
2014-06-08 09:44:26 -05:00
Ben Bass
046302c0cb
indentation change for code review
2014-06-08 15:23:37 +01:00
Cory Benfield
2b8353d3b3
Avoid unnecessary encode/decode cycles.
2014-06-08 10:28:35 +01:00
Cory Benfield
d977ee8a24
Force basic auth strings to native string type
2014-06-08 10:20:32 +01:00
Cory Benfield
22433163b3
Update trivial mentions to RFC 2616.
2014-06-07 09:53:12 +01:00
Kenneth Reitz
702283093a
v2.3.1 changelog
2014-05-30 13:36:18 -04:00
Kenneth Reitz
75cd0a9bd9
Merge pull request #2078 from dgouldin/2077
...
Allow copying of PreparedRequests without headers/cookies
2014-05-30 13:33:29 -04:00
David Gouldin
32f600b083
Allow copying of PreparedRequests without headers/cookies
2014-05-30 10:11:53 -07:00
Kenneth Reitz
69996114d9
Merge pull request #2072 from sigmavirus24/fix-urlencoded-bytes
...
Check for basestring, not just str
2014-05-29 10:39:42 -04:00
Cory Benfield
785e4ab360
Merge pull request #2074 from Lukasa/filedoc
...
Ensure that we open files in binary mode in the docs.
2014-05-28 17:01:10 +01:00
Cory Benfield
a2413e010f
Ensure that we open files in binary mode.
2014-05-28 16:59:57 +01:00
Ian Cordasco
5ab79e2514
Remove unnecessary check for builtin_str
2014-05-28 08:17:18 -05:00
Ian Cordasco
3faff0b8ea
Check for basestring, not just str
...
Fixes #2071
2014-05-27 20:29:44 -05:00
Kenneth Reitz
6c72509f5b
Merge pull request #2059 from jschneier/master
...
remove unused IteratorProxy
2014-05-27 11:28:11 -04:00
Kenneth Reitz
e71282394c
Merge pull request #2064 from mgeisler/simplejson-syntax-error-import
...
compat: handle SyntaxError when importing simplejson
2014-05-27 11:25:54 -04:00
Kenneth Reitz
ddd748e67a
Merge pull request #2065 from mgeisler/tox
...
Fix Python 3.2 compatibility in tests
2014-05-27 11:24:47 -04:00
Kenneth Reitz
0d40d97d3e
Merge pull request #2069 from Lukasa/request
...
Document and initialise Response.request
2014-05-27 11:11:21 -04:00
Cory Benfield
3346ad1134
Document and initialise Response.request
2014-05-26 16:40:45 +01:00
Martin Geisler
c8916a08de
test: restore Python 3.2 compatibility
...
The tests were broken because they used the u'...' Unicode literal
syntax which disappeared in Python 3.0 to 3.2.
We can work around this by conditionally defining a "u" function which
will produce a Unicode literal on Python 2.x. This is basically the
same approach as taken by the six library often used for writing
cross-version compatible code.
2014-05-26 16:20:39 +02:00
Martin Geisler
f4d1bbb7c5
faq: add Python 3.4 to list of supported Python versions
...
No code changes were necessary for this.
2014-05-26 16:20:03 +02:00
Martin Geisler
5eea4a3767
faq: mention that PyPy 2.2 works too
...
The FAQ says that PyPy 1.9 is supported. On my Debian Unstable, I can
install PyPy 2.2.1 and the tests work with that version too.
2014-05-26 16:19:17 +02:00
Martin Geisler
3b0fcb620d
compat: handle SyntaxError when importing simplejson
...
We officially support Python 2.6 to 3.3, but simplejson does not
support Python 3.1 or 3.2:
https://github.com/simplejson/simplejson/issues/66
Importing simplejson on Python 3.2 results in a SyntaxError because
simplejson uses the u'...' syntax (the syntax was not supported in
Python 3.0 to 3.2).
Support for loading simplejson instead of the stdlib json module was
added by #710 :
https://github.com/kennethreitz/requests/pull/710
No mention was made of the lack of support for Python 3.2, but it was
mentioned that simplejson can be faster than the stdlib json module.
2014-05-26 00:56:35 +02:00
Josh Schneier
7815953cb4
remove unused IteratorProxy
2014-05-23 11:52:17 -04:00
Ben Bass
54e96b40b7
allow pool_kwargs to be specified in init_poolmanager
2014-05-18 20:24:35 +01:00
Ben Bass
02618c8df5
improve proxy_manager_for re-usability by subclass
2014-05-18 20:10:35 +01:00
Ben Bass
e3d0ac7c9d
update AUTHORS.rst
2014-05-17 23:22:15 +01:00
Ben Bass
f97e78726e
Factor out HTTPAdapter.proxy_manager_for for #2048
2014-05-17 23:15:51 +01:00
Cory Benfield
a7c218480d
Merge pull request #2047 from Hasimir/master
...
Fixed paragraph formatting in Urllib3/MIT License.
2014-05-17 16:37:31 +01:00
Ben McGinnes
eebae9c63b
Fixed paragraph formatting in Urllib3/MIT License.
2014-05-18 01:16:27 +10:00
Ian Cordasco
c43ecd1c47
Merge pull request #2046 from alex/patch-2
...
Fixed a typo
2014-05-16 16:05:41 -05:00
Kenneth Reitz
76c09e7076
ignot dist
2014-05-16 15:30:48 -04:00
Alex Gaynor
53d3519a35
Fixed a typo
2014-05-16 14:11:05 -04:00
Kenneth Reitz
6366d3dd19
v2.3.0
2014-05-16 13:55:47 -04:00
Kenneth Reitz
b26c85f081
history update
2014-05-16 13:55:06 -04:00
Kenneth Reitz
343db40375
Merge remote-tracking branch 'origin/master'
2014-05-16 13:44:21 -04:00
Kenneth Reitz
bbed65d100
Merge pull request #2040 from Lukasa/clog
...
Initial 2.3.0 changelog.
2014-05-16 10:37:32 -04:00
Cory Benfield
24986f853c
Merge pull request #2041 from pawroman/patch-1
...
Fix typo in advanced.rst docs
2014-05-13 11:31:24 +01:00
Paweł Romanowski
a7e7241616
Fix typo in advanced.rst docs
...
`Sesssion` -> `Session`
2014-05-13 10:11:40 +02:00
Kenneth Reitz
739d153ef7
Merge pull request #1944 from schlamar/redirect-decoding
...
Catch errors while handling redirects
2014-05-12 16:50:33 -04:00
schlamar
16459910a9
Added test for redirect with wrong gzipped header.
2014-05-12 22:45:45 +02:00
schlamar
5e860c08d8
Added test case to handle response of streamed redirects.
...
Credits go to @zackw.
2014-05-12 22:45:45 +02:00
schlamar
59c8d81381
Read content in Session.send instead of Adapter.send.
2014-05-12 22:42:54 +02:00
schlamar
c2a1f28a2e
Catch possible exceptions while consuming content of redirect responses.
2014-05-12 22:42:53 +02:00
Cory Benfield
679ab5bc20
Initial 2.3.0 changelog.
2014-05-12 20:30:10 +01:00
Kenneth Reitz
c15a8f8a3d
CaseInsensitiveDict now looks like a normal dict
2014-05-12 15:10:15 -04:00
Kenneth Reitz
5893cfcd90
Merge pull request #1972 from avidas/response_str
...
Add __str__ to case insensitive dict
2014-05-12 15:08:31 -04:00
Kenneth Reitz
c023f06aad
Merge pull request #1924 from schlamar/proxy-default-scheme
...
Default proxy scheme to HTTP
2014-05-12 15:05:56 -04:00
Kenneth Reitz
569cd23c00
Merge pull request #1937 from jaraco/master
...
Improved decoding support for Response.iter_content and iter_lines
2014-05-12 15:04:35 -04:00
Kenneth Reitz
be2674bf3c
Merge pull request #2038 from dstufft/update-urllib3
...
Update urllib3 to 4fb351cd2
2014-05-12 14:50:36 -04:00
Donald Stufft
626c48e947
Update urllib3 to 4fb351cd2
2014-05-12 14:43:50 -04:00
Cory Benfield
07f9a7ea02
Remove references to not-yet-made 2.3.0 release.
2014-05-03 10:59:14 +01:00
Kenneth Reitz
02a76b79a1
Merge pull request #2026 from Lukasa/updateurllib3
...
ImportError: No module named 'requests.packages.urllib3.util'
2014-05-02 15:09:39 -04:00
Kenneth Reitz
8f12f948b1
Merge pull request #2032 from dstufft/patch-1
...
Remove the easy_install section
2014-05-02 15:09:21 -04:00
Donald Stufft
31762899a0
Remove the easy_install section
...
There's not a lot of good reason to actually call out easy_install at all.
Anyone who prefers it already knows it exists and everyone else should be
directed unambiguously towards pip.
2014-05-02 12:51:50 -04:00
Cory Benfield
b8049ba201
Add urllib3 util package to setup.py.
2014-04-29 18:50:38 +01:00
Kenneth Reitz
54541a9927
Merge pull request #2021 from Lukasa/proxies2
...
Don't repopulate proxies if we don't trust the environment.
2014-04-28 17:49:27 -04:00
Cory Benfield
142b26ea7b
Clearer description of Response.close().
2014-04-28 19:42:30 +01:00
Kenneth Reitz
7fa9799e28
sidebar update
2014-04-26 09:28:05 -04:00
Kenneth Reitz
3e568eb3b0
sidebar update
2014-04-26 09:27:06 -04:00
Cory Benfield
459f8dfccb
Don't repopulate proxies if we don't trust the env.
2014-04-26 13:05:01 +01:00
Kenneth Reitz
dae4026c18
Merge pull request #2017 from Ayper/master
...
Update urllib to 1.8.2
2014-04-25 23:04:54 -04:00
apr
36b0481f24
Update urllib to 1.8.2
2014-04-24 14:43:26 -04:00
Kenneth Reitz
826425fdfd
Merge pull request #2010 from Lukasa/philosophy
...
[WIP] Update philosophy section
2014-04-21 12:25:01 -04:00
Cory Benfield
6c1ddeedfb
First pass at update to philosophy section.
2014-04-18 17:28:12 +01:00
Cory Benfield
082b877d81
We're awesome, but don't need to be here twice.
2014-04-18 17:15:45 +01:00
Cory Benfield
35d20b2168
Merge pull request #2009 from sigmavirus24/fix-my-name
...
Fix my name
2014-04-18 17:13:17 +01:00
Ian Cordasco
e56cc11757
Fix my name
2014-04-18 10:35:44 -05:00
Kenneth Reitz
229c4d8f7c
Merge pull request #2005 from ap-Codkelden/master
...
SVG logo version
2014-04-16 15:37:29 -04:00
ap-Codkelden@github.com
b1d0f9743e
SVG logo version (with fonts converted to curves)
2014-04-16 18:11:35 +03:00
Kenneth Reitz
b4354fc66f
Revert "Font layer convert to curves"
...
This reverts commit af21ec6165 .
2014-04-16 10:58:30 -04:00
Kenneth Reitz
b5fd95cab9
Merge pull request #1999 from ap-Codkelden/master
...
Font layer in logo convert to curves
2014-04-16 10:56:44 -04:00
Kenneth Reitz
df34ed7a00
@sigmavirus42
2014-04-15 19:15:39 -04:00
Kenneth Reitz
b8ba5c2bcb
github urls
2014-04-15 19:11:58 -04:00
Kenneth Reitz
b2c801f3c7
Merge remote-tracking branch 'origin/master'
2014-04-15 19:07:52 -04:00
Kenneth Reitz
21010ee25a
core contributors
2014-04-15 19:07:41 -04:00
Kenneth Reitz
f409d65d15
12,000,000
2014-04-15 19:01:41 -04:00
ap-Codkelden@github.com
af21ec6165
Font layer convert to curves
2014-04-12 21:13:52 +03:00
Cory Benfield
07ee20d07d
Merge pull request #1998 from Kapishin/master
...
Fix typo
2014-04-10 06:46:05 +01:00
Pavlo Kapyshin
4ca4865170
Fix typo
2014-04-10 06:09:41 +03:00
Kenneth Reitz
338c5f6a0b
Merge pull request #1991 from gutworth/patch-1
...
replace reference to crate.io
2014-04-08 10:19:39 -04:00
Cory Benfield
6f52970a6d
Reinstate '$'.
2014-04-05 17:29:00 +01:00
Benjamin Peterson
fb2380c3cc
delete pypi mirror section
2014-04-05 11:57:43 -04:00
Ionel Cristian Mărieș
96936b5616
Make it more clear where install commands are run (so that newbies don't run them in the REPL, I've seen it happen :).
2014-04-05 16:40:13 +03:00
Benjamin Peterson
8a23dd94cb
replace reference to crate.io
...
crate.io is gone, so a different mirror should be used as an example. Also, the list of PyPI mirrors should be mentioned.
2014-04-04 23:58:18 -04:00
Cory Benfield
6a877661fb
Merge pull request #1989 from sigmavirus24/HISTORY-updates
...
Make note of the fact that we fixed some CVEs
2014-04-03 06:51:07 +01:00
Ian Cordasco
b361a4c056
Make note of the fact that we fixed some CVEs
2014-04-02 19:04:58 -05:00
Kenneth Reitz
ae5ecdf2ae
Merge pull request #1959 from Feng23/master
...
support request tuple data
2014-03-31 10:30:36 -04:00
Kenneth Reitz
826667a54c
Merge pull request #1981 from stanhu/master
...
Update urllib to 1.8 (8a8c601bee)
2014-03-31 10:29:30 -04:00
Stan Hu
6c839985b9
Update urllib to 1.8 (8a8c601bee)
2014-03-28 16:37:54 -07:00
Feng Liu
24819e8aae
support request tuple data
...
rewrite the TestModels
Ajust the code
2014-03-27 10:41:49 +08:00
Kenneth Reitz
0303e9b137
Merge pull request #1976 from kennethreitz/fix-redirect-test
...
The expected value changed for the proxies keyword
2014-03-26 11:34:36 -04:00
Ian Cordasco
b92f4ec6fb
The expected value changes for the proxies keyword
...
It used to be None but a recent PR changed that before my last one was merged
2014-03-26 08:12:31 -05:00
Kenneth Reitz
b8128d6b1e
Merge pull request #1962 from sigmavirus24/fix-history-type
...
Fix #1960 : A Response's history should be a list
2014-03-24 11:45:06 -04:00
Kenneth Reitz
5f48e4a120
Merge pull request #1963 from sigmavirus24/fix-redirect-methods
...
Fix #1955 : Do not use original request in redirect
2014-03-24 11:44:14 -04:00
Kenneth Reitz
a3cd2f3929
Merge remote-tracking branch 'origin/master'
2014-03-24 11:39:20 -04:00
Kenneth Reitz
b2db089eef
3.4
2014-03-24 11:39:15 -04:00
Avi Das
c2e6fe4d5d
Shorten str for case insensitive dict
2014-03-23 11:38:37 -05:00
Kenneth Reitz
fe4c4f1461
Merge pull request #1951 from Lukasa/proxyauth
...
Re-evaluate proxy authorization.
2014-03-23 10:51:48 -04:00
Avi Das
a3fb689942
Fix parenthesis typo
2014-03-22 16:30:22 -05:00
Cory Benfield
90f7337858
Style changes thanks to @sigmavirus24.
2014-03-22 21:11:33 +00:00
Avi Das
98ac3df713
Add __str__ to case insensitive dict. Logging headers for debugging purposes is often necessary, and the currently logging the headers would be using __repr__ which would log the implementation detail of headers, caseinsensitivedict. Adding str lends a more printing and log friendly implementation for case insentitice dict
2014-03-22 15:42:23 -05:00
Ian Cordasco
8fc6a65be8
Actually assign history
2014-03-15 12:48:29 -05:00
Ian Cordasco
8d693a2a27
Fix #1955 : Do not use original request in redirect
...
The original request was never being properly overriden in resolve_redirects.
As such being having a POST request respond with a 303 would generate a GET
request. If the GET request encountered another redirect to something like a
307, then it would use the original request and generate another POST request.
There are two parts to this fix:
- The fix itself
- The test infrastructure to ensure it does not regress because HTTPBin is
insufficient
2014-03-15 11:38:13 -05:00
Ian Cordasco
daf56b3f62
Fix #1960 : A Response's history should be a list
2014-03-15 10:33:00 -05:00
Cory Benfield
724038e4b5
Test stripping standard auth.
2014-03-12 21:53:07 +00:00
Cory Benfield
4f6dca42ea
Remove some extraneous comments to please KR.
2014-03-12 21:21:14 +00:00
Kenneth Reitz
110048f983
Merge pull request #1916 from schlamar/accept-encoding
...
Fix Accept-Encoding in default headers
2014-03-12 16:37:27 -04:00
Kenneth Reitz
4112b8f14b
Merge pull request #1949 from Lukasa/pickle
...
Pickled Responses should include a None value for the raw attribute
2014-03-12 16:18:58 -04:00
Cory Benfield
4d8cb3244e
Add method for rebuilding proxy configuration.
...
This includes auth.
2014-03-12 19:22:40 +00:00
Cory Benfield
97cf16e958
Move auth rebuild to its own method.
2014-03-12 19:22:11 +00:00
Cory Benfield
6d7e8a97bb
Split get_environ_proxies into two methods.
...
This makes it possible to get at the no_proxy logic separately.
2014-03-12 19:20:12 +00:00
Cory Benfield
ee7fe02953
Ensure that .raw() is present after unpickling.
...
Some people will assume that .raw() is present, and they shouldn't get
AttributeErrors when they make that assumption on a pickled Response.
However, @kennethreitz has asked that we not be too dependent on
urllib3. For that reason, set to None.
2014-03-12 18:34:43 +00:00
schlamar
a59fac5e4b
Removed compress from accepted encodings.
2014-03-12 12:11:55 +01:00
Jason R. Coombs
7b378cb742
Add tests for decode_unicode
2014-03-04 17:46:58 -05:00
Jason R. Coombs
d289eb22f1
Always honor decode_unicode, even when _content is present.
...
--HG--
extra : amend_source : 25977a1227b163d49bf2e1aec6aa448e5cd3be8a
2014-03-04 16:33:40 -05:00
Jason R. Coombs
c8226f69e1
Add documentation about decode_unicode.
2014-03-04 16:27:13 -05:00
Cory Benfield
03f444e601
Timeout documentation changes.
2014-03-03 20:23:59 +00:00
Kenneth Reitz
d8557a2627
Merge pull request #1935 from cjstapleton/master
...
Add timeout to stream with testing
2014-03-03 13:14:37 -05:00
Kenneth Reitz
3c4b3747e4
Merge pull request #1921 from sigmavirus24/fix-session-header-none
...
Do not set headers with None value
2014-03-03 13:13:13 -05:00
Cory Benfield
9a14086e6d
Merge pull request #1934 from kennethreitz/update-notice
...
Charade -> Chardet and Add cacert.pem license
2014-03-02 09:34:55 +00:00
Ian Cordasco
64f0b3c81e
Remove unnecessary bits from cacert notice section
2014-03-01 11:15:14 -06:00
cjstapleton
5f404a0592
Fix styling issues with add timeout to stream with testing
2014-02-28 19:06:59 -06:00
cjstapleton
930f03c864
Add timeout to stream with testing
...
Fixes Issue #1803
2014-02-28 10:08:57 -06:00
Ian Cordasco
9b20cadaeb
Charade -> Chardet and Add cacert.pem license
...
- Charade is gone, long live Chardet.
- cacert.pem is now taken wholesale from Mozilla so we need to display that
itis licensed under the MPL2.0
2014-02-28 08:29:05 -06:00
schlamar
4404e7e328
Default proxy scheme to http.
2014-02-18 15:24:24 +01:00
schlamar
780ce3902e
Revert "Proxy urls should have explicit schemes."
...
This reverts commit 840540b6b1 .
Conflicts:
requests/adapters.py
requests/utils.py
2014-02-18 15:15:36 +01:00
Cory Benfield
e909a92343
Merge pull request #1923 from Lukasa/master
...
The timeout is in seconds.
2014-02-16 19:02:05 +00:00
Cory Benfield
81e88b70bd
The timeout is in seconds.
2014-02-16 19:00:22 +00:00
Ian Cordasco
d2f647cee4
Do not set headers with None value
...
- Regardless of whether they are on the session or not
- Fixes #1920
2014-02-14 16:15:21 -06:00
Kenneth Reitz
3c88e520da
Merge pull request #1918 from zackw/response-is-redirect
...
New Response property, .is_redirect.
2014-02-13 16:03:37 -05:00
Zack Weinberg
0caa243212
New Response property, .is_redirect.
2014-02-13 14:27:42 -05:00
Kenneth Reitz
4ecd74693f
Merge pull request #1891 from sigmavirus24/add-requests-to-exceptions
...
Add request to RequestException
2014-02-11 11:58:23 -05:00
Kenneth Reitz
94badad24c
Merge pull request #1897 from aliles/master
...
Document requirements for SNI support on Python2
2014-02-11 11:55:33 -05:00
Kenneth Reitz
1371e81944
Merge pull request #1900 from mjpieters/issue1674-json-fallback-encoding
...
Reinstate falling back to self.text for JSON responses
2014-02-11 11:55:20 -05:00
Cory Benfield
969195ad55
Clarify our 1.2.1 behaviour change.
2014-02-11 07:31:47 +00:00
Kenneth Reitz
a44910b837
Merge pull request #1902 from mjpieters/master
...
Remove unused loggers.
2014-02-06 18:32:41 -08:00
Cory Benfield
2b9b4a35b2
Merge pull request #1904 from mjpieters/doc-response-reason
...
Document the `Response.reason` attribute.
2014-02-05 18:32:16 +00:00
Martijn Pieters
3443c177a3
Document the Response.reason attribute.
...
Made `.status_code` and `.reason` consistent with one another, adding some examples. Addresses #1225 .
2014-02-05 17:29:09 +00:00
Aaron Iles
98b76f4b98
State early in SNI discussion Python2 limitation
...
Reference at the earliest opportunity that Server-Name-Indication is a
limitation of Python 2.6 and 2.7. Avoid describing it as a Requests
issue.
2014-02-04 21:08:11 +11:00
Cory Benfield
15ac4e5fb6
Merge pull request #1901 from mjpieters/chardet-not-charade
...
One last Charade reference to remove here.
2014-02-04 00:53:53 -08:00
Martijn Pieters
488b90f5ac
Remove unused loggers.
2014-02-03 13:43:59 +00:00
Martijn Pieters
c5b6a107eb
One last Charade reference to remove here.
2014-02-03 13:39:21 +00:00
Martijn Pieters
f35838beb6
Remove logging and charade mention.
...
Logging is Not Allowed, so out it goes.
2014-02-03 13:37:57 +00:00
Martijn Pieters
5ee8b348eb
Reinstate falling back to self.text for JSON responses
...
A JSON response that has no encoding specified will be decoded with a detected UTF codec (compliant with the JSON RFC), but if that fails, we guessed wrong and need to fall back to charade character detection (via `self.text`). Kenneth removed this functionality (by accident?) in 1451ba0c6d , this reinstates it again and adds a log warning.
Fixes #1674
2014-02-03 12:00:14 +00:00
Aaron Iles
8a0bae45c2
Move SNI documentation to FAQ
...
Relocate documentation on Server-Name-Indication from the advanced
section to the frequently asked questions. This is minus details on
enabling SNI on Python2, which is instead captured by linking to Stack
Overflow.
2014-02-02 22:19:10 +11:00
Aaron Iles
b5b8198fd1
Document requirements for SNI support on Python2
...
A section for Request's advanced usage guide on what Server Name
Indication is, its purpose, and how to enable it on Python2.
2014-02-02 20:14:05 +11:00
Kenneth Reitz
c6084704cc
what is wrong with you people? :)
2014-01-31 12:31:11 -05:00
Kenneth Reitz
2b23d6a9f7
omg never do this again ever please
2014-01-31 12:30:52 -05:00
Kenneth Reitz
c042c08179
who did this
2014-01-31 12:29:56 -05:00
Kenneth Reitz
f74f5e3ebf
cleanup shitty code
2014-01-31 12:27:05 -05:00
Kenneth Reitz
f1893c8355
Merge pull request #1892 from Lukasa/netrcauth
...
Repopulate ~/.netrc auth.
2014-01-31 09:19:53 -08:00
Cory Benfield
d9f34c6848
Respect trust_env on redirect.
2014-01-31 07:36:44 +00:00
Kenneth Reitz
4f12bfa636
Merge pull request #1893 from Lukasa/license
...
Avoid breaking crappy distribution methods.
2014-01-30 09:23:57 -08:00
Cory Benfield
326a22e888
Better layout for checking.
2014-01-30 15:11:24 +00:00
Cory Benfield
0163a836a1
Avoid breaking crappy distribution methods.
2014-01-29 19:21:04 +00:00
Cory Benfield
7ba5a534ae
Repopulate ~/.netrc auth.
2014-01-29 19:13:46 +00:00
Ian Cordasco
07e0a6198d
Explicitly check for None
2014-01-28 20:39:09 -06:00
Ian Cordasco
c2fab5b4ca
Avoid having to fix tests
2014-01-28 20:24:41 -06:00
Ian Cordasco
27eb54a20a
Move creation of attributes to RequestException
...
Pass request objects in HTTPAdapter
2014-01-28 20:13:57 -06:00
Kenneth Reitz
b1c8fd3b67
Merge pull request #1888 from longaccess/handle301
...
Fix for 301 redirect and latest PyOpenSSL.
2014-01-28 12:14:38 -08:00
Konstantinos Koukopoulos
8b792be81b
on redirect pass URL as bytes. Fixes : #1887
2014-01-28 09:11:23 -08:00
Konstantinos Koukopoulos
b6e16799d0
test pyopenssl redirect (unit test for #1887 )
2014-01-28 09:08:16 -08:00
Cory Benfield
19756d57f7
Merge pull request #1886 from meteozond/patch-1
...
Added info about posted files headers
2014-01-28 01:07:23 -08:00
Alexander
1e3eb4ef9e
Added info about posted files headers
2014-01-28 12:03:59 +03:00
Ian Cordasco
42b8a6d8ab
Merge pull request #1881 from kevinburke/typo
...
s/soley/solely
2014-01-25 05:38:39 -08:00
Kevin Burke
4c11fb7f04
s/soley/solely
2014-01-25 00:20:10 -08:00
Kenneth Reitz
06ecae43bd
NOTICE update
2014-01-24 15:39:32 -05:00
Kenneth Reitz
7773b2712e
Merge pull request #1870 from sigmavirus24/add-toolbelt-to-docs
...
Add a small note about requests-toolbelt
2014-01-23 10:54:08 -08:00
Kenneth Reitz
33735480f7
v2.2.1
2014-01-23 13:25:40 -05:00
Kenneth Reitz
a5b3719967
Merge pull request #1876 from dstufft/update-urllib3
...
Update urllib3 to 9346c5c
2014-01-23 10:22:21 -08:00
Donald Stufft
d181577f3e
Update urllib3 to 9346c5c
2014-01-22 14:20:34 -05:00
Cory Benfield
2a6b835a5e
Update changelog for 2.2.1.
2014-01-22 14:28:41 +00:00
Ian Cordasco
3bd16ce9c5
Add missing sled
...
Thanks @kevinburke
2014-01-21 19:55:00 -06:00
Cory Benfield
4872f4628c
Merge pull request #1874 from kevinburke/typo
...
Typo in History
2014-01-21 10:24:37 -08:00
Kevin Burke
f17ead4133
Typo in History
2014-01-21 10:18:04 -08:00
Ian Cordasco
799bf116fe
Add a small note about requests-toolbelt
2014-01-18 22:44:50 -06:00
Kenneth Reitz
c3055863c6
Update NOTICE
2014-01-16 15:12:40 -08:00
Kenneth Reitz
57c71ec9b6
Merge pull request #1867 from Lukasa/closing
...
Document contextlib.closing.
2014-01-16 14:16:04 -08:00
Cory Benfield
476ab203bc
Document contextlib.closing.
2014-01-16 08:37:29 +00:00
Kenneth Reitz
0465d34955
Merge pull request #1862 from sybeck2k/master
...
Fixed parsing of username and password encoded in the URI
2014-01-14 11:56:04 -08:00
Roberto Migli
eb124353af
Added comment for test test_get_auth_from_url
2014-01-13 16:29:46 +01:00
Roberto Migli
49fb630eb4
Merged changes from @lukasa
2014-01-13 14:04:28 +01:00
Roberto Migli
a6a8342066
Fixed parsing of username and password encoded in the URI
2014-01-13 13:32:00 +01:00
Ian Cordasco
87abd9c609
Use calendar.timegm when calculating cookie expiration
...
Fixes #1859
Credit: @lukasa
2014-01-12 14:27:45 -06:00
Cory Benfield
5b4e9aff0e
Don't need to unquote twice.
2014-01-12 14:46:40 +00:00
Cory Benfield
2f98ef1792
Be less defensive in get_auth_from_url.
2014-01-12 14:44:53 +00:00
Cory Benfield
b4ca6c95b6
Meet @sigmavirus24's demanding stylistic criteria.
2014-01-12 09:39:32 +00:00
Cory Benfield
dddb41e349
TypeError, not AttributeError on 3.3.
2014-01-11 10:15:53 +00:00
Cory Benfield
ca187abd13
Unquote the auth after splitting the url.
2014-01-11 09:59:23 +00:00
Cory Benfield
ac4e05874a
Fixup the header heirarchy.
2014-01-09 19:50:56 +00:00
Cory Benfield
098865122c
Merge branch 'master' of github.com:dsoprea/requests
...
Conflicts:
docs/user/advanced.rst
2014-01-09 19:46:32 +00:00
Kenneth Reitz
1720e4bb87
fix rst syntax bugs
2014-01-09 14:38:44 -05:00
Kenneth Reitz
0db1d3d675
v2.2.0
2014-01-09 14:33:17 -05:00
Kenneth Reitz
94981e1701
Merge pull request #1854 from Lukasa/220
...
Changelog for 2.2.0.
2014-01-09 11:14:45 -08:00
Cory Benfield
48e2ecc14d
Changelog for 2.2.0.
2014-01-09 19:10:30 +00:00
Cory Benfield
4862d29a96
Make ContentDecodingError a subclass.
...
This should avoid the user having to worry about the new exception.
2014-01-09 19:08:58 +00:00
Dustin Oprea
3ccdfce2e5
Added an SSL TA example.
2014-01-09 11:41:30 -05:00
Kenneth Reitz
14f207f3fc
Merge pull request #1846 from acdha/paranoid-get_netrc_auth
...
get_netrc_auth should handle os.path.expanduser failing
2014-01-08 10:57:09 -08:00
Kenneth Reitz
df1c2335c8
Merge branch 'master' into fix-pickling-adapters
...
Conflicts:
AUTHORS.rst
2014-01-08 13:53:23 -05:00
Kenneth Reitz
b17cad65cf
Merge pull request #1845 from Lukasa/proxy_bypass
...
Resolve proxy_bypass problems.
2014-01-08 10:51:08 -08:00
Kenneth Reitz
a855ba8189
Merge pull request #1827 from pepijndevos/master
...
Use adapter pool size for proxies
2014-01-08 10:50:00 -08:00
Kenneth Reitz
632304209c
Merge pull request #1831 from kevinburke/interlinks
...
Add more interlinks between the documentation
2014-01-08 10:48:25 -08:00
Kenneth Reitz
e93b07eef6
Merge pull request #1832 from kevinburke/docs-warnings
...
Fix warnings when building the docs
2014-01-08 10:45:33 -08:00
Kenneth Reitz
73c3040896
Merge pull request #1836 from sigmavirus24/2014
...
Bump the year ftw
2014-01-08 10:44:20 -08:00
Kenneth Reitz
0f40d8149a
Merge pull request #1849 from kevinburke/urllib3-update
...
Update urllib3 to 232f496
2014-01-07 15:22:24 -08:00
Kevin Burke
e1562afb58
Update urllib3 to 232f496
2014-01-07 12:32:01 -08:00
Chris Adams
a80bd7708d
get_netrc_auth: code cleanup
...
* Stop iterating as soon as we find a netrc file
* More obvious return None
2014-01-07 12:23:11 -05:00
Kenneth Reitz
e40342afbe
/me grumbles
2014-01-07 12:03:24 -05:00
Chris Adams
0b41cec7a4
get_netrc_auth: handle os.path.expanduser failure
...
os.path.expanduser can raise a KeyError when $HOME is not set and the
POSIX getpwuid() call fails, which can happen when running under a UID
which is not in /etc/passwd or when the password file cannot be read.
The upstream bug report http://bugs.python.org/issue20164 is unlikely to
be backported to Python 2.x even if fixed so this change handles
KeyError by skipping netrc authentication.
Closes #1846
2014-01-07 11:34:51 -05:00
Cory Benfield
e2a36dda0a
Don't let proxy_bypass bring you down.
2014-01-07 09:37:59 +00:00
Ian Cordasco
14a1839a45
No one checks docs or a license
2014-01-02 16:05:29 -06:00
Ian Cordasco
81f4412e0e
Bump the year ftw
2014-01-02 16:01:15 -06:00
Kevin Burke
a0e7706440
Fix warnings when building the docs
...
It may be nice to make builds fail if new documentation generates warnings, to
avoid these sorts of problems slipping in in the future.
2013-12-28 00:09:29 -08:00
Kevin Burke
fad8d743b5
Add more interlinks between the documentation
...
Also fixes up tense in a few cases, and adds the `intersphinx` extension so we
can link to the urllib3 documentation when it is called out.
2013-12-27 23:43:55 -08:00
Pepijn de Vos
9e843468de
use adapter pool size for proxies
2013-12-24 11:14:04 +01:00
Kenneth Reitz
99ebac7e84
Merge pull request #1823 from Lukasa/moredocs
...
Update docs to highlight the value of r.encoding.
2013-12-20 06:21:04 -08:00
Cory Benfield
4a6a0c3c65
Update docs to highlight the value of r.encoding.
2013-12-20 09:15:12 +00:00
Kenneth Reitz
e0ba49e780
Merge pull request #1807 from podshumok/fix-request-cookiejar-as-dict
...
cookiejar.iteritems() is broken after 2.1.0 update
2013-12-19 12:38:52 -08:00
Kenneth Reitz
11cd49987a
Merge pull request #1816 from daftshady/master
...
Re-raise DecodeError
2013-12-19 12:38:34 -08:00
daftshady
aad828704d
Re-raise DecodeError
2013-12-19 18:02:56 +09:00
Kenneth Reitz
0eb6dc36f0
Merge pull request #1808 from kennethreitz/fix-cookies-saved-on-redirect
...
Fixes #1805
2013-12-18 07:56:30 -08:00
Kenneth Reitz
d88cd02fd8
Merge pull request #1810 from kennethreitz/swap-charade-for-chardet
...
Swap charade for chardet
2013-12-18 07:52:55 -08:00
Konstantin Podshumok
b8f1263f16
split cookiejar as dict test
2013-12-18 18:50:53 +04:00
Ian Cordasco
d8d9591076
Update the history and change the last last references to charade
2013-12-18 08:46:49 -06:00
Ian Cordasco
9379a14cb4
Fix all remaining references to charade
2013-12-18 08:43:18 -06:00
Ian Cordasco
0bfbacd8b1
Initial work towards replacing charade
2013-12-18 08:42:12 -06:00
Konstantin Podshumok
e6a32d6283
preserve python2-like dict API for RequestCookieJar
2013-12-18 18:09:24 +04:00
Ian Cordasco
642bbf6060
Fixes #1805
...
Sure cookies are persisted to the session, but those new cookies are not added
to the next prepared request. We need to update that new request's CookieJar
with the new cookies.
2013-12-17 22:55:50 -06:00
Konstantin Podshumok
537def4a4f
fix regression with cookiejar.iteritems()
2013-12-18 06:56:53 +04:00
Kenneth Reitz
1832e33753
Merge remote-tracking branch 'origin/master'
2013-12-16 13:19:36 -05:00
Kenneth Reitz
39d12818fe
8,000,000
2013-12-16 13:19:30 -05:00
Ian Cordasco
1500632b60
Move comment to the right place
2013-12-13 22:29:30 -06:00
Erik Wickstrom
d3f3b423ad
Updated AUTHORS.
2013-12-13 22:28:46 -06:00
Erik Wickstrom
16f9798208
Fixed pickle support for requests.adapters.HTTPAdapter by adding
...
'proxy_manager' when unpickling.
2013-12-13 22:28:37 -06:00
Ian Cordasco
cac2077c36
Prevent error when using proxies after picking an Adapter
2013-12-12 13:03:37 -06:00
Cory Benfield
0b680379e5
Merge pull request #1792 from Lukasa/oops
...
Fixup changelog with missing breaking change.
2013-12-12 08:21:38 -08:00
Cory Benfield
456c42b00d
Fixup changelog with missing breaking change.
2013-12-12 16:21:04 +00:00
Kenneth Reitz
9fc0701247
Merge pull request #1772 from mdbecker/make_morsel_to_cookie_more_pythonic
...
Make morsel_to_cookie more pythonic
2013-12-06 07:38:12 -08:00
Michael Becker
837ba94dde
test_requests: convert tests to py.test style
2013-12-06 10:08:42 -05:00
Michael Becker
ea4570da57
cookies: Fix bugs found during CI
2013-12-06 09:02:45 -05:00
Michael Becker
ef5875cc19
cookies: Take a less cowardly approach
...
Per discussion with @sigmavirus24, we'll take the less cowardly approach here.
"the RFC defines the Expires header as a string with the format we're assigning to ``time_template`` so checking if it is a string is unnecessary."
Crossing my fingers that this doesn't break anyones existing code...
2013-12-06 09:02:45 -05:00
Michael Becker
6ac70450dc
AUTHORS: Take credit
2013-12-06 08:57:37 -05:00
Michael Becker
6140d08241
cookies: Replace type checks with try/except
2013-12-06 08:56:30 -05:00
Michael Becker
39841562c5
test_requests: Add tests for morsel_to_cookie
...
These tests will ensure my changes to how we handle 'expires' don't cause any regressions.
2013-12-06 08:56:30 -05:00
Kenneth Reitz
3235766d67
updated CA Bundle!
2013-12-05 17:51:10 -05:00
Kenneth Reitz
57c4684035
Merge remote-tracking branch 'origin/master'
2013-12-05 17:45:05 -05:00
Kenneth Reitz
795f18560b
last changelog entry
2013-12-05 17:44:56 -05:00
Kenneth Reitz
aae7e39a56
further notes and version bump
2013-12-05 17:41:25 -05:00
Kenneth Reitz
ba3dab5047
Merge pull request #1770 from kmadac/master
...
Implemetation of IP address ranges for no_proxy environment variable
2013-12-05 14:40:44 -08:00
Kenneth Reitz
f6107bc151
history notes about v2.1
2013-12-05 17:37:48 -05:00
Kenneth Reitz
1cac72bfa9
Merge pull request #1669 from Lukasa/chunked
...
[WIP] Better chunked handling.
2013-12-05 14:36:10 -08:00
Kenneth Reitz
2dae61c0e3
Merge pull request #1776 from sigmavirus24/fix-1728
...
Fix 1728 (Fixed up from #1729 )
2013-12-05 14:26:58 -08:00
Kenneth Reitz
e851efb29b
Merge pull request #1781 from Lukasa/ucliteral
...
Clean up #1779 .
2013-12-05 14:00:58 -08:00
Cory Benfield
57c138e59b
Remove the unicode literals.
2013-12-05 21:06:11 +00:00
Kenneth Reitz
2c465de332
Merge pull request #1779 from kracekumar/patch-2
...
Made default_user_agent reusable
2013-12-05 11:44:06 -08:00
Kamil Madac
1d42d9d274
function is_ipv4_network renamed
...
more detailed check of cidr format
2013-12-05 11:15:52 +01:00
Kamil Madac
f3bc8b6e1f
Typo fixed
2013-12-05 09:36:49 +01:00
Kamil Madac
21c88c829a
Broad exception fixed
2013-12-05 09:32:29 +01:00
kracekumar
6c1be607f1
Made default_user_agent reusable
...
This is not exciting change, but will help for people who wants to change name of user agent alone. Also name can be unicode.
2013-12-05 12:11:35 +05:30
Kamil Madac
59b29d02f8
Tiny comment fix
2013-12-04 15:11:10 +01:00
Kamil Madac
0d52ef7084
Additional tests added
2013-12-04 15:10:24 +01:00
Ian Cordasco
e8bdcdb0a7
Address feedback from #1729
...
- Make the PreparedRequest's cookie jar an implementation detail
2013-12-04 06:45:18 -06:00
Chase Sterling
8bfe0d873f
Store the request cookiejar in PreparedRequest.cookies fix #1728
...
Conflicts:
requests/sessions.py
2013-12-04 06:38:58 -06:00
Chase Sterling
5b30e960eb
Add a test case for request cookies persisting to session. refs #1728
2013-12-04 06:35:16 -06:00
Kamil Madac
947248129b
Better comments
2013-12-04 11:47:40 +01:00
Kamil Madac
0a4e65c0ed
Tests added
2013-12-04 10:54:36 +01:00
Kamil Madac
fe945345dd
Unnecessary files kmadac.xml deleted
2013-12-04 09:31:56 +01:00
Kamil Madac
dfd3e45ad0
Merge branch 'master' of https://github.com/kmadac/requests
2013-12-04 09:30:01 +01:00
Kenneth Reitz
4bceb312f1
Merge pull request #1768 from Lukasa/credpct
...
Unencode usernames and passwords taken from URLs.
2013-12-03 17:36:00 -08:00
Kenneth Reitz
b2cee7bee8
Merge pull request #1764 from Lukasa/clog
...
Prepare new release (2.1.0)?
2013-12-03 17:35:02 -08:00
Kenneth Reitz
a030a58303
Merge pull request #1766 from Lukasa/qop
...
Quote qop values in digest auth.
2013-12-03 17:33:59 -08:00
Kenneth Reitz
5c915451e7
Merge pull request #1657 from sigmavirus24/fix-session-hooks
...
Honor session hooks
2013-12-03 17:33:42 -08:00
Kenneth Reitz
8b88549bb7
Merge pull request #1713 from daftshady/master
...
Fixed #1711
2013-12-03 17:33:33 -08:00
Kenneth Reitz
3e66f08db7
Merge pull request #1775 from sigmavirus24/add-readme-to-packages
...
Add README to requests/packages
2013-12-03 17:02:25 -08:00
Kamil Madac
6131390345
Revert "Small test added"
...
This reverts commit f0d3edf409 .
2013-12-03 16:41:07 +01:00
Kamil Madac
0eccd7a856
Merge remote-tracking branch 'origin/master'
...
Conflicts:
test_requests.py
2013-12-03 16:34:02 +01:00
Kamil Madac
f0d3edf409
Small test added
2013-12-03 16:30:47 +01:00
Kamil Madac
8aff6f5ed0
Redesigned no_proxy ip range imlementation to use only stdlib functions
2013-12-03 16:23:08 +01:00
Ian Cordasco
617bc8cc1c
Add README to requests/packages
...
- Hopefully people will read this before making changes to vendored libraries
2013-12-03 09:17:37 -06:00
Kamil Madac
f9a48e0f0b
Added kamil.madac to Authors
2013-12-02 22:42:20 +01:00
Kamil Madac
9ec222c363
Added test for domain name no_proxy matching.
2013-12-02 22:40:26 +01:00
Kamil Madac
2c914126ba
Added possibility to use IP ranges (ex. 192.168.1.0/24) to no_proxy environment variable
2013-12-02 22:32:29 +01:00
Cory Benfield
e2961b9f91
Unquote the URL before extracting the auth.
2013-12-01 10:29:14 +00:00
Cory Benfield
4f786e4f62
Tests for #1767 .
2013-12-01 10:29:10 +00:00
Cory Benfield
92d3616b02
Merge remote-tracking branch 'upstream/pr/1765' into qop
2013-11-29 16:44:13 +00:00
Cory Benfield
fecb35a08e
Quote qop values in digest auth.
2013-11-29 08:37:25 +00:00
佐藤 建太
649dac1029
quote qop options in Digest Auth
...
Based on RFC2617 (http://tools.ietf.org/html/rfc2617 ), the value of
'qop-options' directive should be quoted with double quotes:
qop-options
This directive is optional, but is made so only for backward
compatibility with RFC 2069 [6]; it SHOULD be used by all
implementations compliant with this version of the Digest
scheme. If present, it is a quoted string of one or more
tokens indicating the "quality of protection" values supported by
the server. The value "auth" indicates authentication; the
value "auth-int" indicates authentication with
integrity protection; see the
curl comamnd-line tool also appends these quotes. You can see this
by `curl -v --digest --user user:passwd http://example.com/digest-auth `.
Unfortunately, some minor server-side implementations seem to be sensitive
on this difference.
2013-11-29 15:28:47 +09:00
Cory Benfield
dc31c11339
Missed a couple.
2013-11-28 18:37:45 +00:00
Cory Benfield
e45d425343
Prepare changelog.
2013-11-28 18:32:28 +00:00
Kenneth Reitz
847735553a
Merge pull request #1762 from dstufft/update-urllib3
...
Update urllib3 to 929f1586
2013-11-27 09:23:40 -08:00
Donald Stufft
b825bbd4a2
Update urllib3 to 929f1586
2013-11-26 21:41:15 -05:00
daftshady
c26a6c310c
remove unused import
2013-11-26 15:38:48 +09:00
daftshady
8eb40c777e
remove unnecessary try
2013-11-26 15:28:59 +09:00
daftshady
8b2255d0f8
double try statement
2013-11-26 15:28:59 +09:00
daftshady
5fcaf45c33
update 'merge_cookies' not to create new instance.
2013-11-26 15:28:59 +09:00
daftshady
1adba3c9e9
modified 'merge_cookies' and update tests.
...
made sessions.py to use that method when merging cookies.
2013-11-26 15:28:59 +09:00
daftshady
30018e604c
update 'merge_cookies'
2013-11-26 15:28:59 +09:00
daftshady
e40c1637c9
added new method 'merge_cookies' and use it when merging session cookies with param cookies.
2013-11-26 15:28:59 +09:00
daftshady
e3c771f36b
added test case related to #1711
2013-11-26 15:22:46 +09:00
daftshady
2bbd7ba1c2
Fixed #1711
2013-11-26 15:22:46 +09:00
Kenneth Reitz
340b245903
Merge pull request #1760 from akitada/fix-hangs-on-streaming-uploads
...
Fix hangs on streaming uploads with HTTPDigestAuth
2013-11-25 11:40:10 -08:00
Kenneth Reitz
e5b9ae1f8e
Merge pull request #1754 from Lukasa/verb_change
...
Match the HTTPbis on HTTP 301.
2013-11-25 11:40:00 -08:00
Akira Kitada
3a9d9f2279
Fix hangs on streaming uploads with HTTPDigestAuth
...
When using Digest Authentication, the client resends the same request
after the server responds with the 401 "Unauthorized". However, when
doing streaming uploads, it gets stuck because the body data (a
file-like object) is already consumed at the initial request.
The patch fixes this by rewinding the file-like object before
resending the request.
2013-11-25 22:29:53 +09:00
Cory Benfield
3369d87da9
Cleanup the redirect if blocks.
2013-11-24 11:13:49 +00:00
Cory Benfield
470af31f4a
Handle 301s 'properly'.
2013-11-24 11:09:00 +00:00
Kenneth Reitz
3327652623
Merge pull request #1747 from daftshady/lowercase
...
#1746 don't lowercase the whole url
2013-11-20 01:05:15 -08:00
Kenneth Reitz
8a4c83022a
Merge pull request #1742 from kevinburke/docs
...
Add make target to build the documentation
2013-11-20 01:02:38 -08:00
Kenneth Reitz
af921c7f51
Merge pull request #1733 from ionrock/pickleable-responses
...
Response and Request objects are pickleable.
2013-11-20 01:01:26 -08:00
Kenneth Reitz
248c9ec53f
Merge pull request #1745 from nonm/master
...
Small fix broken cookie parse
2013-11-20 00:58:21 -08:00
daftshady
4972133a9b
use geturl to lower scheme
2013-11-19 19:54:46 +09:00
daftshady
8c8938e8cb
issue #1746 : Don't lowercase the whole URL!
2013-11-19 18:59:22 +09:00
nonm
cfbbd15de7
Small fix broken cookie parse
2013-11-18 13:32:59 -08:00
Kevin Burke
0c88ae42e6
wording
2013-11-17 18:39:01 -08:00
Kevin Burke
4b69798796
Add target to build the documentation
2013-11-17 18:38:15 -08:00
Kenneth Reitz
947375e982
Merge pull request #1739 from pengfei-xue/devel
...
add coverage make target
2013-11-15 10:51:47 -08:00
Pengfei Xue
afaed3343a
add coverage make target
2013-11-15 22:11:49 +08:00
Kenneth Reitz
42bffb575d
Merge pull request #1735 from Lukasa/wheel
...
Wheel
2013-11-15 01:33:38 -08:00
Kenneth Reitz
bcb10af64f
Merge pull request #1717 from jvantuyl/master
...
loosen URL handling for non-native URL schemes
2013-11-15 01:33:03 -08:00
Jayson Vantuyl
b149be5d86
loosen URL handling for non-native URL schemes
2013-11-15 01:25:32 -08:00
Cory Benfield
abf96670ce
Add wheel to dev requirements.
2013-11-14 13:23:45 +00:00
Cory Benfield
86bdd85c4a
Wheel support.
2013-11-13 19:09:49 +00:00
Eric Larson
512beb8795
Response and Request objects are pickleable.
...
Includes a basic test. More could be add to confirm known attributes
that could cause problems.
2013-11-06 20:01:27 -06:00
Kenneth Reitz
a123f8351d
Merge pull request #1660 from sigmavirus24/parse-cookies-when-users-set-host-header
...
Parse cookies when users set custom Host header
2013-11-06 11:19:31 -08:00
Kenneth Reitz
7ccbcd28f0
Merge pull request #1724 from daftshady/dev3
...
Fixed #1723
2013-11-04 13:58:12 -08:00
Kenneth Reitz
598f977df4
Merge pull request #1726 from t-8ch/update_urllib3
...
Update urllib3
2013-11-04 13:55:58 -08:00
Thomas Weißschuh
c477242376
add myself to AUTHORS.rst
2013-11-04 18:54:42 +00:00
Thomas Weißschuh
3ef4115349
upate urllib3 to a0c986a24d
2013-11-04 18:53:41 +00:00
daftshady
1511dfa637
moved logic to Session object and added test case
2013-11-04 22:32:17 +09:00
daftshady
495f87363b
fixed #1723
2013-11-04 18:33:14 +09:00
Ian Cordasco
1ba83c47ce
Merge pull request #1722 from schinckel/patch-1
...
Fix documentation typo.
2013-11-03 18:16:21 -08:00
Matthew Schinckel
edf7e5f420
Fix documentation typo.
2013-11-04 12:29:24 +10:30
Cory Benfield
9ffcbb82a2
Capitalisation.
2013-11-01 11:14:05 +00:00
Cory Benfield
c86de38780
Merge pull request #1720 from Lukasa/docs
...
Chardet -> charade.
2013-11-01 02:21:01 -07:00
Cory Benfield
20f8027641
Chardet -> charade.
2013-11-01 09:20:22 +00:00
Kenneth Reitz
0228851f19
Revert "Merge pull request #1710 from jvantuyl/master"
...
This reverts commit a8300c0ae6 , reversing
changes made to 2e196be143 .
2013-10-30 15:32:19 -04:00
Kenneth Reitz
a8300c0ae6
Merge pull request #1710 from jvantuyl/master
...
loosen URL handling for non-native protocols
2013-10-30 10:17:26 -07:00
Jayson Vantuyl
a9ec28a1b4
don't prepare URLs for oddball schemes
2013-10-30 10:04:43 -07:00
Kenneth Reitz
2e196be143
Merge pull request #1709 from samuelhug/test-branch
...
Fix for AppEngine
2013-10-28 10:40:52 -07:00
Kenneth Reitz
ebdd5cabab
further cleanup examples
2013-10-28 13:39:04 -04:00
Kenneth Reitz
a9839dc7db
Merge remote-tracking branch 'origin/master'
2013-10-28 13:36:08 -04:00
Kenneth Reitz
2c1f51be0e
fix @lukasa's lack of taste :)
...
#1702
2013-10-28 13:36:04 -04:00
Kenneth Reitz
129ee3510f
Merge pull request #1702 from Lukasa/docs_n_stuff
...
Improve the PreparedRequest docs.
2013-10-28 10:34:07 -07:00
Kenneth Reitz
55ad38964b
Merge pull request #1706 from daftshady/dev2
...
restoring pull request fixing #1623
2013-10-28 10:32:21 -07:00
Kenneth Reitz
2d5542502b
Merge pull request #1707 from canibanoglu/tests
...
Modified the tests so that they use py.test convention
2013-10-28 10:32:09 -07:00
Kenneth Reitz
c4a7760ca6
Merge pull request #1708 from alex/patch-2
...
close files in setup.py
2013-10-28 10:31:59 -07:00
Samuel Hug
a501b0ca81
Fix for AppEngine
2013-10-28 09:51:56 -07:00
Alex Gaynor
3488f3ade7
close files in setup.py
...
otherwise python3.4 warns
2013-10-26 16:43:08 -07:00
Can Ibanoglu
aa60b8ea5b
Modified the tests so that they use py.test convention
2013-10-26 13:38:11 +03:00
daftshady
6931bd6715
second commit : Fixed #1623 . Added 'MD5-sess' algorithm to HTTPDigestAuth
2013-10-26 18:14:19 +09:00
Kenneth Reitz
25f86f1347
clean up sidebar
2013-10-24 18:09:12 -04:00
Kenneth Reitz
1f83ccb308
get support
2013-10-24 18:07:47 -04:00
Kenneth Reitz
592fb34a3d
try gumroad overlay
2013-10-24 18:05:24 -04:00
Kenneth Reitz
cb0d4efba2
projects
2013-10-24 18:01:50 -04:00
Kenneth Reitz
3d8d465a90
"get updates"
2013-10-24 18:00:52 -04:00
Kenneth Reitz
ded42e6498
newsletter
2013-10-24 17:58:30 -04:00
Cory Benfield
e8683f00a6
Improve the PreparedRequest docs.
2013-10-24 21:14:46 +01:00
Kenneth Reitz
7b5c11f66b
Merge remote-tracking branch 'origin/master'
2013-10-24 10:54:48 -04:00
Kenneth Reitz
afa7594a20
build status isn't useful anyway
2013-10-24 10:54:45 -04:00
Kenneth Reitz
6e52b5fe41
Merge pull request #1689 from Lukasa/unicode
...
Use builtin_str for all auto-set header values.
2013-10-24 07:38:52 -07:00
Kenneth Reitz
52fe3f790e
Merge pull request #1693 from kevinburke/schema-message
...
Add clarification to MissingSchema error
2013-10-24 07:35:40 -07:00
Kenneth Reitz
dd777b3d7e
urllib3/chardet note in release for v2.0.1
2013-10-24 10:32:05 -04:00
Kenneth Reitz
df272b7740
update internal dependencies
2013-10-24 10:31:05 -04:00
Kenneth Reitz
db108a19c8
Merge pull request #1700 from kennethreitz/v2.0.1
...
v2.0.1
2013-10-24 07:29:11 -07:00
Kenneth Reitz
c244f8ea87
more release notes for v2.0.1
2013-10-24 10:28:30 -04:00
Kenneth Reitz
f045979f8d
release notes
2013-10-24 10:26:47 -04:00
Kenneth Reitz
3d59569264
v2.0.1
2013-10-24 10:00:49 -04:00
Kenneth Reitz
5469291296
$ make ci
2013-10-24 09:54:14 -04:00
Kenneth Reitz
3b35f1c37d
replace invoke with makefiles
2013-10-24 09:53:00 -04:00
Kenneth Reitz
e813574497
remove travis support
2013-10-24 09:47:31 -04:00
Kenneth Reitz
e1e6255b48
Merge pull request #1699 from kennethreitz/cert-update
...
Latest Mozilla Certs
2013-10-24 06:44:26 -07:00
Kenneth Reitz
1a9f0be6df
Latest Mozilla Certs
...
generated via https://github.com/tiran/extract-nss-root-certs
2013-10-24 09:40:39 -04:00
Kenneth Reitz
d9ec7000db
Merge pull request #1696 from canibanoglu/remove-parentheses
...
Removed extra extra parentheses in SessionRedirectMixin.resolve_redirects
2013-10-24 04:10:14 -07:00
Cory Benfield
6b975cbd82
Merge pull request #1697 from canibanoglu/docstring-PreparedRequest
...
Deleted the extra word in PreparedRequest.prepare's docstring
2013-10-22 14:19:47 -07:00
Can Ibanoglu
76be17b00a
Deleted the extra word in PreparedRequest.prepare's docstring
2013-10-23 00:15:41 +03:00
Can Ibanoglu
0cd6959f19
Removed extra extra parentheses in SessionRedirectMixin.resolve_redirects
2013-10-22 23:48:04 +03:00
Cory Benfield
741fd3ded5
Remove requests.*() from docs.
...
This looks like a typo, even though it isn't.
2013-10-21 11:57:06 +01:00
Cory Benfield
ff2b496e2d
Merge pull request #1695 from sigmavirus24/docs
...
Add bit to docs about iter_content
2013-10-21 01:31:50 -07:00
Ian Cordasco
6a24eb6d20
Add bit to docs about iter_content
2013-10-20 12:29:43 -05:00
Kevin Burke
b5d2160ef8
use .format()
2013-10-20 10:17:54 -07:00
Kevin Burke
333ac101ba
Add clarification to MissingSchema error
2013-10-20 00:46:41 -07:00
Cory Benfield
8a42d5fb41
Use builtin_str for all auto-set header values.
2013-10-18 18:34:29 +01:00
Kenneth Reitz
e91ee0e246
Merge remote-tracking branch 'origin/master'
2013-10-17 02:33:05 -04:00
Kenneth Reitz
ab8e43a196
fix unprotected build status link
2013-10-17 02:32:16 -04:00
Kenneth Reitz
c05b1bfca9
Update README.rst
2013-10-17 01:51:50 -04:00
Kenneth Reitz
011f6dac82
Merge remote-tracking branch 'origin/master'
2013-10-17 01:47:39 -04:00
Kenneth Reitz
f35363e584
test out requests-trunk badge
2013-10-17 01:47:00 -04:00
Cory Benfield
c8d3dcb315
Small grammar fix.
2013-10-16 22:11:54 +01:00
Cory Benfield
2ec1bdd0ab
Merge pull request #1675 from houqp/master
...
fix doc for redirction and history
2013-10-16 14:10:31 -07:00
Qingping Hou
3d0a1eb90d
fix doc for redirction and history
...
In current version of requests, allow_redirect is disabled by default
only for HEAD requests
2013-10-16 16:59:22 -04:00
Kenneth Reitz
65ec319f01
Merge pull request #1673 from daftshady/dev
...
fixed typo
2013-10-15 02:47:55 -07:00
daftshady
17dd3c0a76
fixed typo
2013-10-15 18:33:51 +09:00
Cory Benfield
9606f0240b
PEP8 fix to make me happier.
2013-10-13 09:54:01 +01:00
Cory Benfield
31c0962e83
Better connection behaviour for chunked upload.
2013-10-13 09:53:44 +01:00
Kenneth Reitz
3f84190a7b
Merge pull request #1667 from Lukasa/json2
...
Second time lucky for json related fixes.
2013-10-12 14:15:30 -07:00
Cory Benfield
bea2060182
'or content' does us no good.
2013-10-12 21:05:34 +01:00
Ian Cordasco
6632fb87c0
Fix typo
2013-10-11 20:42:52 -05:00
Ian Cordasco
df7aece2c8
Comment our reasonsing for the special cases
2013-10-10 20:43:18 -05:00
Kenneth Reitz
097121d214
Merge pull request #1662 from voberoi/patch-1
...
Adding myself to AUTHORS.rst
2013-10-10 15:45:14 -07:00
Vikram Oberoi
21c9680a11
Adding myself to AUTHORS.rst
...
Taking a page out of @mattspitz's book.
https://github.com/kennethreitz/requests/pull/1439
#dreamsdocometrue
2013-10-10 18:13:51 -04:00
Kenneth Reitz
8d63577b78
Merge pull request #1661 from mattspitz/super_len_compatibility
...
Increasing super_len compatibilty to include BytesIO and cStringIO objects.
2013-10-10 12:11:14 -07:00
Matt Spitz
2c2af651c4
Adding myself to AUTHORS.rst.
2013-10-10 15:08:34 -04:00
Matt Spitz
13a6e02ccd
Increasing super_len compatibilty to include BytesIO and cStringIO objects.
...
Added a check for 'getvalue' attr, calling it to retrieve the length if we can.
We also try/except the fileno() call, which can throw
io.UnsupportedOperation for BytesIO because, well, they're not files.
2013-10-10 14:54:47 -04:00
Cory Benfield
025543b604
Merge pull request #1658 from randymorris/master
...
False -> True typo
2013-10-08 11:36:12 -07:00
Randy Morris
f32b86dba2
False -> True typo
2013-10-08 14:19:30 -04:00
Ian Cordasco
0bb8be0e5b
Parse cookies when users set custom Host header
2013-10-07 21:43:21 -05:00
Ian Cordasco
a4605fe324
Fix failing test to preserve behaviour
2013-10-07 21:17:59 -05:00
Ian Cordasco
f12584b94a
Add tests around hook behaviour
2013-10-07 21:17:46 -05:00
Kenneth Reitz
43477edc91
Merge pull request #1636 from Lukasa/httpsprox
...
Don't send the full URL on CONNECT messages.
2013-10-07 16:23:18 -07:00
Kenneth Reitz
318ca102cd
Merge pull request #1635 from daftshady/dev
...
Fixed #1630 and added test case.
2013-10-07 16:22:49 -07:00
Kenneth Reitz
14c12fb151
Merge pull request #1637 from Lukasa/redir
...
Correctly lowercase a redirect scheme.
2013-10-07 16:21:29 -07:00
Kenneth Reitz
3246fc088a
Merge pull request #1640 from abarnert/master
...
Accept per-file headers in multipart file POST messages.
2013-10-07 16:21:16 -07:00
Cory Benfield
45873e2a0a
Merge pull request #1656 from randymorris/master
...
Update verbiage about streaming requests
2013-10-07 13:45:11 -07:00
Ian Cordasco
5bf396d5d1
Honor session hooks
2013-10-07 12:23:16 -05:00
Randy Morris
66339b21fa
update verbiage about streaming requests
...
The Twitter API is no longer used in the example.
2013-10-07 10:43:48 -04:00
Cory Benfield
d8180f5dac
Merge pull request #1654 from riyadparvez/deprecation-removal
...
Deprecation removal and other idiomatic updates
2013-10-05 10:02:46 -07:00
Riyad Parvez
48f59aa1f7
back to BaseException
2013-10-05 22:49:54 +06:00
Riyad Parvez
56c82c52b0
fixed print statement
2013-10-05 20:12:18 +06:00
Riyad Parvez
36485983ca
fixed print statement
2013-10-05 20:11:30 +06:00
Riyad Parvez
6087015f1c
Update advanced.rst
2013-10-05 20:10:27 +06:00
Riyad Parvez
5c92c72e2c
removed deprecated while 1:
2013-10-05 09:59:47 +06:00
Riyad Parvez
4656c9b89b
fixed print statement
2013-10-05 09:57:18 +06:00
Riyad Parvez
8370e66464
fixed print statement
2013-10-05 09:56:11 +06:00
Riyad Parvez
f9b7d92b91
updated print statement
2013-10-05 09:55:14 +06:00
Riyad Parvez
c8a68334a7
replaced deprecated BaseException
2013-10-05 09:53:34 +06:00
Cory Benfield
953b234aff
Merge pull request #1649 from dpursehouse/minor-doc-updates
...
Minor doc updates
2013-10-04 01:55:19 -07:00
Kenneth Reitz
c9bee155c2
Merge pull request #1651 from GrahamDumpleton/master
...
Translate urllib3 ProxyError into a requests ProxyError derived from ConnectionError.
2013-10-03 23:14:26 -07:00
Graham Dumpleton
4291f76c99
Translate urllib3 ProxyError into a requests ProxyError derived from ConnectionError.
2013-10-04 16:07:11 +10:00
David Pursehouse
82e6706722
Minor doc updates
...
- Improve wording of sentence describing proxy environment
variable setting.
- Mention that proxy URLs must include the scheme.
2013-10-04 10:19:33 +09:00
Andrew Barnert
af4fb8cedc
Accept per-file headers in multipart file POST messages.
...
- Each file in the `files` argument can now be a 4-tuple, instead of
just a file, 2-tuple, or 3-tuple. If it is, the last value in the
tuple is a dictionary of extra headers.
2013-09-30 17:07:13 -07:00
daftshady
c8fc19a779
add myself to authors.
2013-09-29 02:27:20 +09:00
daftshady
012f0334ce
added param to cookiejar_from_dict instead of creating new method.
2013-09-29 01:08:58 +09:00
Cory Benfield
0051837af4
Correctly lowercase a redirect scheme.
2013-09-28 17:01:32 +01:00
Cory Benfield
8b7fcfb49a
Don't send the full URL on CONNECT messages.
2013-09-28 15:46:43 +01:00
daftshady
d22eaf96e2
Fixed #1630
2013-09-28 23:44:27 +09:00
daftshady
373166d833
checkout auth
2013-09-28 16:41:08 +09:00
daftshady
39fe0068aa
Fixed #1630 , added test case for cookie persistence.
2013-09-28 16:33:05 +09:00
daftshady
1d1831ba40
fixed extra bonus bug
2013-09-27 22:17:40 +09:00
daftshady
3501ea4634
Fixed #1623 . Added 'MD5-sess' algorithm to HTTPDigestAuth
2013-09-26 15:40:12 +09:00
Cory Benfield
9968a10fcf
Typo in changelog.
2013-09-25 14:00:17 +01:00
Kenneth Reitz
768b175fee
Merge pull request #1621 from davidfischer/migrate-2-0
...
Added migrating to 2.x docs
2013-09-24 19:02:18 -07:00
David Fischer
a17f5592f8
Added link to @Lukasa's blog - the source material
2013-09-24 18:59:04 -07:00
David Fischer
fbb8d32c4e
Added migrating to 2.x docs
2013-09-24 18:35:22 -07:00
Kenneth Reitz
4401620111
add history to the docs
2013-09-24 15:08:12 -04:00
Kenneth Reitz
b8a8835151
readme fix
2013-09-24 14:41:39 -04:00
Kenneth Reitz
4f463e897a
Merge remote-tracking branch 'origin/master'
2013-09-24 14:31:25 -04:00
Kenneth Reitz
58eacfa1ad
Merge pull request #1619 from Lukasa/master
...
Up to date CL.
2013-09-24 11:31:13 -07:00
Kenneth Reitz
c93419f512
TimeoutSauce!
2013-09-24 14:31:00 -04:00
Cory Benfield
53ba629a23
Up to date CL.
2013-09-24 19:26:31 +01:00
Kenneth Reitz
62925fb668
note on timeouts
2013-09-24 14:22:02 -04:00
Kenneth Reitz
94da24e387
v2.0.0
2013-09-24 14:19:07 -04:00
Kenneth Reitz
2d283c9f2d
2.0.0
2013-09-24 14:17:17 -04:00
Kenneth Reitz
54ad646067
merge 2.0 insto master
2013-09-24 14:13:28 -04:00
Kenneth Reitz
12760f2295
runscope!
2013-09-24 14:08:28 -04:00
Kenneth Reitz
c64c0ab121
prototype for new urllib3 timeouts
2013-09-24 14:06:24 -04:00
Kenneth Reitz
2f39e0e2aa
new urllib3
2013-09-24 13:59:38 -04:00
Kenneth Reitz
23ced527f7
Merge pull request #1503 from skastel/master
...
Fixing error return to be consistent with tuple return at the end of the method
2013-09-24 10:48:07 -07:00
Kenneth Reitz
2affd6385e
Merge pull request #1602 from sigmavirus24/handle_multiple_qop_types
...
Handle multiple qop types
2013-09-24 10:46:16 -07:00
Kenneth Reitz
58376489af
Merge pull request #1585 from rvoicilas/master
...
Use values() when the keys are not being used
2013-09-24 10:45:46 -07:00
Kenneth Reitz
a2dbf54456
Merge pull request #1541 from Lukasa/releasenote
...
[2.0] Tracking PR for the 2.0 changelog
2013-09-24 10:45:11 -07:00
Kenneth Reitz
03d844f926
Merge pull request #1565 from Lukasa/relative
...
Don't absolute import things we've vendored.
2013-09-24 10:39:09 -07:00
Kenneth Reitz
9ffc5e6a95
runscope
2013-09-24 13:31:29 -04:00
Ian Cordasco
22e31b4b73
Handle case when WWW-Authenticate returns multiple qops
...
In Digest Access Authentication there are two possible values (four if you
count the not-present and both cases) for authentication. We were narrowly
handling one of the four cases. Now we handle two.
2013-09-13 22:29:42 -05:00
Kenneth Reitz
c0e9f411fc
Merge pull request #1598 from Lukasa/defaults
...
[2.0] Python default arguments are hard
2013-09-13 06:17:41 -07:00
Cory Benfield
61421843bc
Python defaults arguments are hard.
2013-09-13 14:10:09 +01:00
Cory Benfield
ce6762ff63
Fixup unicode in AUTHORS file
2013-09-12 10:34:34 +01:00
Cory Benfield
d8f2463b57
Merge pull request #1592 from homm/master
...
remove extra mention of dangerous `r.raw`
2013-09-12 02:29:16 -07:00
homm
f0c592b09e
Update AUTHORS.rst
2013-09-12 13:27:06 +04:00
homm
a4cd1a85d6
fix spelling
2013-09-12 13:21:54 +04:00
homm
3440fca2e8
clearly describe r.raw in Body Content Workflow
2013-09-12 13:13:51 +04:00
homm
10b6d77945
remove extra mention of dangerous r.raw
2013-09-12 10:20:47 +04:00
Cory Benfield
917a15f154
Merge pull request #1591 from sayanchowdhury/patch-1
...
minor typo: Fix requests spelling
2013-09-11 08:16:29 -07:00
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
Radu Voicilas
056da86f6d
Use values() when the keys are not being used
2013-09-09 15:21:36 +03:00
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
88011f4032
Bring release note current to 1st Sept.
2013-09-01 18:46:46 +01:00
Cory Benfield
1aa7658256
Don't absolute import vendored things.
2013-09-01 18:10:09 +01: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
Kenneth Reitz
efbae1855b
Merge pull request #1552 from Lukasa/noproxy
...
Allow spaces in the no_proxy environ variable
2013-08-23 17:23:57 -07:00
Cory Benfield
f040b2aa5d
Allow spaces in the no_proxy environ variable.
2013-08-23 12:37:03 +01:00
Kenneth Reitz
09c52e7282
Merge pull request #1537 from Lukasa/datetime
...
Allow non-string objects to be posted as data alongside files.
2013-08-21 11:46:27 -07:00
Kenneth Reitz
4b6649e37b
Merge pull request #1527 from paul-matthews/restrict-hooks-access
...
Raise an error for unsupported hook event
2013-08-21 11:28:23 -07:00
Kenneth Reitz
aeeb0af3a2
Merge pull request #1536 from Lukasa/IOError
...
RequestsException subclasses IOError
2013-08-21 11:25:20 -07:00
Cory Benfield
148c1b5c13
Begin work on the 2.0 changelog.
2013-08-19 13:28:05 +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
Cory Benfield
f44b86e039
Allow non-string objects to be data with files
2013-08-17 07:27:58 +01:00
Cory Benfield
3bc01eed6f
RequestException subclasses IOError.
2013-08-17 07:17:03 +01: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
d8268fb7b4
Merge pull request #1515 from schlamar/https-proxy-2.0
...
[2.0] Https proxy support
2013-08-14 13:41:08 -07:00
Cory Benfield
2e5a674601
Add proxy_headers functionality.
...
This brings us in line with urllib3's fancy new magic for sending
headers to HTTP(S) proxies.
2013-08-14 09:47:44 +01:00
Paul Matthews
61617e74ed
Raise an error for unsupported hook event
...
* Raises a ValueError for an unsupported hook event
2013-08-12 15:27:17 +01:00
Stephen Huenneke
b676bf3214
Fixing tests to verify thrown ValueError's.
2013-08-08 09:20:41 -07:00
Stephen Huenneke
9dd823c289
Raising ValueError's when we're passed inconsistent POST data and files dict.
2013-08-06 11:04:03 -07:00
Kenneth Reitz
d3b786399e
Merge pull request #1516 from Lukasa/io
...
UnsupportedOperation errors
2013-08-06 08:43:44 -07:00
Cory Benfield
a5e5a51fb4
Catch UnsupportedOperation.
2013-08-03 19:24:23 +01:00
schlamar
09d97c1126
Added entry to AUTHORS.
2013-08-03 13:59:38 +02:00
schlamar
6a3ca7372f
Added proxy support to feature list.
2013-08-03 13:59:38 +02:00
ms4py
c951f0543c
Cache manager for proxy connection.
2013-08-03 13:59:28 +02:00
ms4py
134699faf9
Fix for new proxy API.
2013-08-03 13:57:15 +02:00
ms4py
d06dabab59
Update urllib3 to 14b8945
2013-08-03 13:55:19 +02:00
Kenneth Reitz
a05aba1033
Merge pull request #1514 from Lukasa/verror
...
Better percent-escape exception.
2013-08-02 09:48:33 -07:00
Cory Benfield
5a26241287
Better percent-escape exception.
2013-08-02 12:29:23 +01:00
Kenneth Reitz
abfb38bd57
Merge pull request #1508 from dieterv/master
...
remove duplicate comment
2013-07-31 18:36:07 -07:00
Kenneth Reitz
bd1f1404a0
Merge branch 'fix_401_cookies' of git://github.com/sigmavirus24/requests into 2.0
2013-07-31 21:33:24 -04:00
Kenneth Reitz
f865d61713
Merge branch 'proxyscheme' of git://github.com/Lukasa/requests into 2.0
2013-07-31 21:27:01 -04:00
Kenneth Reitz
1a6637c285
Merge branch 'keytype' of git://github.com/Lukasa/requests into 2.0
2013-07-31 21:25:57 -04:00
Kenneth Reitz
22701d149a
Merge pull request #1500 from gavrie/master
...
Update urllib3 to d89d508
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
Stephen Huenneke
f75ee9fb6e
Making sure we check for str/unicode.
2013-07-29 14:42:47 -07:00
Stephen Huenneke
8d9d9fb064
Fixing error return to be consistent with tuple return at the end of the method.
2013-07-29 13:31:06 -07:00
Cory Benfield
7de6b1e162
Instantiate the CID directly.
...
No need to do this the slow way now. Thanks to Colin (@cdunklau) for the
idea.
2013-07-29 14:52:44 +01:00
Cory Benfield
ec2859c0de
Modify new CID tests to use native string keys.
2013-07-29 14:52:44 +01:00
Cory Benfield
f5775594cc
Header keys should be native strings.
...
This commit follows a discussion on IRC. For more information, see the
Pull Request associated with it.
2013-07-29 14:52:44 +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
840540b6b1
Proxy urls should have explicit schemes.
2013-07-28 07:16:06 +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
Ian Cordasco
286ddb672d
Take advantage of the new copy method
2013-07-27 23:08:46 -04:00
Ian Cordasco
972089826e
Fixed finally. Also requires updated httpbin.org
2013-07-27 23:07:25 -04:00
Ian Cordasco
c25a72ea24
Make the regular tests pass
...
I broke Digest Auth completely
2013-07-27 23:07:25 -04:00
Ian Ross and Ian Cordasco
73635df1b2
Start work on sending cookies back
...
On 401's the cookies received aren't sent back to the server. See: #1336
2013-07-27 23:07:25 -04: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
Ian Cordasco
c0cb698191
Derp. Use compat
2013-07-23 10:48:45 -05:00
Ian Cordasco
d2176cf052
Use urlparse.urljointo construct httpbin url
2013-07-23 10:24:30 -05:00
Kenneth Reitz
f71bff1226
Merge pull request #1482 from dpursehouse/fix-testcases-with-proxy
...
Fix test cases that fail when running behind a proxy
2013-07-23 05:23:35 -07:00
Kenneth Reitz
47f5a0db64
Merge pull request #1483 from dpursehouse/httpbin-url-without-trailing-slash
...
Test cases fail when `HTTPBIN_URL` does not have trailing slash
2013-07-23 05:23:11 -07:00
David Pursehouse
9e771aa79c
Fix test cases that fail when running behind a proxy
...
When sending a request via `Session.send()` the proxies must be
explicitly given with the `proxies` argument. This is not done
in the test cases, which means that they fail when run on a system
that is behind a proxy.
Update test cases to make sure the proxies are set in the sessions.
2013-07-23 16:55:27 +09:00
David Pursehouse
29db7b7216
Test cases fail when HTTPBIN_URL does not have trailing slash
...
Test cases can be run against a local httpbin server defined by
the `HTTPBIN_URL` environment variable, but it causes tests to
fail if the given URL does not end with a slash.
Ensure that the URL always ends with a slash.
2013-07-23 15:29:36 +09:00
Kenneth Reitz
66de6b528d
Merge pull request #1479 from dpursehouse/fix-warnings
...
Fix a few warnings flagged by PyDev
2013-07-22 01:31:16 -07:00
David Pursehouse
4f64938ff0
Fix a few warnings flagged by PyDev
...
- Unused import of urlparse
- Unnecessary definition of variable
- Incorrect indentation
2013-07-22 17:14:45 +09:00
Kenneth Reitz
e5597dfcce
Merge pull request #1478 from dpursehouse/add-me-to-authors
...
Add myself to the authors list
2013-07-22 00:09:35 -07:00
David Pursehouse
787c1e8c6e
Add myself to the authors list
2013-07-22 15:19:10 +09:00
Cory Benfield
ec6584f2d1
Merge pull request #1477 from dpursehouse/other-auth-basic-example
...
Add a simple example of custom authentication in the documentation
2013-07-21 23:04:31 -07:00
David Pursehouse
62f0df4434
Add a simple example of custom authentication in the documentation
...
Refs #1471
2013-07-22 09:14:33 +09:00
David Pursehouse
5cdcf58b3b
Wrap long lines in the authentication documentation
2013-07-22 09:08:47 +09:00
Ian Cordasco
b84547d786
Add copy method to PreparedRequest objects
2013-07-20 17:08:35 -04:00
Kenneth Reitz
d83919a6f7
Merge pull request #1474 from Kwpolska/docfix
...
Some tiny fixes to the documentation
2013-07-20 05:15:06 -07:00
Kwpolska
2ef782b8e6
further treatment
...
Signed-off-by: Kwpolska <kwpolska@gmail.com >
2013-07-20 13:54:33 +02:00
Kwpolska
b738c97ec3
session object should be uppercase
...
Signed-off-by: Kwpolska <kwpolska@gmail.com >
2013-07-20 13:39:50 +02:00
Kwpolska
022c370bcd
fixed underline
...
Signed-off-by: Kwpolska <kwpolska@gmail.com >
2013-07-20 13:31:37 +02:00
Kwpolska
587385bfe0
Grammar fixes and such
...
Signed-off-by: Kwpolska <kwpolska@gmail.com >
2013-07-20 12:56:25 +02:00
Kwpolska
ca033b83fe
Some cosmetic updates to the docs
...
Signed-off-by: Kwpolska <kwpolska@gmail.com >
2013-07-20 12:12:57 +02:00
Cory Benfield
949a29c34f
Merge pull request #1470 from Lukasa/carset
...
Remove charset from JSON types: not valid.
2013-07-19 06:45:56 -07:00
Cory Benfield
be884341f4
Merge pull request #1465 from dpursehouse/doc-netrc-authentication
...
Improve documentation of netrc authentication
2013-07-19 06:45:17 -07:00
David Pursehouse
c88fd8cc9d
Move netrc authentication documentation under the Basic Auth section
2013-07-19 22:37:57 +09:00
Cory Benfield
8385fb397b
Remove charset from JSON types: not valid.
2013-07-19 14:03:20 +01:00
Cory Benfield
e0df4b5f18
Merge pull request #1466 from s7v7nislands/fix_doc
...
Fix doc
2013-07-19 04:12:29 -07:00
s7v7nislands
39ad5e7388
merge
2013-07-19 17:12:01 +08:00
s7v7nislands
0df505bd7c
fix doc
2013-07-19 17:04:53 +08:00
David Pursehouse
6f6a920a68
Improve documentation of netrc authentication
...
The documentation does not make it clear that when the credentials
from netrc are used, Requests authenticates with HTTP Basic Auth.
I just spent ages trying to figure out why it wasn't working, and
it was because although the credentials in the netrc were correct,
the server actually required HTTP Digest Auth.
Add a section in the authentication documentation to make it clear
that HTTP Basic Auth is used.
2013-07-19 17:30:54 +09:00
Cory Benfield
32293655ff
Merge pull request #1464 from dpursehouse/document-none-not-sent
...
Fix #1322 : Add note in docs about None not being sent as data
2013-07-19 01:19:55 -07:00
David Pursehouse
07ad75ee04
Fix #1322 : Add note in docs about None not being sent as data
...
In the case:
payload = {'key1': 'value1', 'key2': 'value2', 'key3': None}
r = requests.get("http://httpbin.org ", params=payload)
the parameter `key3` will not be sent as a parameter in the URL.
Mention this in the documentation.
2013-07-19 17:14:59 +09:00
Kenneth Reitz
e4b41320e6
Merge pull request #1463 from AudriusButkevicius/master
...
Update urllib3 to a43319f
2013-07-18 15:00:28 -07:00
Audrius Butkevicius
9f119ee420
Update urllib3 to a43319f
2013-07-18 21:06:19 +00:00
Kenneth Reitz
e0df2168b7
Merge remote-tracking branch 'origin/master'
2013-07-16 02:20:28 -04:00
Kenneth Reitz
d7e8073198
badge.fury.io
2013-07-16 02:20:23 -04:00
Kenneth Reitz
65a0fd88a9
Merge pull request #1440 from fcurella/patch-0
...
unquote double-quotes cookie values
2013-07-15 06:54:00 -07:00
Kenneth Reitz
4b7cf389e4
Merge pull request #1439 from voberoi/master
...
Make sure netrc doesn't override any authentication settings explicitly set by the client
2013-07-15 06:22:53 -07:00
Kenneth Reitz
86d466c745
Merge pull request #1441 from Lukasa/1395
...
Remove urllib3-specific kwargs from non-urllib3 branch.
2013-07-15 06:22:41 -07:00
Kenneth Reitz
de9d84489b
Merge pull request #1456 from phndiaye/master
...
Changed the "im_used" informational status code for the value given by IANA (226)
2013-07-15 06:21:31 -07:00
Philippe Ndiaye
18a736fbe6
Set 208 status_code to "already_reported"
2013-07-13 11:08:01 +02:00
Philippe Ndiaye
7bdf37bc27
Changed the "im_used" informational status code for the value given by IANA (226)
...
See RFC 3229 at http://tools.ietf.org/html/rfc3229#section-10.4.1 and HTTP status codes at http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
2013-07-13 09:55:50 +02:00
Kenneth Reitz
41517e2111
Delete invokefile.py
2013-07-06 14:04:50 +10:00
Cory Benfield
555472bf1e
Remove urllib3-specific kwargs from general code
2013-07-04 10:34:43 +01:00
Flavio Curella
7da16c584a
Added myself to AUTHORS
2013-07-01 15:54:59 -05:00
Flavio Curella
a8cf5b8502
keep the double quotes, but don't escape them
2013-07-01 15:48:48 -05:00
Flavio Curella
cdab4fabf4
unquote double-quotes cookie values
2013-07-01 13:51:40 -05:00
Vikram Oberoi
d9c49ad30d
Add test to verify .netrc authentication behavior.
...
Here's what should happen:
- If no credentials are given, use netrc if there's a netrc entry.
- If credentials are given, they should override netrc.
2013-06-27 17:16:42 -04:00
Vikram Oberoi
188e7609b3
.netrc settings shouldn't blow away explicit auth settings on a session
2013-06-27 16:43:40 -04:00
Cory Benfield
2b62980e26
Merge pull request #1437 from lukaszb/patch-1
...
Fixed wrong method call at streaming example
2013-06-27 11:18:56 -07:00
Lukasz Balcerzak
805abee9b4
Fixed wrong method call at streaming example
...
405 is returned if POST request is performed to http://httpbin.org/stream/20
2013-06-27 13:37:39 +02:00
Kenneth Reitz
a1bb7fb0d2
Merge pull request #1435 from chinux23/master
...
@1434 https://github.com/kennethreitz/requests/issues/1434
2013-06-25 15:49:04 -07:00
Chen Huang
9083735963
@1434 Fix https://github.com/kennethreitz/requests/issues/1434
2013-06-25 18:38:59 -04:00
Cory Benfield
dcf20c4cfe
Merge pull request #1429 from Lukasa/docs
...
Packaging warning, in via @andrewgross.
2013-06-24 00:48:48 -07:00
Cory Benfield
d57a5efab3
Packaging warning, in via @andrewgross.
2013-06-22 15:02:18 +01:00
Kenneth Reitz
3781c96125
Merge pull request #1425 from Lukasa/stream
...
Use new urllib3 'stream' parameter.
2013-06-21 02:23:10 -07:00
Cory Benfield
1faa76a86f
Use the new urllib3 stream generator.
2013-06-18 17:56:35 +01:00
Cory Benfield
ecf57cac5c
Update urllib3 to cffbd6b317
2013-06-18 17:47:23 +01:00
Kenneth Reitz
25db83fe85
Merge pull request #1419 from kevinburke/exception-links
...
Exception links
2013-06-14 22:50:44 -07:00
Kevin Burke
ba0db9db86
Add self to AUTHORS
2013-06-12 15:56:10 -07:00
Kevin Burke
a6415cf895
Link to the actual exception references
...
Sphinx has a neat cross-referencing feature where if you include the tilde
character in front of a :py: class, it'll link to the full object but provide
only the last part of class name in the text. For more info see
http://sphinx-doc.org/domains.html#cross-referencing-syntax
2013-06-12 15:53:09 -07:00
Kenneth Reitz
df935f5b03
Merge pull request #1414 from jschneier/master
...
fixed typo in docs
2013-06-12 11:12:17 -07:00
Josh Schneier
43a64d9515
fix doc typo
2013-06-09 11:14:14 -04:00
Kenneth Reitz
70a6d035d9
Merge pull request #1315 from reclosedev/fix-redirects
...
Don't reuse the same prepared request for all redirects
2013-06-08 03:53:16 -07:00
Roman Haritonov
716b627c1e
Don't reuse PreparedRequest on redirects
2013-06-08 14:41:34 +04:00
Roman Haritonov
798a1ffdec
new failing test_requests_in_history_are_not_overridden()
2013-06-08 14:41:34 +04:00
Kenneth Reitz
8028103b71
Merge pull request #1400 from jam/master
...
Retrieve environment proxies using standard library functions
2013-06-08 03:20:18 -07:00
Kenneth Reitz
8430e6ccbb
Merge pull request #1334 from rcarz/master
...
resolve_redirects no longer throws an InvalidSchema exception when the scheme is uppercase
2013-06-08 03:18:25 -07:00
Kenneth Reitz
d4c461042b
Merge pull request #1385 from ViktorHaag/master
...
Cope with mixed-case URL schemes (like 'HTTP') by lower-ifying 'url' string before calling startswith() on it
2013-06-08 03:17:38 -07:00
Kenneth Reitz
60b1a0ba13
Merge pull request #1381 from expandrive/master
...
Don't force chunked transfer on 0-length file-like object.
2013-06-08 03:16:32 -07:00
Kenneth Reitz
cfd84d74ee
Merge pull request #1392 from revolunet/patch-2
...
Update quickstart.rst
2013-06-08 03:16:21 -07:00
Kenneth Reitz
eec9bdd434
Merge pull request #1408 from wasw100/master
...
cookies.morsel_to_cookie morsel['expires'] can't be strtime, and morsel['max-age'] convert to expires problem repair
2013-06-08 03:14:32 -07:00
Kenneth Reitz
f74d5e96dd
Merge pull request #1412 from t-8ch/update_urllib3
...
update urllib3 to 60ba176f5d
2013-06-08 03:13:34 -07:00
Kenneth Reitz
e63e68ef48
Merge pull request #1413 from Lukasa/docs
...
Assorted docs updates
2013-06-08 03:13:14 -07:00
Cory Benfield
73425fbffb
Remove development reference from docs sidebar.
2013-06-08 11:10:07 +01:00
Cory Benfield
f53aed1611
Document blocking calls.
2013-06-08 11:09:39 +01:00
Thomas Weißschuh
2ed976ea71
update urllib3 to 60ba176f5d
2013-06-08 08:22:15 +00:00
wasw100
767f758aac
cookies.morsel_to_cookie morsel['expires'] can't be strtime, and max-age convert to expires problem repair
2013-06-07 00:02:45 +08:00
wasw100
961790f95c
cookies.morsel_to_cookie(morsel) raise TypeError repaired.
...
morsel_to_cookie(mosel) method raise TypeError: create_cookie() got unexpected keyword arguments: ['path_specified', 'domain_specified', 'port_specified', 'domain_initial_dot'].
so we should remove these param from create_cookie(...)
2013-06-06 19:15:09 +08:00
James Clarke
f705c41c1d
Added myself to AUTHORS.
2013-05-31 18:19:42 -07:00
James Clarke
93be6916f9
Use urllib to retrieve environment proxies.
...
This has the added benefit of including proxies defined by the OS X System Configuration framework and in the Windows registry, rather than only checking os.environ.
2013-05-31 18:19:34 -07:00
Julien Bouquillon
340931ba8e
Update quickstart.rst
...
rephrase misleading info about `raise_for_status`
2013-05-29 12:57:49 +03:00
Bob Carroll
2c5ea69e5d
rebased with upstream/master
2013-05-26 14:46:36 -07:00
Bob Carroll
d59510481a
this didn't merge properly
2013-05-26 14:45:49 -07:00
Bob Carroll
f3036adc4f
added assertion to test_uppercase_scheme_redirect for the response code
2013-05-26 14:44:37 -07:00
Bob Carroll
489a412f96
I probably should add my name too
2013-05-26 14:44:37 -07:00
Bob Carroll
72e155e529
resolve_redirects now checks for a scheme before converting the scheme to lowercase, added tests or the scheme casing
2013-05-26 14:44:22 -07:00
Bob Carroll
e715d7184b
resolve_redirects no longer throws an InvalidSchema exception when the scheme is uppercase
2013-05-26 14:43:00 -07:00
Kenneth Reitz
3bb13f8fbb
v1.2.3
2013-05-25 12:48:10 -04:00
Viktor Haag
01993d21dc
added tests for mixed-case scheme URLs, changed adapters passing down URLs into urllib3 by lower-ifying them so that the underlying pool manager can effectively pool by scheme as dictionary key
2013-05-24 16:14:14 -04:00
Viktor Haag
5e94f38001
- fixed func call syntax on lower to lower()
...
- added test cases for trying to test GETS on mixed-case schemas
2013-05-24 14:01:30 -04:00
Viktor Haag
3004ad5398
Lower-ify url before checking against prefix with startswith()
2013-05-24 11:26:00 -04:00
Jeff Mancuso
e7c9bbb96f
Only switch to chunked if we don't know the length of a file like object. This fixes the case of trying to upload a 0-length file - chunked upload was being forced. Services like S3 that disallow chunked upload will fail.
2013-05-23 11:21:29 -04:00
Kenneth Reitz
00ab8fbfea
Merge remote-tracking branch 'origin/master'
2013-05-21 17:43:53 -04:00
Kenneth Reitz
9930c9c737
v1.2.2
2013-05-21 17:43:13 -04:00
Kenneth Reitz
2ee814d924
Merge pull request #1375 from t-8ch/fix_digest_auth
...
don't replace 'Digest' in digest header value
2013-05-21 14:33:25 -07:00
Kenneth Reitz
8b55a253b1
Merge remote-tracking branch 'origin/master'
2013-05-21 17:27:15 -04:00
Kenneth Reitz
786fe94ac4
nope
2013-05-21 17:27:06 -04:00
Kenneth Reitz
fede8e5af3
Merge pull request #1376 from papaeye/master
...
Fix typo, %t -> %r
2013-05-21 14:25:49 -07:00
papaeye
2a34335dc3
Fix #1374
2013-05-22 04:30:19 +09:00
Thomas Weißschuh
3b0d8b8e39
don't replace 'Digest' in digest header value
...
See https://github.com/kennethreitz/requests/issues/1358
2013-05-21 17:48:30 +00:00
papaeye
715a57dec8
Fix typo, %t -> %r
2013-05-22 02:20:51 +09:00
Kenneth Reitz
2aabb71dc8
Merge pull request #1373 from ib-lundgren/unicode_fields_to_urllib
...
Only pass unicode multipart fieldnames to urllib3.
2013-05-21 06:19:48 -07:00
Ib Lundgren
003c795afe
Only pass unicode fieldnames to urllib3.
2013-05-21 09:46:28 +01:00
Kenneth Reitz
1621015e00
Merge pull request #1343 from gazpachoking/#1321
...
Refactor merge_kwargs
2013-05-20 19:14:54 -07:00
Chase Sterling
98114245c6
Refactor merge_kwargs for clarity and to fix a few bugs
2013-05-20 21:20:51 -04:00
Kenneth Reitz
8eb4243f12
Merge remote-tracking branch 'origin/master'
2013-05-20 16:10:43 -04:00
Kenneth Reitz
569b59f495
v1.2.1
2013-05-20 16:10:23 -04:00
Kenneth Reitz
8f42369aa9
Merge pull request #1356 from Zoramite/ConnectionPoolArgs
...
Adding an argument to the adapter for passing a block argument
2013-05-20 13:05:02 -07:00
Kenneth Reitz
f4e7809e7c
Merge pull request #1361 from Lukasa/1360
...
Always percent-encode location headers.
2013-05-20 13:04:08 -07:00
Kenneth Reitz
2afe3b2e99
Merge pull request #1370 from sigmavirus24/origin_req_host
...
Add an extra property for Python 3.3
2013-05-20 12:57:38 -07:00
Ian Cordasco
9ce7f0bf5b
Attempt a fix for @michaelhelmick
2013-05-20 10:58:03 -04:00
Kenneth Reitz
7430a49f45
Merge remote-tracking branch 'origin/master'
2013-05-17 09:31:11 +02:00
Kenneth Reitz
538dbaecbe
download image!
2013-05-17 09:31:01 +02:00
Kenneth Reitz
5943afa25d
Merge pull request #1363 from dave-shawley/master
...
Fix for #1362
2013-05-16 23:23:04 -07:00
Dave Shawley
6e76ab7188
Fix for #1362 .
...
`PreparedRequest.prepare_url` incorrectly applied IDNA encoding to the
URLs entire `netloc`. It should only be encoding the hostname portion
of the URL. IDNA encoding was limiting the user info, host, and port
segments to be a maximum of 63 characters which causes problems for
all by the most trivial user + password combinations.
- Replaced usage of `urlparse` in `PreparedRequest.prepare_url` with
`urllib3` equivalent.
- Modified IDNA encoding section so that it only encodes the host
portion of the URL.
2013-05-16 13:12:34 -04:00
Cory Benfield
2b6ebd2521
Always percent-encode location headers.
2013-05-16 12:02:46 +01:00
Kenneth Reitz
eacb91afb1
Merge pull request #1327 from ambv/adapter_order
...
Fixes #1320 : transport adapters stored in ordered form
2013-05-15 09:43:57 -07:00
Łukasz Langa
4c8af1fff4
Fixes #1320 : transport adapters stored in ordered form
2013-05-15 13:34:09 +02:00
Randy Merrill
c03e14242b
Adding the _pool_bloc to the list of attrs.
2013-05-11 18:30:31 -07:00
Randy Merrill
9cb3d6444d
Fixing the call to init_poolmanagers to correctly unpickle the adapter.
2013-05-11 18:13:08 -07:00
Randy Merrill
053613688b
Moving the order of the arguments in the init to not interfere with existing usage.
2013-05-11 18:04:43 -07:00
Randy Merrill
2eb682671d
Adding an argument to the adapter for passing a block argument to the connection pool.
...
This allows for blocking when using threading to prevent the pool from creating more connections that the max-size allows.
Specifically was seeing the following errors without the block=True:
WARNING:requests.packages.urllib3.connectionpool:HttpConnectionPool is full, discarding connection: www.example.com
2013-05-10 23:46:54 -07:00
Kenneth Reitz
e7786ec14f
Merge pull request #1355 from sigmavirus24/fix_links
...
Prevent a KeyError when there's no link headers
2013-05-09 01:03:49 -07:00
Ian Cordasco
88fda94218
Prevent a KeyError when there's no link headers
2013-05-08 23:26:49 -04:00
Kenneth Reitz
b599886beb
Merge pull request #1352 from nicoddemus/docs-link-on-readme
...
Adding link to documentation in README.rst
2013-05-07 10:01:32 -07:00
Kenneth Reitz
7aedc6bb22
Merge pull request #1342 from mexicat/master
...
Fixed example in authentication docs
2013-05-07 10:01:18 -07:00
Bruno Oliveira
efefc6b778
Adding link to documentation in README.rst
...
Just adding a link to the documentation at python-requests.org
2013-05-06 23:46:59 -03:00
Kenneth Reitz
50e592209f
Merge pull request #1347 from hobarrera/master
...
Issue #749 : Add optional SNI support for python2.
2013-05-04 13:11:46 -07:00
Hugo Osvaldo Barrera
18857a0eed
Issue #749 : Add optional SNI support for python2.
...
SNI support will be enabled for python2 if ndg-httpsclient and pyopenssl are available.
2013-05-03 21:05:42 -03:00
giacomo
8781b56a0e
Fixed example in authentication docs
2013-05-02 18:16:19 +03:00
Kenneth Reitz
e585e496c9
Merge pull request #1341 from cdunklau/docstring_test_1329
...
Minor update to tests, added docstrings
2013-05-01 11:40:02 -07:00
Colin Dunklau
f93275c47f
Minor update to tests, added docstrings
...
Requested by @sigmavirus24.
2013-05-01 12:51:09 -05:00
Kenneth Reitz
4f83ef8328
Merge pull request #1314 from duailibe/master
...
Fix small typo in the Support docs
2013-05-01 10:29:40 -07:00
Kenneth Reitz
0f1bb96f01
Merge pull request #1337 from amercader/master
...
Fix minor issues on the API docs
2013-05-01 10:28:18 -07:00
Kenneth Reitz
e6e9b550c0
Merge pull request #1339 from cdunklau/case_insensitive_headers_cleanup
...
Rewrite CaseInsensitiveDict to work correctly/sanely
2013-05-01 10:27:58 -07:00
Kenneth Reitz
f8f1db8458
Merge pull request #1340 from ambv/tox_ini
...
Remove 3.1 and 3.2 from setup.py, add tox.ini to simplify testing on multiple versions
2013-05-01 10:27:02 -07:00
Łukasz Langa
7e825acd9b
Remove Python 3.1 and 3.2 from the trove classifiers in setup.py
2013-05-01 19:26:12 +02:00
Colin Dunklau
f7596c75dc
Rewrite CaseInsensitiveDict to work correctly/sanely
...
Fixes #649 and #1329 by making Session.headers a CaseInsensitiveDict,
and fixing the implementation of CID. Credit for the brilliant idea
to map `lowercased_key -> (cased_key, mapped_value)` goes to
@gazpachoking, thanks a bunch.
Changes from original implementation of CaseInsensitiveDict:
1. CID is rewritten as a subclass of `collections.MutableMapping`.
2. CID remembers the case of the last-set key, but `__setitem__`
and `__delitem__` will handle keys without respect to case.
3. CID returns the key case as remembered for the `keys`, `items`,
and `__iter__` methods.
4. Query operations (`__getitem__` and `__contains__`) are done in
a case-insensitive manner: `cid['foo']` and `cid['FOO']` will
return the same value.
5. The constructor as well as `update` and `__eq__` have undefined
behavior when given multiple keys that have the same `lower()`.
6. The new method `lower_items` is like `iteritems`, but keys are
all lowercased.
7. CID raises `KeyError` for `__getitem__` as normal dicts do. The
old implementation returned
6. The `__repr__` now makes it obvious that it's not a normal dict.
See PR #1333 for the discussions that lead up to this implementation
2013-04-30 14:52:27 -05:00
amercader
505d2487e3
Fix API documentation issues
...
* 'Cookies' and 'Encodings' sections were not built because the
reference to the functions was wrong.
* 'Exceptions' section had a wrong anchor link ('module-requests', same
one as the main heading).
* Remove 'decode_gzip' function, which is no longer present.
2013-04-30 16:15:56 +02:00
Kenneth Reitz
ab36f3cc6f
Merge pull request #1332 from bboe/urllib3
...
Update urllib3 to 59de03e6163c6928dc01832ed6e48e9f6c34c795.
2013-04-28 16:58:08 -07:00
Bryce Boe
49ca72c802
Update urllib3 to 59de03e6163c6928dc01832ed6e48e9f6c34c795.
...
This update includes two fixes:
* https://github.com/shazow/urllib3/issues/149
* https://github.com/shazow/urllib3/issues/174
2013-04-27 14:33:39 -07:00
Kenneth Reitz
d2ba5798ec
Merge pull request #1330 from Kwpolska/patch-1
...
Fixing a tiny typo, noticed while working on the Polish translation
2013-04-27 04:53:37 -07:00
Chris Warrick
c3bef6b0d9
A tiny typo, noticed while working on the Polish translation.
2013-04-27 14:52:35 +03:00
Kenneth Reitz
98dea03710
Merge pull request #1328 from gazpachoking/session_cj_fix
...
Session CookieJar fix
2013-04-26 00:02:28 -07:00
Chase Sterling
0c609b59ab
Fix session CookieJars without breaking more stuff this time
2013-04-25 23:15:50 -04:00
Chase Sterling
a7fef58756
Add another session cookie test
2013-04-25 23:11:43 -04:00
Chase Sterling
3ff8d43801
Fix cookielib import
2013-04-25 22:40:24 -04:00
Chase Sterling
9763a671da
Fix crash when session.cookies was not a RequestsCookieJar
2013-04-25 22:34:51 -04:00
Chase Sterling
1866f7596e
Add test for session cookiejars other than RequestsCookieJar
2013-04-25 22:32:03 -04:00
Kenneth Reitz
8f3f4e2744
milla
2013-04-20 00:22:13 -04:00
Kenneth Reitz
4438bfcc44
Merge remote-tracking branch 'origin/master'
2013-04-20 00:18:33 -04:00
Kenneth Reitz
65b6ef6036
pt
2013-04-20 00:18:27 -04:00
Lucas Duailibe
1ca423ec80
Fix small typo in the Support docs
2013-04-18 20:59:17 -03:00
Kenneth Reitz
770c3d7548
Merge pull request #1313 from iurisilvio/fix_max_redirects_docs
...
Fix max_redirects docs issue #1301
2013-04-17 12:39:03 -07:00
Iuri de Silvio
736e8cd735
Fix max_redirects docs issue #1301
2013-04-17 12:27:06 -07:00
Kenneth Reitz
6046fcffe8
Merge pull request #1279 from jemerick/unicode_multipart_post
...
Unicode strings in multipart post requests
2013-04-16 12:55:58 -07:00
Kenneth Reitz
d13bf9f113
support for draft-tbray-http-legally-restricted-status-02
...
http://datatracker.ietf.org/doc/draft-tbray-http-legally-restricted-stat
us/?include_text=1
2013-04-15 22:47:20 -04:00
Kenneth Reitz
ae5419db17
translations
2013-04-15 03:22:56 -04:00
Kenneth Reitz
9c2f9f61ef
Translatoins
2013-04-15 03:22:48 -04:00
Kenneth Reitz
636476e704
Merge remote-tracking branch 'origin/master'
2013-04-15 03:21:40 -04:00
Kenneth Reitz
aafca7acdc
translations
2013-04-15 03:21:32 -04:00
Kenneth Reitz
a527ecfabd
Merge pull request #1242 from oviboy/master
...
HTTP Digest Auth case insensitive replacement of "Digest "
2013-04-13 20:28:43 -07:00
Kenneth Reitz
967cfbe663
Merge pull request #1299 from schlamar/fix-decompression
...
Use streaming decompression feature of urllib3.
2013-04-13 20:27:46 -07:00
Kenneth Reitz
9df450193f
Merge pull request #1302 from ssbarnea/master
...
Documents the actual logging methods #1297
2013-04-13 20:25:47 -07:00
Kenneth Reitz
082029ff2e
switch streaming requests to httpbin
2013-04-13 15:26:49 -04:00
Kenneth Reitz
c0baec1431
Merge pull request #1305 from michaelhelmick/patch-1
...
Fix Advanced docs Twitter Streaming example
2013-04-13 12:24:21 -07:00
Kenneth Reitz
561366cab0
Merge pull request #1309 from toastdriven/better-max-retries
...
Changed HTTPAdapter to allow max retries to be specified when initializing.
2013-04-13 12:05:13 -07:00
Kenneth Reitz
f0950a9e6c
Merge pull request #1311 from sigmavirus24/fix1303
...
Change the method when it isn't already GET/HEAD
2013-04-13 12:02:29 -07:00
Ian Cordasco
c5d0a0931e
Change the method when it isn't already GET/HEAD
...
For some reason it was only change the method when a POST was being made. This
is almost certainly my fault.
Fixes #1303
2013-04-13 12:31:22 -04:00
Daniel Lindsley
36dcce1a06
Changed HTTPAdapter to allow max retries to be specified when initializing.
2013-04-12 16:40:39 -07:00
Mike Helmick
ed0242ae3a
Fix Advanced docs Twitter Streaming example
...
Twitter API v1.1 Streaming now requires OAuth Authentication rather than XAuth.
I believe v1 is being blacked out sometime at the beginning of May.
2013-04-11 20:19:51 -04:00
Kenneth Reitz
eda4b55f7a
Merge pull request #1306 from pombredanne/patch-1
...
Updated NOTICE copyright from 2022 to 2012
2013-04-11 09:04:07 -07:00
pombredanne
6e3cfe5dd5
Updated NOTICE copyright from 2022 to 2012
...
Which is likely what you meant, eh?
2013-04-11 17:08:27 +03:00
Sorin Sbarnea
fb49481ddf
Updated documentation indicating that logging is done via requests.packages.urllib3 instead of requests.
...
modified: docs/api.rst
2013-04-10 16:46:05 +01:00
Sorin Sbarnea
17ecb6891c
* Documented the logging, requested in #1297
...
* Added build directory and *.egg to .gitignore
* Added sphinx as setup requirement in order to be able to build documentation with `pyhton setup.py build_sphinx`
modified: .gitignore
modified: docs/api.rst
modified: setup.py
2013-04-10 16:15:28 +01:00
schlamar
4c3432b759
Fix test with StringIO.
2013-04-10 08:24:33 +02:00
schlamar
59f916ca4a
Use streaming decompression feature of urllib3.
2013-04-10 08:08:33 +02:00
schlamar
6d6252aa9f
Update urllib3 to 71f84f9.
2013-04-10 08:00:36 +02:00
Kenneth Reitz
2426eeb371
Merge pull request #1298 from Lukasa/adapter_doc
...
Transport Adapter Docs
2013-04-09 13:17:19 -07:00
Cory Benfield
e5f1053b30
Shell of Transport Adapter documentation.
2013-04-09 20:58:59 +01:00
Cory Benfield
c73f653352
Add HTTPAdapter to API docs.
2013-04-09 19:54:47 +01:00
Kenneth Reitz
5b937b384b
Merge pull request #1296 from sursh/master
...
Add helpful error message to r.json() method
2013-04-08 11:01:36 -07:00
Sasha Laundy
8ebeb3dc3f
Make json error message more specific
2013-04-08 13:03:13 -04:00
sursh
dfa59c2d97
Fix markdown
2013-04-08 13:01:02 -03:00
sursh
511cc4c034
Make json error on empty response more specific
2013-04-08 13:00:27 -03:00
Kenneth Reitz
fa9234da05
Merge pull request #1295 from sigmavirus24/issue1293
...
Fix #1293
2013-04-06 17:27:23 -07:00
Ian Cordasco
afcc883d7f
Fix #1293
2013-04-06 11:26:52 -04:00
Kenneth Reitz
1e465fd255
Merge pull request #1291 from gazpachoking/dont_set_session_cookies_on_response
...
Don't set all session cookies on response.cookies
2013-04-04 20:41:52 -07:00
Chase Sterling
49a3664222
Don't set all session cookies on response.cookies
2013-04-04 23:30:52 -04:00
Kenneth Reitz
848f2c297e
Merge pull request #1290 from gazpachoking/#1287
...
fix #1287 : Make sure expired cookies get removed from session.cookies
2013-04-04 20:22:38 -07:00
Chase Sterling
5c47ce1136
Make sure unit test works on python 2.6
2013-04-04 22:48:14 -04:00
Chase Sterling
88f13598f3
Add a unit test for server expiring cookies from session
2013-04-04 22:40:27 -04:00
Chase Sterling
d22ac00098
fix #1287 : Make sure expired cookies get removed from session.cookies
2013-04-04 22:11:38 -04:00
Kenneth Reitz
dccfc5ba3c
Merge pull request #1283 from sigmavirus24/master
...
Closes #1280
2013-04-03 18:04:40 -07:00
Jason Emerick
e7247ce3f6
model the encode_files data handling after encode_params
2013-04-02 14:22:49 -04:00
Jason Emerick
168c3e6913
add a few more variations to the unicode multipart post test
2013-04-02 14:22:12 -04:00
Jason Emerick
82d36d8259
add additional test for unicode multipart post
2013-04-02 11:41:07 -04:00
Ian Cordasco
b9e5cce2d2
Add PreparedRequest recipe to the docs
2013-04-02 10:07:37 -04:00
Ian Cordasco
1abd13700b
Closes #1280
...
Correct the doc-string for Session#request that I copied without thinking
about.
2013-04-02 09:27:25 -04:00
Kenneth Reitz
54ed5ed469
Revert "Fix for the issue https://github.com/kennethreitz/requests/issues/1280 "
...
This reverts commit ca0aea640d .
2013-04-02 08:13:46 -04:00
Kenneth Reitz
cdb700737b
Merge pull request #1281 from KamilSzot/Issue_kennethreitz_requests_issues_1280
...
Fix for the issue https://github.com/kennethreitz/requests/issues/1280
2013-04-02 04:44:59 -07:00
Kamil Szot
ca0aea640d
Fix for the issue https://github.com/kennethreitz/requests/issues/1280
2013-04-02 13:42:40 +02:00
Kenneth Reitz
20a8a9b681
Merge pull request #1278 from t-8ch/patch-1
...
fix tiny typo in HISTORY.rst
2013-04-01 21:36:49 -07:00
Kenneth Reitz
9c18febf45
Merge pull request #1277 from pborreli/typos
...
Fixed typos
2013-04-01 21:36:39 -07:00
Kenneth Reitz
848aca21be
Merge pull request #1276 from alex/patch-1
...
is should not be used for comparing numbers
2013-04-01 20:42:22 -07:00
Jason Emerick
f37b968475
use compat.str instead of compat.builtin_str
2013-04-01 18:14:52 -04:00
Jason Emerick
f0660e33a2
add test for unicode multipart post
2013-04-01 18:10:12 -04:00
Thomas Weißschuh
333fa87489
fix tiny typo in HISTORY.rst
2013-04-01 18:47:20 +00:00
Pascal Borreli
037b38badb
Fixed typos
2013-04-01 18:02:18 +00:00
Alex Gaynor
39acf1dbd2
is should not be used for comparing numbers
2013-03-31 23:20:46 -07:00
Kenneth Reitz
59b69d1fb8
Merge remote-tracking branch 'origin/master'
2013-03-31 08:28:57 +03:00
Kenneth Reitz
d06908d655
v1.2.0
2013-03-31 08:28:22 +03:00
Kenneth Reitz
5b5ffc9714
Merge pull request #1268 from t-8ch/update_urllib3
...
update vendored urllib3
2013-03-30 22:27:59 -07:00
Kenneth Reitz
75703d57e6
fix syntax error
2013-03-31 08:22:44 +03:00
Kenneth Reitz
bd6b981d12
Merge pull request #1267 from sigmavirus24/master
...
One last pull request before 1.2 ideally
2013-03-30 22:21:52 -07:00
Kenneth Reitz
6a2eea8b21
Merge pull request #1270 from makto/add_attr
...
add 'max_redirects' to Session's __attrs__
2013-03-30 22:20:02 -07:00
Ian Cordasco
325ea7b7e2
Use session defaults instead of arbitrary ones
2013-03-29 20:18:58 -04:00
makto
4ffae38627
add 'max_redirects' to Session's __attrs__ to ensure proper serialization of Session
2013-03-29 20:58:15 +08:00
Thomas Weißschuh
d7908a9fde
update vendored urllib3
2013-03-28 12:49:04 +00:00
Ian Cordasco
0cd23d8d6e
Fix the tests and unseparate comments from code
...
See the comments on the previous few commits on GitHub.
2013-03-28 08:33:34 -04:00
Ian Cordasco
aca91e06f2
Restore Session.request docstring
...
Resolves #1251
2013-03-27 23:46:21 -04:00
Ian Cordasco
88177ec33f
Finally resolve #1084
...
Send body on redirect when POSTing or PUTing.
2013-03-27 23:30:00 -04:00
Ian Cordasco
1d5c4f3f0f
This should take care of #1266
...
We were sending 'None' as the Content-Length on requests where the body was a
generator. This commit should prevent that entirely.
2013-03-27 23:26:11 -04:00
Ian Cordasco
478d49027f
Add correct defaults in Session.send()
...
Resolves #1258
Also fixed the tests to reflect the necessary changes.
2013-03-27 23:17:34 -04:00
Ian Cordasco
46a770e03f
Update the HISTORY for v1.2
2013-03-27 23:10:59 -04:00
Kenneth Reitz
ba25184ed5
sp
2013-03-26 16:38:11 -04:00
Kenneth Reitz
7f1ad5c127
Merge remote-tracking branch 'origin/master'
2013-03-26 16:32:25 -04:00
Kenneth Reitz
ab19b79375
Rezzy the Request Sea Turtle
2013-03-26 16:32:20 -04:00
Kenneth Reitz
c63472e328
Merge pull request #1263 from justin-factual/master
...
iter_lines documentation for #1260
2013-03-25 12:48:45 -07:00
Justin Fenn
6963b8490c
Clarify streaming behavior in iter_lines doc
2013-03-25 12:20:33 -07:00
Ovidiu Negrut
9d16c72767
compiled regex expression in digest auth, this also works in python 2.6.x
2013-03-25 12:28:25 +02:00
Ovidiu Negrut
186a589783
Merge branch 'master' of git://github.com/kennethreitz/requests
2013-03-25 12:26:45 +02:00
Kenneth Reitz
12ef43e407
/s/make/invoke
2013-03-22 15:52:08 -04:00
Kenneth Reitz
92f7478174
first
2013-03-22 15:48:27 -04:00
Kenneth Reitz
19d38d502f
actually cleanup url authentication
2013-03-22 15:47:20 -04:00
Kenneth Reitz
52d328ec3c
cp949prover for charade
2013-03-22 15:21:28 -04:00
Kenneth Reitz
a554828931
invoke!
2013-03-22 15:21:04 -04:00
Kenneth Reitz
80a861cb84
upgrade to charade v1.0.3
2013-03-22 15:20:49 -04:00
Kenneth Reitz
0d07d1afb3
remove makefile
2013-03-22 15:20:27 -04:00
Kenneth Reitz
030b9763b5
fix get_auth_from_url
2013-03-22 00:15:06 -04:00
Kenneth Reitz
03a3ca5004
get_auth_from_url return None if nothing is found
2013-03-22 00:13:08 -04:00
Kenneth Reitz
1325409560
simplify get_auth_from_url call
2013-03-22 00:12:58 -04:00
Kenneth Reitz
13aeb9cb06
Merge pull request #1254 from jkakar/url-authentication
...
url-authentication
2013-03-21 21:06:23 -07:00
Jamu Kakar
7d217bf9bd
- Pull credentials out of the URL when possible.
2013-03-21 17:55:08 -07:00
Kenneth Reitz
cb2116dcce
Merge pull request #1239 from miikka/fix-issue-1228
...
Use session cookies when following redirects
2013-03-20 03:37:25 -07:00
Kenneth Reitz
db90d85a8d
Merge pull request #1245 from Damgaard/master
...
Remove duplicate comment.
2013-03-14 08:29:53 -07:00
Andreas Damgaard Pedersen
af791d48c6
Remove duplicate comment.
2013-03-14 16:12:45 +01:00
Miikka Koskinen
120a2f385a
Do not pass cookies to resolve_redirects
...
SessionRedirectMixin is extending Session, so we can just use
self.cookies.
2013-03-12 18:45:11 +02:00
Miikka Koskinen
5bb2be9a23
Use session cookies when following redirects
...
When a redirect was followed, only the cookies set by the initial
response were used in the follow-up request. Fixes #1228 .
2013-03-12 18:43:58 +02:00
Miikka Koskinen
e958511df0
Add failing test case for #1228
2013-03-12 18:43:58 +02:00
Kenneth Reitz
1642996798
Merge pull request #1244 from jajadinimueter/master
...
Fixed further pickeling issues in Session and HTTPAdapter
2013-03-12 08:23:21 -07:00
Florian Mueller
c41932e184
Fixed some pickeling issues with HTTPAdapter and Session
...
Added trust_env and stream to Session.__attrs__. Initialize
self._pool_connections and self._pool_maxsize in HTTPAdapter.
2013-03-12 16:04:19 +01:00
Kenneth Reitz
25ea8cdb38
Merge pull request #1243 from darjus-amzn/master
...
Pickling of Session and HTTPAdapter + a test
2013-03-12 07:37:55 -07:00
Darjus Loktevic
e706d18cf8
Pickling of Session and HTTPAdapter + a test
...
This is for issue #1088
2013-03-11 18:12:34 +00:00
Ovidiu Negrut
e752455b6f
Digest auth: case insensitive replacement of 'digest ' string with '' from WWW-Authenticate
2013-03-11 10:28:37 +02:00
Kenneth Reitz
3e72f234d0
Merge pull request #1238 from oczkers/master
...
cleanup (remove max_retries test)
2013-03-08 11:51:42 -08:00
Piotr Staroszczyk
25dc07e8ed
cleanup (remove max_retries test)
2013-03-08 11:17:17 +01:00
Kenneth Reitz
13de69299f
Merge pull request #1234 from Vassius/issue-1225
...
Fix issue #1225 (Documentation: response object status/reason)
2013-03-05 07:31:10 -08:00
Markus Wiik
90e109c241
Fix issue #1225 (Documentation: response object status/reason)
2013-03-05 16:18:24 +01:00
Kenneth Reitz
d25ba77b2e
Merge remote-tracking branch 'origin/master'
2013-03-04 17:54:32 -05:00
Kenneth Reitz
c0d4b23cea
Merge branch 'httperror_init' of git://github.com/dmedvinsky/requests
...
Conflicts:
AUTHORS.rst
test_requests.py
2013-03-04 17:54:25 -05:00
Kenneth Reitz
99eead01a3
Merge pull request #1223 from andrewjesaitis/master
...
Fixes __getstate__ for session pickling
2013-03-04 14:52:31 -08:00
Andrew Jesaitis
d60845303b
Adds __attrs__ back to Session object
2013-03-04 11:07:29 -07:00
Kenneth Reitz
b14584f36e
Revert "[ kennethreitz/requests#1208 ] adding unit test for max_retries"
...
This reverts commit 18b29ea005 .
2013-03-03 12:01:47 -05:00
Kenneth Reitz
23d8522285
Revert "[ kennethreitz/requests#1208 ] adding a max_retries argument"
...
This reverts commit 796d3225dd .
2013-03-03 12:01:38 -05:00
Dmitry Medvinsky
c4f9340fb4
Add ability to pass response to HTTPError()
...
Just a little refactoring, but it seems nicer to me to be able to pass
the response when constructing the `HTTPError` instance instead of
constructing it and then changing the member variable.
2013-03-03 10:05:42 +04:00
Kenneth Reitz
d372a5b10b
Merge pull request #1190 from mkomitee/master
...
Pass user options to hooks
2013-03-02 13:04:00 -08:00
Kenneth Reitz
7aad3fd08c
Merge pull request #1219 from Wilfred/master
...
Adding max_retries as an argument
2013-03-02 13:02:26 -08:00
Kenneth Reitz
76c4b68e4a
Merge pull request #1226 from dmedvinsky/fix-typos
...
Fix couple of typos in HISTORY.rst
2013-03-02 13:00:48 -08:00
Kenneth Reitz
07441c8951
Merge pull request #1229 from sprt/master
...
Doc fix: URLError doesn't exist anymore
2013-03-02 12:59:41 -08:00
Kenneth Reitz
98ff29f793
Merge pull request #1230 from davidfischer/trivial-docs-fix
...
Github URL fix
2013-03-02 12:59:10 -08:00
Kenneth Reitz
08cab48431
Merge pull request #1231 from davidfischer/docs-migration1.0
...
Initial docs patch for migrating from pre 1.0
2013-03-02 12:58:49 -08:00
David Fischer
7e7c275504
Session isn't advertised as a context manager
2013-03-02 08:59:19 -08:00
David Fischer
73abf84ace
Capitalize s in Session
2013-03-02 08:51:55 -08:00
David Fischer
7eba5ffe48
Logic on streaming responses was changed in 1.0
...
* prefetch=False in 0.x is now stream=True
2013-03-02 08:44:14 -08:00
David Fischer
1d2ee524d8
Initial docs patch for migrating from pre 1.0
2013-03-01 23:21:08 -08:00
David Fischer
38f2581d6f
Github URL fix
2013-03-01 20:36:42 -08:00
sprt
b80f8aa475
URLError doesn't exist anymore
2013-03-01 20:20:53 +01:00
Dmitry Medvinsky
057f32924a
Fix couple of typos in HISTORY.rst
...
One typo and a couple of auto-completions, I guess.
2013-03-01 11:42:43 +04:00
Andrew Jesaitis
6a0845c984
Checks __attrs__ on session instance prior to iterating.
2013-02-28 15:13:57 -07:00
Wilfred Hughes
18b29ea005
[ kennethreitz/requests#1208 ] adding unit test for max_retries
2013-02-27 16:01:36 +00:00
Wilfred Hughes
796d3225dd
[ kennethreitz/requests#1208 ] adding a max_retries argument
2013-02-27 16:01:23 +00:00
Ian Cordasco
be62645dd5
Revert "If Content-Length is already set.."[1]
...
This reverts commit 544d08d0f6 .
[1]"If Content-Length is already set, don't over ride it"
2013-02-25 09:29:05 -05:00
Kenneth Reitz
603fd42fe6
Merge pull request #1205 from sigmavirus24/fix1203
...
Missing line was allowing redirects with HEAD
2013-02-25 02:31:21 -08:00
Kenneth Reitz
1fc567449c
Merge pull request #1210 from Lukasa/urlencode_proxy
...
Unquote proxy usernames and passwords.
2013-02-25 02:31:00 -08:00
Kenneth Reitz
c01bc5be5b
Revert "Lukasa is lazy"
...
This reverts commit 178ff62b93 .
2013-02-22 08:23:34 -05:00
Cory Benfield
577dba2bf7
Unquote proxy usernames and passwords.
2013-02-22 11:33:01 +11:00
Ian Cordasco
a788cb7271
Missing line was allowing redirects with HEAD
...
Closes #1203
2013-02-20 08:57:37 -05:00
Kenneth Reitz
178ff62b93
Lukasa is lazy
2013-02-20 02:11:41 -05:00
Kenneth Reitz
aa99525537
Merge pull request #1193 from Lukasa/timeout_exception
...
Throw more informative exceptions.
2013-02-19 23:10:44 -08:00
Kenneth Reitz
7e0b9cf409
Merge pull request #1200 from gazpachoking/session_cookies_fix
...
Make sure session cookies do not overwrite explicit request cookies
2013-02-19 22:50:10 -08:00
Kenneth Reitz
017c027629
Merge pull request #1199 from t-8ch/docs_explicit_proxy_scheme
...
Use explicit scheme for proxies in the docs
2013-02-19 05:40:15 -08:00
Cory Benfield
c2480f65e6
Rethrow underlying exceptions.
2013-02-18 16:30:16 +11:00
Chase Sterling
3f86e22a07
Make sure session cookies do not overwrite explicit request cookies
...
Implement RequestsCookieJar.copy
Use RequestsCookieJar.update when merging cookiejars
2013-02-16 00:56:59 -05:00
Thomas Weißschuh
b53975327f
use explicit scheme for proxies in the docs
...
Issue #1192 tried to force user to provide a scheme for proxy urls.
As this would break backwards compability change the docs instead.
2013-02-15 16:32:50 +00:00
Kenneth Reitz
d0390d4f27
Merge pull request #1194 from gazpachoking/cookiejar_update
...
Allow RequestsCookieJar to be updated with cookies from a CookieJar
2013-02-14 22:42:49 -08:00
Chase Sterling
f3393fb24c
Remove ability to from RequestCookieJar __getitem__, __setitem__ to use cookies as keys
2013-02-14 22:52:31 -05:00
Michael Komitee
4c21106222
Fixing test for python3
2013-02-14 21:33:01 -05:00
Chase Sterling
87d9d9643c
Allow RequestsCookieJar to be updated with cookies from a CookieJar
2013-02-14 01:05:42 -05:00
Michael Komitee
df5dcb8a7d
New tests fail on python 3.x because read() returns bytes and the test checks for strings
2013-02-13 22:42:56 -05:00
Michael Komitee
69ba64380b
Adding test to ensure options like stream function with authentication
...
This test demonstrates the reason why we need to pass kwargs to hooks. Without
it, features like stream cannot work with authentication.
2013-02-13 21:28:32 -05:00
Michael Komitee
d0285fac42
Use user supplied options when resending authenticated requests
...
Hooks sometimes have to send requests (e.g. when responding to a 401 during
authentication).
All keyword arguments should be passed along when hooks are dispatched so that
if a user wanted to use a timeout, stream, specify a cert location with the
verify flag, etc, their specification can be followed.
2013-02-13 19:11:38 -05:00
Kenneth Reitz
f73bda06e9
Merge pull request #1185 from sigmavirus24/fix_hook_dispatching
...
Dispatch hooks before following redirects
2013-02-13 02:13:31 -08:00
Ian Cordasco
4dfd6f3fc1
Dispatch hooks before following redirects
...
Fixes #1183
2013-02-12 23:00:06 -05:00
Kenneth Reitz
cdec20af65
Merge pull request #1181 from denis-ryzhkov/master
...
Fix of UnicodeDecodeError on unicode header name that can be converted to ascii.
2013-02-12 08:43:02 -08:00
Kenneth Reitz
09a7251245
Merge pull request #1184 from piotr-dobrogost/numeric_codes
...
small cleanup of redirect codes
2013-02-12 00:27:05 -08:00
Denis Ryzhkov
56f4b7ca68
Deleted is_py2 check from unicode_header_name fix thanks to Lukasa.
2013-02-12 09:51:46 +03:00
Piotr Dobrogost
4c8d1b9a7d
removed no longer used redirect codes from models
...
added numeric values of redirect codes in comments
2013-02-11 23:07:12 +01:00
Denis Ryzhkov
6da7e22a4a
Fix of UnicodeDecodeError on unicode header name that can be converted to ascii.
2013-02-11 15:37:58 +03:00
Kenneth Reitz
5d9fcc711b
Merge pull request #1180 from sigmavirus24/master
...
Fix Session level Cookie Handling
2013-02-10 16:43:21 -08:00
Ian Cordasco
2e31696156
Test and perfection for cookie handling.
...
I also fixed up some of the RequestsCookieJar methods so using
jar.update(other_jar) works without a problem. This cleans up some of the code
in sessions and the resolve_redirects method.
2013-02-10 19:36:36 -05:00
Ian Cordasco
0fb13e0b6c
And tests
2013-02-10 17:49:49 -05:00
Kenneth Reitz
1da1490bcd
urllib3 update
...
#1053
2013-02-10 17:43:58 -05:00
Ian Cordasco
9cdc8325ae
Fix Setting a cookie on redirect
2013-02-10 17:43:37 -05:00
Kenneth Reitz
12d66cfc41
Merge pull request #1173 from sigmavirus24/use_send_in_resolve_redirects
...
Use send in resolve redirects
2013-02-10 14:21:13 -08:00
Ian Cordasco
9c8660dbb6
Resolve @piotr-dobrogost's concerns
...
Piotr had good objections to my not re-sending the body of the request on 307.
2013-02-10 17:14:45 -05:00
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
Chad Whitacre
ef52044c5f
Remove a test per @kennethreitz in IRC
...
The test suite is moving from the httpbin pattern (which hits the
network) to depending on the request.prepare method (which doesn't).
Here's a start ...
2013-01-23 20:32:03 -05:00
Steve Klabnik
ccea28db07
introduce a test for link headers.
2013-01-23 20:31:05 -05:00
Kenneth Reitz
e21ef547f7
Merge pull request #1134 from steveklabnik/remove_silly_assert
...
remove silly assert
2013-01-23 17:06:40 -08:00
Steve Klabnik
0af8ff9405
remove silly assert
2013-01-23 20:03:43 -05:00
Kenneth Reitz
6e0ca583fe
Merge pull request #1132 from sburns/jsonkwargs
...
Pass kwargs to json.loads
2013-01-23 14:02:37 -08: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
Kenneth Reitz
b94510fc42
Merge pull request #1128 from mvid/master
...
Updating urllib3 to current master
2013-01-22 17:45:00 -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
47aa968f3c
Merge pull request #1121 from Lukasa/typo
...
Small typo fixes.
2013-01-22 06:40:24 -08: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
Kenneth Reitz
cd0cbada65
Merge pull request #1095 from Jud/patch-1
...
Fix spacing in setup.py
2013-01-22 05:10:19 -08:00
Kenneth Reitz
ed559bb8b1
Merge pull request #1122 from Lukasa/readline
...
Decrease default line length for iter_lines
2013-01-22 05:09:11 -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
Cory Benfield
c678a7b402
Small typo fixes.
2013-01-21 19:55:08 +00:00
Kenneth Reitz
b7242a1ad1
Merge pull request #1120 from spulec/patch-2
...
Add py3.3 testing back
2013-01-21 11:27:41 -08:00
Steve Pulec
cf0a5089f5
Add py3.3 testing back
2013-01-21 14:19:29 -05:00
Cory Benfield
de32f1774f
Remove test that cannot work on Python3.
2013-01-19 17:14:32 +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
Kenneth Reitz
c920ee57b8
Merge pull request #1110 from slingamn/certifi_eol
...
Remove support for certifi
2013-01-18 04:39:41 -08: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
Kenneth Reitz
f038f68ad8
Merge pull request #1107 from Lukasa/master
...
Correct broken cookies example
2013-01-17 19:50:55 -08:00
Cory Benfield
d3e6597f73
Update docs with correct cookie behaviour.
2013-01-17 19:28:28 +00:00
Kenneth Reitz
f8d729a17b
Merge pull request #1105 from slingamn/turktrust
...
refresh CA certificates
2013-01-17 02:51:52 -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
Jud
a950322b07
Fix spacing in setup.py
2013-01-11 11:42:02 -05:00
Kenneth Reitz
34917618d8
+1
2013-01-11 09:34:14 -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
Kenneth Reitz
6ec1a9ca52
Merge pull request #1091 from vinodc/specify_file_content_type
...
Allow for explicit file content type support
2013-01-09 23:02:47 -08:00
Kenneth Reitz
9d33629b6d
don't supply params for directs
...
Closes #1070
2013-01-10 01:58:46 -05:00
Kenneth Reitz
ef8563ab36
CHUNKED REQUESTS!
2013-01-10 01:58:29 -05:00
Jian Li
a392a87389
Retrieve kwargs.keys() just once.
2013-01-09 22:07:38 -08:00
Kenneth Reitz
4a5b5bc86e
test cleanup
2013-01-10 00:40:17 -05:00
Jian Li
68edcd12b1
Make merge_kwargs case-insensitive when looking up keys.
2013-01-09 21:29:24 -08:00
Vinod Chandru
fbc366c1a5
Fixing test to ensure it passes with python 3.
2013-01-09 20:10:54 -08:00
Vinod Chandru
20b10aed1b
Allow for third argument in file dict value to support explicit
...
file content type.
2013-01-09 19:29:28 -08:00
Kenneth Reitz
b4505284f2
Merge pull request #1080 from sigmavirus24/master
...
Fix #1079
2013-01-07 10:42:30 -08:00
Kenneth Reitz
47fe258b5a
Merge pull request #1085 from graingert/patch-1
...
Update the advanced doc to use the r.json method
2013-01-07 10:42:14 -08:00
Kenneth Reitz
21616a815b
Merge pull request #1086 from graingert/patch-2
...
Update the link headers doc to match the code
2013-01-07 10:41:51 -08:00
Kenneth Reitz
50934e056e
Merge pull request #1089 from PaulMcMillan/philosophy
...
Clarify support for alternative distributions
2013-01-07 10:41:32 -08:00
Paul McMillan
ba1df2cfca
Clarify support for alternative distributions
2013-01-07 13:34:51 -05:00
Thomas Grainger
7dc13e5cab
Update the link headers doc to match the code
2013-01-04 21:46:14 +00:00
Thomas Grainger
7687746c7c
Update the advanced doc to use the r.json method
2013-01-04 21:33:51 +00:00
Ian Cordasco
5264c71d86
Fix #1079
...
Restore the functionality from here:
https://github.com/kennethreitz/requests/blob/v0.14.2/requests/models.py#L884
2013-01-02 14:25:33 -05:00
Kenneth Reitz
5d87e1aeba
Update LICENSE
2012-12-31 17:59:18 -05:00
Kenneth Reitz
c03e893416
Merge pull request #1076 from sigmavirus24/master
...
Remove (safe|danger)_mode references from docs
2012-12-30 23:49:44 -08:00
Ian Cordasco
fef09a6691
Remove safe_mode/danger_mode from docs
2012-12-30 19:46:04 -05:00
Kenneth Reitz
1d35d439cc
Merge pull request #1071 from Lukasa/master
...
Proxies should have schemes.
2012-12-28 07:41:55 -08:00
Cory Benfield
054e1ab3ee
Remove silly print statement.
2012-12-28 15:38:04 +00:00
Cory Benfield
641f4611b2
Make sure proxies have their scheme attached.
2012-12-27 13:37:36 +00:00
Kenneth Reitz
594716abea
Merge pull request #1060 from Lukasa/proxy
...
Provide full URL to proxies.
2012-12-27 03:24:55 -08:00
Cory Benfield
d675abbd3f
Remove unneeded import.
2012-12-27 11:22:36 +00:00
Cory Benfield
702f4039bc
Use full URL when contacting proxies.
...
Requests should use the full URL, not the path URL, when forwarding
traffic through proxies.
2012-12-27 11:22:36 +00:00
Cory Benfield
b479a62ec2
PreparedRequests don't carry proxy information.
...
The proxy info appears to be carried on the session. The only remnants
of proxy handling are this line in __init__().
2012-12-27 11:22:36 +00:00
Kenneth Reitz
81c18c70f5
Merge pull request #1065 from slingamn/certs.release
...
clean up code support for OS certificate bundles
2012-12-23 02:49:02 -08:00
Shivaram Lingamneni
bbea679ab2
clean up code support for OS certificate bundles
2012-12-23 02:40:18 -08:00
Kenneth Reitz
f1d51aa7eb
timeout
2012-12-23 02:45:41 -05:00
Kenneth Reitz
5b5ff69201
update docs
2012-12-23 02:42:14 -05:00
Kenneth Reitz
0665129008
reorder out there
2012-12-23 02:34:53 -05:00
Kenneth Reitz
afd6482219
python for ios
2012-12-23 02:33:03 -05:00
Kenneth Reitz
a23f22e5dc
support
2012-12-23 02:29:24 -05:00
Kenneth Reitz
e00e50d01a
philsophy
2012-12-23 02:27:28 -05:00
Kenneth Reitz
1960c3c29d
Benevolent
2012-12-23 02:25:59 -05:00
Kenneth Reitz
08f66a99b1
semantic versioning
2012-12-23 02:13:31 -05:00
Kenneth Reitz
ab64052642
developer values
2012-12-23 02:07:01 -05:00
Kenneth Reitz
25a9c9fb22
- Python 2.6—3.3
2012-12-23 01:56:46 -05:00
Kenneth Reitz
f0beed8686
+
2012-12-23 01:53:22 -05:00
Kenneth Reitz
5a7d461230
philosophy
2012-12-23 01:51:23 -05:00
Kenneth Reitz
d45eb53bc7
contributor
2012-12-23 01:50:52 -05:00
Kenneth Reitz
911e8aec8d
developer interface
2012-12-23 01:50:23 -05:00
Kenneth Reitz
9f89ebe0de
request sessions
2012-12-23 01:49:44 -05:00
Kenneth Reitz
526a0befc7
cleaup api docs
2012-12-23 01:47:35 -05:00
Kenneth Reitz
f0fe551dc9
thanks, @sigmavirus24
2012-12-23 01:45:49 -05:00
Kenneth Reitz
f8e2d0e732
api docs
2012-12-23 01:44:54 -05:00
Kenneth Reitz
fcccc82282
Merge remote-tracking branch 'origin/master'
2012-12-23 01:40:12 -05:00
Kenneth Reitz
3ddcc99131
docs update
2012-12-23 01:40:07 -05:00
Kenneth Reitz
70faca2a14
docs, cleanup for preparedrequest
2012-12-23 01:25:01 -05:00
Kenneth Reitz
5f9fecd3aa
prepared request docs
2012-12-23 01:21:02 -05:00
Kenneth Reitz
6e780fad6d
remove unused timeout
2012-12-23 01:16:00 -05:00
Kenneth Reitz
28b706da83
v1.0.4
2012-12-23 01:15:14 -05:00
Kenneth Reitz
aa3347b2a3
request
2012-12-23 01:14:27 -05:00
Kenneth Reitz
f8a59c3e6f
request docstrings
2012-12-23 01:14:22 -05:00
Kenneth Reitz
484916066a
Merge pull request #1064 from rascalking/master
...
fix POST redirects
2012-12-22 22:06:12 -08:00
Kenneth Reitz
b3fbc810d2
no async anymore
2012-12-23 01:02:32 -05:00
Kenneth Reitz
1539d17366
update test docs
2012-12-23 01:02:26 -05:00
Kenneth Reitz
a158abfa15
remove stuidly annoying email notifications
2012-12-23 00:52:18 -05:00
David Bonner
7d085b188c
fix POST redirects
...
the redirect handling logic compares then method to upper-case strings,
so make sure the method gets upper-cased as well.
add a test to POST to /status/302 on httpbin, which fails against httpbin.org
right now. i'm submitting a pull request over there to fix that right after
this one. once that's accepted, the new test verifies that the fix works.
2012-12-23 00:51:26 -05:00
Kenneth Reitz
aaa3bf16a9
Merge pull request #1061 from philfreo/patch-1
...
Fixes url to AUTHORS.rst
2012-12-22 14:10:30 -08:00
Kenneth Reitz
22a1f0917b
Merge pull request #1062 from philfreo/patch-2
...
Using 'master' branch for development
2012-12-22 14:10:17 -08:00
Phil Freo
78f48aef8f
Using 'master' branch for development
...
I'm assuming you're no longer using a 'develop' branch, as I don't see one on GitHub.
2012-12-22 16:46:05 -05:00
Phil Freo
7b1b9df423
Fixes url to AUTHORS.rst
...
and also mention using 'master' as development branch now.
2012-12-22 16:44:43 -05:00
Kenneth Reitz
e23343ab17
Merge pull request #1059 from Lukasa/sess_docs
...
Update session documentation.
2012-12-22 03:08:47 -08:00
Kenneth Reitz
b8affd9520
Merge pull request #1049 from Lukasa/master
...
Correctly identify certificate filenames.
2012-12-22 03:05:50 -08:00
Cory Benfield
1790b1df17
Update session documentation.
2012-12-22 11:03:29 +00:00
Kenneth Reitz
60b4843678
Merge pull request #1055 from michaelwheeler/patch-1
...
Fixed typo in comment.
2012-12-20 12:55:51 -08:00
michaelwheeler
0b42772663
Fixed typo in comment.
2012-12-20 15:38:04 -05:00
Kenneth Reitz
a49db50b4a
Merge pull request #1052 from hozn/apidocs-tweak
...
Small tweak to API docs to indicate that file-like object supported for data param.
2012-12-20 09:09:24 -08:00
Hans Lellelid
bfef8d99c8
Updated API docs for 'data' param in sessions module to indicate that file-like object is also supported.
2012-12-20 09:47:29 -05:00
Hans Lellelid
dd271782e8
Tweaked the 'data' param docs to indicate that a file-like object is also supported.
2012-12-20 09:45:06 -05:00
Cory Benfield
09da1921ff
Import basestring.
2012-12-19 21:37:47 +00:00
Kenneth Reitz
0769ee3b6d
Merge pull request #1048 from ib-lundgren/master
...
Swap prepare_auth and body
2012-12-19 13:12:03 -08:00
Ib Lundgren
05de270d7a
Why auth must be prepared last
2012-12-19 21:30:11 +01:00
Cory Benfield
f1ba27faa2
Fix stupid, stupid logic error.
2012-12-19 20:26:41 +00:00
Cory Benfield
8cb904b49d
Correctly identify cert files.
...
Resolves issue #1046 .
2012-12-19 20:11:17 +00:00
Ib Lundgren
7e594eb121
Swap prepare_auth and prepare_body
2012-12-19 21:04:50 +01:00
Kenneth Reitz
4966d9c714
Merge pull request #1037 from sigmavirus24/master
...
Fix #1036
2012-12-18 10:09:33 -08:00
Ian Cordasco
14da5cf180
A possible fix for #1036
...
I can only assume that the only possible thing to close on a session are the
adapters. As such, I wrote the close method for a session object which closes
all possible adapters.
2012-12-18 09:43:55 -05:00
Kenneth Reitz
6acce57271
no kwargs
2012-12-18 05:01:32 -05:00
Kenneth Reitz
c60b72e2d0
v1.0.3
2012-12-18 04:50:41 -05:00
Kenneth Reitz
b2d03ac9a2
Merge pull request #1026 from TorKlingberg/master
...
Added requirements.txt to MANIFEST.in
2012-12-17 21:49:45 -08:00
Kenneth Reitz
027fbd3d51
Merge pull request #1030 from bboe/cookie_fix
...
Fix issue 1027. Always persist cookies.
2012-12-17 21:45:49 -08:00
Kenneth Reitz
a2f773a9fc
Merge pull request #1031 from sigmavirus24/master
...
Just a bit of linting
2012-12-17 21:44:56 -08:00
Ian Cordasco
68d394952a
A bit of linting.
...
Mostly removed a whole bunch of unused imports.
2012-12-17 20:19:11 -05:00
Bryce Boe
e355d6ac6c
Fix issue 1027. Always persist cookies.
2012-12-17 17:13:18 -08:00
Apoc2400
dc74223461
MANIFEST.in contained test_requests.py but was missing requirements.txt that it depends on.
...
Added requirements.txt.
Now both files will be included in the .tar.gz file that can be downloaded from http://pypi.python.org/pypi/requests
2012-12-18 00:16:29 +01:00
Kenneth Reitz
5c4aa0bcb7
Merge pull request #1024 from etscrivner/master
...
Fix HTTP method encoding problem with attached files
2012-12-17 12:53:22 -08:00
Eric Scrivner
8c01865d62
Remove unicode encoding for HTTP method.
2012-12-17 12:39:15 -08:00
Eric Scrivner
916e6fcd64
Add unit-test to reproduce encoding error.
2012-12-17 12:28:08 -08:00
Kenneth Reitz
4701243199
Merge pull request #1009 from Lukasa/master
...
Auth documentation.
2012-12-17 11:27:36 -08:00
Cory Benfield
a7c5d5e8ac
Split authentication out into a separate file.
2012-12-17 19:25:21 +00:00
Kenneth Reitz
d0f23820b5
Merge pull request #1022 from kisielk/master
...
JSON-related doc fixes
2012-12-17 11:03:40 -08:00
Kamil Kisiel
fe0b0a989f
Fixed a few spots in the docs that were still using json as a property.
2012-12-17 11:02:06 -08:00
Kenneth Reitz
f549efd43d
v1.0.2
2012-12-17 13:58:33 -05:00
Kenneth Reitz
5eb3a17b55
v1.0.2
2012-12-17 13:58:07 -05:00
Kenneth Reitz
b30b09e84c
v1.0.1
2012-12-17 13:53:24 -05:00
Kenneth Reitz
5152c98223
fix for #1017
2012-12-17 13:52:46 -05:00
Kenneth Reitz
27c6dc3735
Merge pull request #1020 from Lukasa/misc
...
Fix off-by-one error.
2012-12-17 10:46:09 -08:00
Cory Benfield
8b1b706903
Fix off-by-one error.
2012-12-17 18:42:32 +00:00
Kenneth Reitz
64eee1eba7
v1.0.1
2012-12-17 13:42:03 -05:00
Kenneth Reitz
1e64fbcb55
CURL_CA_BUNDLE
2012-12-17 13:41:20 -05:00
Kenneth Reitz
910b2312d6
fix verify bug
...
Fixes #1019
2012-12-17 13:38:38 -05:00
Cory Benfield
54b77afbb5
Uh, typo broke the link. Yeah. That happened.
2012-12-17 18:31:56 +00:00
Cory Benfield
be364e13d3
Update auth documentation with org info.
2012-12-17 18:31:56 +00:00
Kenneth Reitz
9bb332fee1
remove .env
2012-12-17 12:55:40 -05:00
Kenneth Reitz
31c73a61f9
testimonial
2012-12-17 10:26:11 -05:00
Kenneth Reitz
0d8d99de66
travis on 3.3 is broken
2012-12-17 10:07:13 -05:00
Kenneth Reitz
88b5ebceb6
no 3.0
2012-12-17 09:59:05 -05:00
Kenneth Reitz
4c647cd8b7
0x01000
2012-12-17 09:57:48 -05:00
Kenneth Reitz
b95ad3f6a8
ready.
2012-12-17 09:57:13 -05:00
Kenneth Reitz
957216d1fb
makin' history
2012-12-17 08:46:50 -05:00
Kenneth Reitz
92209d9ebe
3.3
2012-12-17 08:42:47 -05:00
Kenneth Reitz
c2100c0a4e
requirements.txt
2012-12-17 08:39:13 -05:00
Kenneth Reitz
c65a52a1d0
update
2012-12-17 08:36:58 -05:00
Kenneth Reitz
1451ba0c6d
update docs
2012-12-17 08:33:18 -05:00
Kenneth Reitz
480a3821ab
remove chardet
2012-12-17 08:17:19 -05:00
Kenneth Reitz
0569fe44d8
new tests!
2012-12-17 08:09:52 -05:00
Kenneth Reitz
73ed0d01f6
basic tests
2012-12-17 07:39:27 -05:00
Kenneth Reitz
82cce02120
basic test
2012-12-17 07:29:33 -05:00
Kenneth Reitz
e4c4c80b82
remove all old tests
2012-12-17 07:27:25 -05:00
Kenneth Reitz
a982b0d903
proxy manager
2012-12-17 07:21:10 -05:00
Kenneth Reitz
c3431bb6f2
tension
2012-12-17 07:01:59 -05:00
Kenneth Reitz
d11522b29e
Connection Adapter Mounting!
2012-12-17 06:55:33 -05:00
Kenneth Reitz
bc34f33955
apparent_encoding
2012-12-17 06:35:10 -05:00
Kenneth Reitz
4c3b9df609
/s/prefetch/stream
2012-12-17 06:35:01 -05:00
Kenneth Reitz
5b5d8a81b7
remove bunk
2012-12-17 06:26:22 -05:00
Kenneth Reitz
bc4af7c7e1
docstrings
2012-12-17 06:25:47 -05:00
Kenneth Reitz
ca0d08eeda
urlparse(url)
2012-12-17 06:25:03 -05:00
Kenneth Reitz
a197309e21
generator rejection
2012-12-17 06:02:01 -05:00
Kenneth Reitz
a75ba04eed
return_response
2012-12-17 05:59:17 -05:00
Kenneth Reitz
899c9a9522
fix cookies
2012-12-17 05:49:25 -05:00
Kenneth Reitz
42b0295521
__attrs__
2012-12-17 05:48:18 -05:00
Kenneth Reitz
4bad1285b6
nice and cleanup
2012-12-17 05:47:41 -05:00
Kenneth Reitz
a776e7cb3e
fix params support
2012-12-17 05:23:22 -05:00
Kenneth Reitz
def20cdb0c
remove iter_json, don't want to commit to it
2012-12-17 05:12:59 -05:00
Kenneth Reitz
92355ada54
cleanup
2012-12-17 05:09:44 -05:00
Kenneth Reitz
42ee255c80
no staticmethod
2012-12-17 04:56:16 -05:00
Kenneth Reitz
4837900832
digest works!
...
added some nice backwards compatible stuff too
2012-12-17 04:55:58 -05:00
Kenneth Reitz
1c30ef453b
remove old auth stuff
2012-12-17 04:33:13 -05:00
Kenneth Reitz
377078b0f5
hooks and things
2012-12-17 04:31:26 -05:00
Kenneth Reitz
2c5b0207f5
new urllib3
2012-12-17 04:08:36 -05:00
Kenneth Reitz
e7598e006c
charade v1.0.1
2012-12-17 04:08:03 -05:00
Kenneth Reitz
03c8e23dbb
response
2012-12-17 03:56:58 -05:00
Kenneth Reitz
ee6c638e9c
hmmm
2012-12-17 03:51:23 -05:00
Kenneth Reitz
2b4ca0b0dc
redorder imports
2012-12-17 03:32:24 -05:00
Kenneth Reitz
98a7585fbd
cleanup to url logic
2012-12-17 03:29:45 -05:00
Kenneth Reitz
4e5c4a6ab7
further remove config
2012-12-17 03:26:47 -05:00
Kenneth Reitz
8cf6a3593d
reduce imports
2012-12-17 03:23:16 -05:00
Kenneth Reitz
e4b56049ad
from cookies import extract_cookies_to_jar
2012-12-17 03:21:50 -05:00
Kenneth Reitz
e766f0b67c
meh
2012-12-17 03:16:21 -05:00
Kenneth Reitz
f44bb31bec
better yield
2012-12-17 03:13:19 -05:00
Kenneth Reitz
b1bcaecc66
MaxRedirects
2012-12-17 03:12:50 -05:00
Kenneth Reitz
94e82e9cc2
murder the defaults
2012-12-17 03:09:07 -05:00
Kenneth Reitz
cc4b0b110f
further remove config
2012-12-17 03:08:25 -05:00
Kenneth Reitz
2b5aed78d0
actually honor details
2012-12-17 02:52:39 -05:00
Kenneth Reitz
7fc9378895
iter_json
...
Closed #1015
2012-12-17 02:42:34 -05:00
Kenneth Reitz
d5572ac13f
history is a tuple, not list
2012-12-17 02:32:19 -05:00
Kenneth Reitz
0d183c41a9
epic redirect generator is epic
2012-12-17 02:27:07 -05:00
Kenneth Reitz
0bee888f73
redirects work!
2012-12-17 02:21:22 -05:00
Kenneth Reitz
4a01272fb3
cleanup
2012-12-17 01:25:55 -05:00
Kenneth Reitz
42a206e5d3
better docstrings
2012-12-17 00:27:37 -05:00
Kenneth Reitz
d15365bf4f
remove useless attributes
2012-12-17 00:25:45 -05:00
Kenneth Reitz
898079f7e2
license
2012-12-17 00:18:04 -05:00
Kenneth Reitz
9ab3234f0e
Merge remote-tracking branch 'origin/master'
2012-12-17 00:10:35 -05:00
Kenneth Reitz
bf05b7aeb5
v1.0.0
2012-12-17 00:10:32 -05:00
Kenneth Reitz
7ec0170a00
keep json None fo row
2012-12-16 22:06:03 -05:00
Kenneth Reitz
8b141b326a
json errors
2012-12-16 22:03:55 -05:00
Kenneth Reitz
418a209330
Merge pull request #1012 from bodziec/master
...
Fixed small bug where user couldn't add custom headers
2012-12-16 12:14:23 -08:00
Bartek Sarul
73ca21ed8c
Fixed a bug where user couldn't add custom headers.
2012-12-16 15:59:28 +01:00
Kenneth Reitz
fee7a7a80d
Merge pull request #1011 from kuyan/master
...
Fixed relative import
2012-12-15 20:45:23 -08:00
Natan L
ed360dcaf5
Fixed relative import.
...
For Python 3 support.
2012-12-15 19:53:56 -08:00
Kenneth Reitz
7ef6b6b682
Merge pull request #1007 from passy/patch-1
...
Updated Travis CI URL in README
2012-12-15 13:14:41 -08:00
Pascal Hartig
b45a1081d2
Updated travis-ci URL in README
...
The old URL appears to be broken, redirecting to https://travis-ci.org//kennethreitz/requests
Also, according to [their wiki](http://about.travis-ci.org/docs/user/status-images/ ) the *secure* isn't required anymore.
2012-12-15 13:12:35 +01:00
Kenneth Reitz
12aa401885
Merge remote-tracking branch 'origin/master'
2012-12-15 05:50:05 -05:00
Kenneth Reitz
92d57036f3
WHOOOOOOOOOOOOOOOO
2012-12-15 05:50:01 -05:00
Kenneth Reitz
58c10edb07
Merge pull request #1006 from passy/test-py3k-fix
...
Use range in favor of xrange for py3k test compatibility
2012-12-15 02:22:25 -08: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
88d4143018
base adapter
2012-12-15 04:33:48 -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
19e1f2037c
session.send()
2012-12-15 00:45:43 -05:00
Kenneth Reitz
edfd0990b5
prepare
2012-12-15 00:45:12 -05:00
Kenneth Reitz
ec5844a3bc
test
2012-12-15 00:44:42 -05:00
Kenneth Reitz
4d07cad175
history
2012-12-15 00:12:38 -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
Kenneth Reitz
79992579c9
remove danger_mode tests
2012-12-14 23:27:38 -05:00
Kenneth Reitz
67c7e496f5
remove safe_mode tests
2012-12-14 23:26:48 -05:00
Kenneth Reitz
966672dbc1
ignore test files
2012-12-14 23:26:41 -05:00
Kenneth Reitz
fa838c7a85
cleanup makefile
2012-12-14 23:11:49 -05:00
Kenneth Reitz
342facb571
Merge pull request #1001 from matthewlmcclure/issues/1000
...
Import oauthlib without the obsolete wrapper.
2012-12-14 20:07:18 -08:00
Kenneth Reitz
ddf2dde663
Merge pull request #1002 from passy/remove-artifacts
...
Remove testing artifacts
2012-12-14 20:06:56 -08:00
Pascal Hartig
a98ec717f2
Use range in favor of xrange for py3k compatibility
...
request_count is 2 so it really makes no difference performance-wise at all.
2012-12-14 23:29:33 +01:00
Pascal Hartig
17aee31940
Removed testing artifacts
2012-12-14 23:08:54 +01:00
Kenneth Reitz
7e47d5ef30
Merge remote-tracking branch 'origin/master'
2012-12-12 16:53:44 -05:00
Kenneth Reitz
584cfb664d
trying out egg
2012-12-12 16:53:40 -05:00
Matt McClure
f69934fb24
Import oauthlib without the obsolete wrapper.
...
Fixes #1000 .
2012-12-12 10:45:00 -05:00
Kenneth Reitz
d74bd7e1a2
Merge pull request #998 from jamshid/master
...
Issue #996 Location should not be followed unless 30X response
2012-12-12 00:09:43 -08:00
Jamshid Afshar
500dc78867
Issue #996 Location should not be followed unless 30X response.
2012-12-11 18:14:13 -06:00
Kenneth Reitz
a7344a034a
Merge pull request #991 from lyndsysimon/master
...
Changes license from ISC to Apache2
2012-12-06 10:21:15 -08:00
Lyndsy Simon
710f09f806
Updates from ISC to Apache2
2012-12-05 16:19:14 -06:00
Kenneth Reitz
25b9b2330e
Merge pull request #987 from Lukasa/master
...
Update docs to reflect correct use of raw.
2012-12-04 17:34:20 -08:00
Cory Benfield
93b2be48f0
Prefetch must be false to use response.raw.
...
Resolves issue #979 .
2012-12-04 18:10:33 +00:00
Kenneth Reitz
f2820ee8c4
Merge pull request #985 from ming13/readme-syntax-highlighting
...
Use console syntax highlighting in the readme file
2012-12-03 09:23:33 -08:00
Artur Dryomov
1a08cea007
Use console syntax highlighting in the readme file.
2012-12-03 20:20:47 +03:00
Kenneth Reitz
ce595d4da7
Merge pull request #983 from jszakmeister/allow-strict
...
Add the ability to turn off HTTP 0.9 support.
2012-12-02 08:43:31 -08:00
John Szakmeister
ed642cfb6d
Add the ability to turn off HTTP 0.9 support.
...
While debugging an issue I discovered requests was coming back with 200
response, when it really shouldn't have. It turns out this happened for
two reasons: the jetty server running the app was rather lame and
didn't fail the request as a Bad Request, and httplib was happy to let
malformed data through and call it success.
It turns out httplib's strict flag controls this behavior of whether or
not to validate the status line. The underlying urllib3 supports the
concept as well. There was a bug there to that is now fixed upstream.
The last step is exposing this through requests. This introduces a
supports_http0.9 flag to help control this behavior. It defaults to
to True to preserve the current behavior. Setting it to False will
allow the underlying HTTPConnection to validate the status line.
2012-12-02 11:25:18 -05:00
Kenneth Reitz
3b5d580409
Merge remote-tracking branch 'origin/master'
2012-12-02 10:09:05 +01:00
Kenneth Reitz
ad311497fa
update charade
2012-12-02 10:08:57 +01:00
Kenneth Reitz
33eb76f958
Merge pull request #982 from vlaci/master
...
Added support for persistent connections (keep-alive) in proxy mode
2012-12-02 00:56:44 -08:00
László Vaskó
5eb78876e1
Added support for persistent connections (keep-alive) in proxy mode
2012-12-02 01:28:24 +01:00
László Vaskó
e8d20926d3
Added testcases for keep-alive handling
...
* Added a dummy_server module to check connection count
* Added testcases for proxy and direct connections
2012-12-02 01:06:52 +01:00
Kenneth Reitz
23e6f533b0
Merge pull request #980 from dbrgn/github_name_change
...
Github name change
2012-12-01 07:56:47 -08:00
Kenneth Reitz
b60b11e206
Merge remote-tracking branch 'origin/master'
2012-12-01 16:55:14 +01:00
Kenneth Reitz
2eb63be19a
chardet fixes!
2012-12-01 16:55:09 +01:00
Danilo Bargen
8798dd5eda
Github name change
2012-12-01 15:38:03 +01:00
Kenneth Reitz
426734da51
Merge pull request #977 from ondrowan/patch-2
...
Update README.rst
2012-11-29 10:59:49 -08:00
Ondrej Slinták
ae41c733ea
Update README.rst
...
There was a typo in AUTHORS link - it pointed to develop branch which no longer exists.
2012-11-29 19:58:46 +01:00
Kenneth Reitz
a5cb6355ed
Merge branch 'master' of github.com:kennethreitz/requests
...
Conflicts:
requests/compat.py
setup.py
2012-11-29 08:35:35 -08:00
Kenneth Reitz
6ead850065
charade
2012-11-29 08:30:07 -08:00
Kenneth Reitz
1960dabafd
out with chardet, in with charade
2012-11-29 08:29:02 -08:00
Kenneth Reitz
8f86ff633a
Merge pull request #973 from sigmavirus24/fix_972
...
Fix #972
2012-11-28 08:40:09 -08:00
Kenneth Reitz
4d5c327f6f
Merge pull request #976 from futoase/master
...
Repaired import error.
2012-11-28 08:33:56 -08:00
Keiji Matsuzaki
b69854e96e
Modified: Change the import statement.
2012-11-29 01:29:13 +09:00
Ian Cordasco
fd6b1f0c4e
Fix #972
...
Someone forgot a comma
2012-11-27 22:14:09 -05:00
Kenneth Reitz
ccd14ddc81
fixes for python2
2012-11-27 13:08:16 -08:00
Kenneth Reitz
0af19a05ce
fix chardet import
2012-11-27 12:52:17 -08:00
Kenneth Reitz
f553857beb
remove safe mode
2012-11-27 12:42:11 -08: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
400046f911
that shouldn't be neccesary anymore
2012-11-27 12:37:59 -08:00
Kenneth Reitz
71898bb793
chardet2 is magic
2012-11-27 12:36:29 -08:00
Kenneth Reitz
ad18d9ddd6
fix setup.py for oauth removal
2012-11-27 11:48:17 -08:00
Kenneth Reitz
4d06e4019f
no more oauth
2012-11-27 11:47:17 -08:00
Kenneth Reitz
5c1bc201c4
lawyer up, v2
2012-11-27 11:32:59 -08:00
Kenneth Reitz
cc723a64b9
Merge pull request #967 from matthewlmcclure/sign-without-body
...
Sign requests even if they have no body data.
2012-11-27 10:43:57 -08:00
Matt McClure
f02573f743
Sign requests even if they have no body data.
2012-11-27 13:12:21 -05:00
Kenneth Reitz
7fea9afecd
Merge remote-tracking branch 'origin/develop' into develop
2012-11-26 20:50:09 -08:00
Kenneth Reitz
a1b6ef3f85
how was that still there?
2012-11-26 17:27:35 -08:00
Kenneth Reitz
2dccc8e982
Merge pull request #962 from sigmavirus24/dev_docs
...
Add a bit more to the developer's documentation
2012-11-26 12:26:38 -08:00
Ian Cordasco
24ed8c9457
Add a bit more to the developer's documentation
...
I'm not sure what else could be added to satisfy #601 . If this is sufficient,
I suggest closing that.
2012-11-26 13:25:02 -05:00
Kenneth Reitz
0d59a27b56
Merge pull request #956 from Lukasa/issue910
...
Try to resolve OAuth+JSON problems.
2012-11-26 00:40:27 -08:00
Kenneth Reitz
d36ceb9d06
Merge pull request #953 from heyman/fix_session_safe_mode
...
Fixes so that safe_mode works for Sessions
2012-11-26 00:31:45 -08:00
Kenneth Reitz
27faf7aa69
Merge pull request #955 from Lukasa/issue882
...
Python 3.1 compatibility.
2012-11-26 00:30:49 -08:00
Kenneth Reitz
5ee00a75e0
Merge pull request #957 from sigmavirus24/fix_223
...
Attach Content-Length to everything.
2012-11-24 19:54:29 -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
31f74bd02e
Make OAuth handle less-common body data better.
...
Related to Issue #910 . Specifically, OAuth won't sign the request unless
it gets a body type that is urlencoded or multipart. This is overly
restrictive. The correct behaviour is to sign the message without
including the body as part of the signature.
2012-11-24 21:17:29 +00: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
Jonatan Heyman
8269ee7266
Fixed so that safe_mode works for Sessions
2012-11-23 16:48:51 +01:00
Kenneth Reitz
991f47ac08
Merge pull request #942 from Lukasa/issue883
...
MockRequest needs a type property for Py3.3
2012-11-23 02:04:21 -08:00
Kenneth Reitz
1d1eb994dc
Merge pull request #945 from Lukasa/develop
...
Respect the no_proxy environment variable.
2012-11-23 02:03:28 -08:00
Kenneth Reitz
68224252e2
Merge pull request #947 from JohnPeacockMessageSystems/develop
...
Only return a path if the cacert.pem file exists.
2012-11-23 02:02:18 -08:00
Kenneth Reitz
36c32aead2
Merge pull request #948 from mwielgoszewski/develop
...
Back to issue #630 , .isalnum() was sufficient in addressing the issue.
2012-11-23 02:01:20 -08:00
Marcin Wielgoszewski
18be26fc2a
Back to issue #630 , .isalnum() was sufficient in addressing the issue.
...
Adding a try/except block just masks any issues that are raised here, issues that the developer should definitely be made aware of.
2012-11-22 11:10:22 -05:00
Kenneth Reitz
59dea188da
Merge remote-tracking branch 'origin/develop' into develop
2012-11-21 17:59:11 -05:00
Kenneth Reitz
284deaa609
obama
2012-11-21 17:58:13 -05:00
John Peacock
68f7fae7c3
Merge branch 'develop' of github.com:JohnPeacockMessageSystems/requests into develop
2012-11-21 13:41:39 -05:00
John Peacock
20cd46426f
Only return a path if the cacert.pem file exists.
...
This will permit the deletion of just that one file in order
to fall back to the [probably more accurate but less consistent]
Distro provided CA certs.
2012-11-21 13:41:16 -05:00
John Peacock
c5fddb95ed
Only return a path if the cacert.pem file exists.
...
This will permit the deletion of just that one file in order
to fall back to the [probably more accurate but less consistent]
Distro provided CA certs.
2012-11-21 13:34:03 -05:00
Cory Benfield
c02520ed99
Make sure we reset environment variables.
...
Turns out nose runs all the tests in one process, so changing the
os.environ dictionary makes everything go horribly wrong.
2012-11-18 12:31:55 +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
b76326bf94
MockRequest needs a type property for Py3.3
2012-11-17 13:00:39 +00:00
Kenneth Reitz
50877717c8
Merge pull request #940 from Lukasa/issue917
...
Update docs to reflect use of params
2012-11-17 03:03:32 -08:00
Kenneth Reitz
47299421df
Merge pull request #941 from Lukasa/issue870
...
Update documentation on Sessions.
2012-11-17 03:03:03 -08:00
Cory Benfield
0792acc130
Update documentation on Sessions.
...
This resolves issue #870 . Better documentation here should be considered
for further work.
2012-11-17 10:57:26 +00:00
Cory Benfield
c8b2f7a37b
Update docs to reflect use of params
...
Resolves issue #917 .
2012-11-16 23:05:35 +00:00
Kenneth Reitz
dea8e96bd5
Merge pull request #925 from russelldavis/fix-encoding
...
Fix a bug in _encode_params
2012-11-15 02:13:30 -08:00
Kenneth Reitz
dda2fbd1ec
Merge pull request #937 from cleg/develop
...
Fix for default_user_agent when SIGCHILD intercepted
2012-11-15 02:11:55 -08:00
Pavel Dmitriev
a02f3dec02
Fix for user-agent setting
2012-11-13 17:40:13 +02:00
Kenneth Reitz
5333ec9331
Merge pull request #930 from maxcountryman/status-codes
...
adding UTF-8 status codes
2012-11-08 16:24:36 -08:00
Max Countryman
32aa3eb012
adding UTF-8 status codes
2012-11-08 14:30:13 -08:00
Kenneth Reitz
5a06ffd286
Merge pull request #921 from bmcustodio/setuptools-fixes
...
Added 'zip_safe' flag to 'setup.py' & Fixed typo in 'MANIFEST.in'
2012-11-07 22:08:32 -08: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
bmcustodio
f8603918db
Fixed typo in 'MANIFEST.in'.
2012-10-30 15:25:46 +00:00
bmcustodio
ec852c1e5a
Added 'zip_safe' flag to 'setup.py'.
2012-10-30 15:25:36 +00:00
Kenneth Reitz
63243b1e3b
v0.14.2
2012-10-27 10:08:40 -05:00
Kenneth Reitz
5c63bc33fe
v0.14.2
2012-10-27 10:08:16 -05: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
Kenneth Reitz
2c9bee2597
Merge pull request #912 from jhalcrow/develop
...
Make sure that url has fragment removed when using a proxy
2012-10-27 08:01:17 -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
e26ccb34eb
Fix the smoke test in the face of UTF-16 surrogate pairs.
...
If the random data starts with a UTF-16 BOM *and* the next two bytes are for a character in the `\ud800`-`\udfff` range decoding would fail. Small chance, but still possible.
Extend it to check the UTF-8 error as well. The goal is to test that the guesser was *mostly* correct, and to verify the cases where it wasn't that it was to be expected. Most of all that the function doesn't buckle under wildly unexpected data.
2012-10-26 12:15:27 +02:00
Martijn Pieters
be01a35ef1
Better not call it chr, rename to byteschr.
2012-10-25 18:27:21 +02:00
Martijn Pieters
a4be9a2578
Redefine the unichr and bytes-variant of chr at module level.
...
Needed to appease Travis; it's python 2.6 and 2.7 builds are weird and the `__builtins__` dict is not following CPython conventions.
2012-10-25 18:22:07 +02:00
Martijn Pieters
25f2806f23
Cheek: insert myself into AUTHORS.rst.
2012-10-25 18:12:55 +02:00
Martijn Pieters
9832bd8917
Correct a c&p mistake: set a correct docstring for the unit test class.
2012-10-25 17:56:19 +02: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
6e0ad1eca5
Merge pull request #906 from Atheuz/develop
...
quote_plus, unquote_plus added
2012-10-22 16:49:15 -07:00
Lasse Vang Gravesen
b36863b2c0
quote_plus, unquote_plus added
...
compat.py: relevant imports added
utils.py: then those imports are imported here.
Nothing else was changed, but I saw mentions of quoting later in
utils.py but I wasnt sure what to do about that.
2012-10-22 23:58:49 +02:00
Kenneth Reitz
cfa83f6214
Merge pull request #903 from building39/issue-901
...
Issue 901:
2012-10-21 08:52:03 -07:00
Kenneth Reitz
4778bdbaab
Merge pull request #904 from g2p/develop
...
Remove path hacks that break chardet in Python 3. Closes #858 .
2012-10-21 08:49:38 -07:00
Gabriel
c03553ed4a
Remove path hacks that break chardet in Python 3. Closes #858 .
...
This replaces the sys.path hack with a slightly less objectionable
sys.modules hack.
Both have the effect of making the vendored lib's absolue imports work
as expected when oauthlib isn't installed. The sys.modules hack doesn't
insert the rest of the vendored crap in a global path, however.
2012-10-21 17:07:12 +02:00
Kenneth Reitz
4477d0a4e5
Merge pull request #898 from rvoicilas/develop
...
Replace assert statements with unittest's self.assert*
2012-10-20 05:37:57 -07:00
mmartin
4dfa51ae03
Issue 901:
...
Make value of Contents-Encoding header case insensitive per RFC 2616.
2012-10-19 14:17:32 -05:00
Radu Voicilas
ce7c86cc58
Replace assert statements with unittest's self.assert*
...
-- the incetive for this being that with self.assertEqual you get an
error message if the test fails
2012-10-18 22:24:59 +03:00
Kenneth Reitz
a74c6c6314
Merge remote-tracking branch 'origin/develop' into develop
2012-10-17 22:46:12 -07:00
Kenneth Reitz
b73426aaca
exactly
2012-10-17 22:45:24 -07: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
Kenneth Reitz
c631627403
Merge pull request #887 from rvoicilas/develop
...
Small changes to make the code more PEP8 compliant
2012-10-17 07:20:55 -07:00
Kenneth Reitz
2363243964
Merge pull request #897 from ametaireau/fix-cheeseshop-mirror-url
...
Fix the cheeseshop mirror url from pip.kennethreitz to crate.io
2012-10-17 06:37:26 -07:00
Alexis Métaireau
78dbb5bfbe
Fix the cheeseshop mirror url from pip.kennethreitz to crate.io, since the former doesn't work anymore.
2012-10-17 15:28:09 +02:00
Kenneth Reitz
1a0af611cb
Merge pull request #892 from treyhunner/topic/whitespace-fixes
...
Fix multiple code style (whitespace) in docs/
2012-10-15 12:55:51 -07:00
Trey Hunner
481622ff16
Fix multiple code style (whitespace) in docs/
2012-10-15 11:17:09 -07:00
Kenneth Reitz
9840966d72
typo all the things
2012-10-13 00:46:46 +01:00
Kenneth Reitz
c3fc2dd259
Merge remote-tracking branch 'origin/develop' into develop
2012-10-13 00:45:20 +01:00
Kenneth Reitz
f33a0aa47b
oauth awesomeness
2012-10-13 00:45:05 +01:00
Stephen Zhuang
bb9e72885a
For the uniformity :)
2012-10-09 23:19:42 +08:00
Stephen Zhuang
2d9f953d4c
Add name to AUTHORS according to Contribute section
2012-10-09 11:20:48 +08:00
Radu Voicilas
820dfb0495
Making the code more PEP8 compliant
2012-10-09 00:42:49 +03:00
tokuda109
5ec2c96f02
declare the encoding
2012-10-09 00:42:49 +03:00
Kenneth Reitz
3e30196917
update
2012-10-09 00:42:49 +03:00
Kenneth Reitz
cc1b9da235
wording
2012-10-09 00:42:49 +03:00
Kenneth Reitz
1444d9033a
padding
2012-10-09 00:42:49 +03:00
Kenneth Reitz
e60e82c729
order fix
2012-10-09 00:42:49 +03:00
Kenneth Reitz
582a53f3f4
why not
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
Kenneth Reitz
46fd297c3a
new classifiers for 3.2+
2012-10-09 00:42:49 +03:00
Kenneth Reitz
ed8a3f3199
v0.14.1
2012-10-09 00:42:48 +03:00
yegle
22fdecba52
Update: @property decorator instead of __getattr__
2012-10-09 00:42:48 +03:00
Kunal Mehta
4f9e552148
Use __iter__ rather than the inefficient nested for loops
2012-10-09 00:42:48 +03:00
yegle
e656222188
Python 3.3 compatible update
...
httplib.cookiejar.DefaultCookiePolicy changed its implementation of
set_ok_verifiability.
2012-10-09 00:42:48 +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
Kenneth Reitz
0c0254453f
Merge pull request #878 from tokuda109/encoding
...
miss the encoding declaration
2012-10-02 08:25:16 -07:00
tokuda109
601a2b8c74
declare the encoding
2012-10-02 23:26:29 +09:00
Kenneth Reitz
490ed74187
update
2012-10-02 01:02:32 -04:00
Kenneth Reitz
af5ae235e6
wording
2012-10-02 01:01:28 -04:00
Kenneth Reitz
8d239a3739
padding
2012-10-02 00:44:57 -04:00
Kenneth Reitz
ed5c728c52
order fix
2012-10-02 00:44:21 -04:00
Kenneth Reitz
f1ffe19506
Merge remote-tracking branch 'origin/develop' into develop
2012-10-02 00:43:28 -04:00
Kenneth Reitz
ccf55045a6
why not
2012-10-02 00:43:21 -04:00
Kenneth Reitz
1e61cf5cba
Merge pull request #876 from sigmavirus24/register_hook_fix
...
Only register callable items in lists
2012-10-01 11:15:47 -07: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
Kenneth Reitz
7c520ece69
new classifiers for 3.2+
2012-10-01 13:30:41 -04:00
Kenneth Reitz
9dce786113
v0.14.1
2012-10-01 13:29:38 -04:00
Kenneth Reitz
6d706378a0
Merge pull request #871 from yegle/develop
...
Python 3.3 compatible update
2012-10-01 10:26:58 -07:00
yegle
170c46c06b
Update: @property decorator instead of __getattr__
2012-10-01 13:13:12 -04:00
Kenneth Reitz
af61205e72
Merge pull request #867 from mattswe/patch-1
...
Handle encoding of `None` when decoding unicode
2012-10-01 09:53:56 -07:00
Kenneth Reitz
1cb31f2b11
Merge pull request #873 from legoktm/develop
...
Use __iter__ rather than the inefficient nested for loops
2012-10-01 09:52:31 -07:00
Kunal Mehta
5cd116d078
Use __iter__ rather than the inefficient nested for loops
2012-09-30 19:24:56 -05:00
yegle
992d1182db
Python 3.3 compatible update
...
httplib.cookiejar.DefaultCookiePolicy changed its implementation of
set_ok_verifiability.
2012-09-29 18:28:53 -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
Kenneth Reitz
5ce25688e0
Revert "Fix SSL3 error on Ubuntu 12.04"
...
This reverts commit c19650b00f .
2012-09-24 11:05:53 -05:00
Kenneth Reitz
1b70385d4a
change default accept-encoding
...
http://blogs.operationaldynamics.com/andrew/software/research/testing-re
stful-apis-with-httpie
2012-09-23 12:41:54 -05:00
Kenneth Reitz
6cc24a11fd
amazon
2012-09-23 11:47:22 -05:00
Kenneth Reitz
6a4062a8c7
Merge pull request #863 from sigmavirus24/fix_hooks
...
Fix #785 & add regression test.
2012-09-22 18:49:19 -07:00
Kenneth Reitz
c91f83fbad
1,000,000
2012-09-21 15:50:38 -07:00
Kenneth Reitz
ffc72ac5f9
Merge remote-tracking branch 'origin/develop' into develop
2012-09-21 15:22:18 -07:00
Kenneth Reitz
efdd645dbc
epic
2012-09-21 15:22:12 -07:00
Ian Cordasco
4dd3d1a1a2
Fix #785 & add regression test.
2012-09-20 11:45:03 -04:00
Kenneth Reitz
a0df2cbb10
Merge pull request #853 from plaes/docs-license-missing-ref
...
Create label for the ISC License, which is referenced from the index page
2012-09-12 23:36:36 -07:00
Priit Laes
cb44e165e5
Create label for the ISC License, which is referenced from the index page
2012-09-13 09:21:32 +03:00
Kenneth Reitz
0342ddb548
Merge pull request #852 from plaes/docs-include-license
...
Use the include directive instead of rewriting the license in docs.
2012-09-12 23:10:11 -07:00
Priit Laes
fe4211d5b5
Use the include directive instead of rewriting the license in docs.
...
Helps also keeping the copyright years in sync \o/
2012-09-13 09:03:38 +03:00
Kenneth Reitz
d70964a608
Merge pull request #848 from barberj/develop
...
None is not iterable
2012-09-12 10:58:20 -07:00
Kenneth Reitz
106bae6457
Merge pull request #850 from SecurityForUs/fix_proxies_2.7-3
...
Resolve issue in #849
2012-09-12 10:58:03 -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
64fd0baa02
Merge pull request #841 from sigmavirus24/bytecode
...
Reset PYTHONDONTWRITEBYTECODE after installation
2012-09-10 20:15:41 -07:00
Ian Cordasco
aed5bf7cc7
As per the discussion on #841 .
2012-09-10 23:09:41 -04:00
Ian Cordasco
91a9c39746
Reset PYTHONDONTWRITEBYTECODE after installation
...
Fixes #839 .
2012-09-10 23:09:14 -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
Kenneth Reitz
2ae7c5a547
Merge pull request #833 from sigmavirus24/fix_key_val_args
...
Fixes #817 .
2012-09-10 20:05:07 -07:00
Kenneth Reitz
f58013c089
Merge pull request #845 from alanhamlett/patch-1
...
fixed typo in docs
2012-09-09 02:29:37 -07:00
Alan Hamlett
861e63ce8e
fixed typo in docs
2012-09-09 01:56:32 -07:00
Kenneth Reitz
ee7825df7b
Merge pull request #842 from slingamn/test_tweak
...
fix some tests to correctly cover the API
2012-09-07 00:10:21 -07:00
Kenneth Reitz
41ca8edf23
Merge pull request #840 from gareth-lloyd/develop
...
add prefetch=False to streaming example
2012-09-07 00:06:51 -07:00
Shivaram Lingamneni
c73646da00
fix some tests to correctly cover the API
...
After #831 , the tests added in #764 (which relied on iter_content()
crashing if the response was prefetched) no longer tested what they
were intended to test.
2012-09-06 16:31:01 -07:00
Gareth Lloyd
d9a85560a2
add prefetch=False to streaming example
2012-09-06 15:13:46 +01: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
Kenneth Reitz
c8f166f696
Merge remote-tracking branch 'origin/develop' into develop
2012-09-02 04:50:30 -04:00
Kenneth Reitz
a69cf7e71c
v0.14.0
2012-09-02 04:50:05 -04:00
Kenneth Reitz
6497d11049
Merge pull request #831 from slingamn/permissive_itercontent_2
...
permissive implementation of iter_content
2012-09-02 01:47:19 -07: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
Kenneth Reitz
1175866033
Merge pull request #826 from hazzadous/develop
...
Updated content workflow section of the advanced user docs
2012-08-31 16:49:47 -07:00
Kenneth Reitz
81897dd138
Merge remote-tracking branch 'origin/develop' into develop
2012-08-31 02:06:21 -04:00
Kenneth Reitz
5fedbbf7f0
oops
2012-08-31 02:06:15 -04:00
Harry Waye
991b853bd9
Updated content workflow section of the advanced use docs
2012-08-30 18:14:37 +01:00
Andre Graf
52d2e2ee4e
added myself
2012-08-29 21:20:27 +02: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
Kenneth Reitz
0ad445651e
Merge pull request #819 from ayanamist/develop
...
Correct OAuth1 with query or data.
2012-08-29 04:29:41 -07:00
ayanamist
babac7368b
Change variable name "_cond" -> "_oauth_signed".
2012-08-28 15:38:13 +08:00
ayanamist
aded42f232
Try to keep the header too if content-type is application/x-www-form-urlencoded
2012-08-28 15:24:09 +08:00
ayanamist
46ff4b3862
Fix the comment too.
...
If content-type is multipart/form-data, keep the header.
2012-08-28 15:20:53 +08:00
Kenneth Reitz
b5b2e51fc5
Merge pull request #818 from r1chardj0n3s/develop
...
improve top-level docstring
2012-08-27 22:38:46 -07:00
ayanamist
8a1d53eb3a
Correct OAuth1 with query or data.
2012-08-28 12:52:32 +08:00
Richard Jones
f4311269d7
improve top-level docstring
2012-08-28 09:36:00 +10:00
Kenneth Reitz
b9ecf45683
Merge remote-tracking branch 'origin/develop' into develop
2012-08-26 18:34:16 -04:00
Kenneth Reitz
b257b10281
typo
2012-08-26 18:34:09 -04:00
Kenneth Reitz
9fb63adfa5
Merge pull request #814 from asapo/develop
...
import cchardet if available
2012-08-26 09:47:09 -07:00
Kenneth Reitz
ace89395b6
Merge pull request #815 from ayanamist/develop
...
Use logger instead of direct logging call.
2012-08-26 09:46:18 -07:00
ayanamist
913ef867be
Use logger instead of direct logging call.
2012-08-27 00:43:39 +08:00
asapo
fc9b8a0214
import cchardet if available
2012-08-27 01:30:04 +09:00
Kenneth Reitz
6da48dbd93
no .
2012-08-25 11:46:41 -04:00
Kenneth Reitz
1be2a55a39
Remove exception eating from dispatch_hook.
2012-08-25 11:07:13 -04:00
Kenneth Reitz
ab57c076e3
Merge pull request #811 from lucian1900/develop
...
Remove exception eating from dispatch_hook.
2012-08-25 08:06:56 -07:00
Kenneth Reitz
94869e720e
v0.13.9
2012-08-25 10:49:16 -04:00
Kenneth Reitz
f65b790e9d
Cleanup #800
2012-08-25 10:44:53 -04:00
Kenneth Reitz
fa44921241
Merge pull request #800 from ayanamist/develop
...
Fix kennethreitz/requests#790
2012-08-25 07:41:15 -07:00
Kenneth Reitz
088454b145
Merge pull request #805 from Lukasa/develop
...
Remove None values from post data.
2012-08-25 07:35:06 -07:00
Kenneth Reitz
4571a9e50e
Merge remote-tracking branch 'origin/develop' into develop
2012-08-25 10:33:42 -04:00
Kenneth Reitz
95c82c7c0b
Merge branch 'develop' of git://github.com/weak/requests into develop
2012-08-25 10:33:37 -04:00
Kenneth Reitz
390a4ae4bc
Merge pull request #806 from rhyselsmore/develop
...
General Housekeeping
2012-08-24 21:48:30 -07:00
Rhys Elsmore
29aa21a2fd
Not sure if meant to be pluralized
2012-08-23 16:38:28 +10:00
Rhys Elsmore
217a9d50cd
Removed Duplicate Import
2012-08-23 16:18:47 +10:00
Cory Benfield
751e7a0a66
Do not post None values in data.
2012-08-22 22:33:25 +01:00
Cory Benfield
b781acc7ab
Add a failing test for Issue #378 .
2012-08-22 22:33:20 +01:00
Andrew Tolbert
f18733d2be
Fix for #804 - Session params ommited in 0.13.8. If default_kwarg is a list, attempt to convert to dictionary
2012-08-22 09:49:40 -05:00
Kenneth Reitz
4889adce4e
Merge pull request #802 from Lukasa/develop
...
Tiny formatting changes in Advanced docs
2012-08-20 09:04:44 -07:00
Cory Benfield
b5ce5029ea
Cleanup Advanced doc and remove `.:' from docs
2012-08-20 16:58:43 +01:00
Kenneth Reitz
9eaee76c33
v0.13.8
2012-08-21 01:15:50 +10: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
Kenneth Reitz
0841940aea
Merge remote-tracking branch 'origin/develop' into develop
2012-08-21 00:55:31 +10:00
Kenneth Reitz
a320336b5c
Merge pull request #801 from rhyselsmore/develop
...
Added in a link handler as per issue #711
2012-08-20 07:54:48 -07:00
Kenneth Reitz
7c23fa364f
Rhys
2012-08-21 00:54:39 +10:00
Kenneth Reitz
49a7947bcb
link docs!
2012-08-21 00:52:09 +10:00
Rhys Elsmore
f3159ed4f6
Added in a link handler as per issue #711
2012-08-21 00:47:19 +10:00
Kenneth Reitz
3514816d63
Merge remote-tracking branch 'origin/develop' into develop
2012-08-21 00:43:27 +10:00
Kenneth Reitz
e5fc88ad37
MultiDict
2012-08-21 00:43:16 +10:00
Kenneth Reitz
a032e7c392
link headers
2012-08-21 00:43:05 +10:00
ayanamist
301d1a838f
Fix kennethreitz/requests#790
2012-08-20 17:18:26 +08:00
Kenneth Reitz
2d5d6f99ab
Merge pull request #797 from sigmavirus24/fix_order
...
Fix order of data+params
2012-08-20 00:55:17 -07:00
Kenneth Reitz
2e71497e10
Merge pull request #799 from joequery/ubuntu_ssl_error
...
Fix SSL3 error on Ubuntu 12.04
2012-08-19 22:38:39 -07:00
Joseph McCullough
c19650b00f
Fix SSL3 error on Ubuntu 12.04
2012-08-19 22:10:18 -05:00
Ian Cordasco
6d418d9132
Fix a fairly critical error on my part.
2012-08-19 16:38:40 -04:00
Ian Cordasco
f48c78c9ee
Change ordering of data + params back.
...
Fixes #795
2012-08-19 16:38:32 -04:00
Kenneth Reitz
b130b98086
v0.13.7
2012-08-19 10:46:55 +10:00
Kenneth Reitz
385217e55c
Merge pull request #789 from zigmonty/http_digest_fixes
...
HTTPDigestAuth fixes
2012-08-18 17:42:40 -07:00
Kenneth Reitz
489ce1c8a9
Merge pull request #779 from Lukasa/develop
...
Make sure proxy exclusions work properly.
2012-08-18 17:40:53 -07:00
Kenneth Reitz
95493917f2
Merge pull request #791 from sigmavirus24/key_val_lists
...
Key val lists
2012-08-18 15:54:49 -07:00
Ian Cordasco
a5d462e176
Revert "Some pyflakes fixes."
...
This reverts commit c71f48b5f1 .
To please his BDFLness @kennethreitz ;)
2012-08-18 18:31:58 -04:00
Kenneth Reitz
00523064b0
Merge pull request #793 from Lukasa/typo
...
Typo fix in tests.
2012-08-18 14:32:48 -07:00
Ian Cordasco
329af44f35
Forgot to add myself to the AUTHORS.rst
...
[ci skip]
2012-08-18 16:39:52 -04:00
Cory Benfield
a04775f862
Typo fix in tests.
2012-08-18 21:24:02 +01:00
Ian Cordasco
ab56e4a9f1
Fix python3 tests.
...
I wasn't thorough enough with how I dealt with headers. Most of the header
logic in the Request object utilizes dictionary properties which will not work
with a key/value list.
I'll dig more into this, but I know the rest of the features are more
important so I'll take my time on this and send a separate pull request.
2012-08-18 14:41:13 -04:00
Ian Cordasco
f01694e274
All tests pass, time for a PR.
2012-08-18 13:47:14 -04:00
Ian Cordasco
e02da89337
Merge branch 'develop' into key_val_lists
...
Conflicts:
requests/models.py
tests/test_requests.py
Remove some of Lukasa's duplication of my efforts in _encode_data.
2012-08-18 12:15:03 -04:00
Peter Montagner
6d02036092
Extend digests test case to connect twice using the same auth and confirm the second one went direct.
2012-08-18 15:33:05 +10:00
Peter Montagner
5017aeb06c
Save credentials in the HTTPDigestAuth object and replay them if the user reuses the object.
2012-08-18 14:31:24 +10:00
Peter Montagner
53d454c813
Release connection in digest auth 401 handler to allow the connection to be reused.
2012-08-18 12:53:57 +10:00
Kenneth Reitz
cb0fdd80d0
Merge pull request #784 from Locker537/docs_fix
...
Change variable '_r' to 'r' for consistency.
2012-08-17 13:59:29 -07:00
Kenneth Reitz
27f34a5487
Merge pull request #786 from Locker537/lint_fix
...
Lint fixes following PEP8.
2012-08-17 13:57:01 -07:00
Kenneth Reitz
bbf1946dfe
Merge pull request #787 from kayzh/develop
...
"There many ..." to "There are many ..." in quickstart
2012-08-17 13:47:47 -07:00
Kay Zhu
76f90054f9
"There many ..." to "There are many ..." in quickstart
2012-08-17 06:12:15 -04:00
Locker537
42d0a2169e
Whitespace fixes following PEP8.
2012-08-16 17:38:35 -04:00
Locker537
b31a4399c7
Remove trailing whitespace from docs directory.
2012-08-16 17:08:57 -04:00
Locker537
b9d3ce2e10
Change variable '_r' to 'bad_r' to avoid confusion about Python's private variable convention.
2012-08-16 16:50:01 -04:00
Locker537
ff55d737d5
Change variable '_r' to 'r' for consistency.
2012-08-16 16:27:31 -04:00
Lucian Branescu Mihaila
57b4d39749
Remove exception eating from dispatch_hook.
2012-08-16 17:49:00 +02:00
Cory Benfield
00b4ca3b74
Don't get hung up on ports in proxies.
2012-08-15 18:16:27 +01:00
Kenneth Reitz
4130cf9b40
Merge pull request #774 from Lukasa/develop
...
Throw clear exceptions
2012-08-13 14:14:19 -07:00
Cory Benfield
79d53d3b8a
Throw InvalidURL not UnicodeError on bad label.
2012-08-13 21:18:56 +01:00
Cory Benfield
e08b853a0c
Test for throwing useful exception on bad label.
2012-08-13 21:18:56 +01:00
Kenneth Reitz
27b55a74d7
Merge pull request #746 from jkbr/develop
...
Fixed encoding of fields with the same name, multipart/form-data fixes.
2012-08-10 23:30:21 -07:00
Jakub Roztocil
88c762e256
Fixed tests for Python 3 (text vs. bytes).
2012-08-11 08:19:35 +02:00
Jakub Roztocil
dee3693ea0
Use BytesIO for bytes.
...
This fixes a TypeError on Python 3 that ocurred when passing
bytes as the values for files.
2012-08-10 19:49:03 +02:00
Jakub Roztocil
cfa627ae62
Fixed encoding of fields with the same name.
...
* Properly handle repeated data fields for multipart/form-data requests (#737 )
* Allow a list of 2-tuples as the `files` agument.
* Consistently serialize lists a of parameters (#729 ).
2012-08-10 19:49:03 +02:00
Kenneth Reitz
64646182b2
Merge pull request #772 from Lukasa/develop
...
First pass at documenting encodings and RFC compliance.
2012-08-10 09:05:08 -07:00
Kenneth Reitz
56b01bf0e6
Merge pull request #773 from randomir/develop
...
Tests: python2.6 compat (`assertIn` new in python2.7)
2012-08-10 09:03:09 -07:00
Radomir Stevanovic
4da4792844
tests: python2.6 compat (assertIn added in 2.7)
2012-08-10 17:51:01 +02:00
Cory Benfield
7a9419ce35
Document encodings and RFC compliance.
2012-08-10 14:47:13 +01:00
Kenneth Reitz
40ba6b4ec1
new button domain
2012-08-08 23:31:30 -05:00
Kenneth Reitz
a65e8b4a22
Merge pull request #767 from stefanp/develop
...
Wrap socket.error in ConnectionError (+ unit tests)
2012-08-08 13:23:10 -07:00
Kenneth Reitz
d4f7d67655
Merge pull request #766 from Lukasa/develop
...
Accept objects with string representations as URLs.
2012-08-08 13:18:39 -07:00
Stefan Praszalowicz
875c9e18ab
Wrap socket.error in ConnectionError (+ unit tests)
2012-08-08 11:12:32 -07:00
Cory Benfield
6166ba7e13
Accept objects with string representations as URLs.
2012-08-08 13:33:25 +01:00
Cory Benfield
e624ae8aea
Add test for Issue #423 .
2012-08-08 13:33:25 +01:00
Ian Cordasco
ceec572cb9
Merge branch 'develop' into key_val_lists
...
Conflicts:
requests/models.py
2012-08-07 12:11:15 -04:00
Kenneth Reitz
bc7b2f9a67
Merge pull request #764 from slingamn/regressions
...
test and fix regressions from #760
2012-08-06 16:13:59 -07:00
Shivaram Lingamneni
291859c199
fix the tests for python 3
2012-08-06 16:11:45 -07:00
Shivaram Lingamneni
000c105303
propagate self.prefetch on redirect
...
fixes RequestsTestSuite.test_prefetch_redirect_bug
2012-08-06 15:55:52 -07:00
Shivaram Lingamneni
030ead9c36
properly handle send(prefetch=False)
...
fixes RequestsTestSuite.test_prefetch_return_response_interaction
2012-08-06 15:55:52 -07:00
Shivaram Lingamneni
857d8eda3a
red tests derived from @dhagrow's examples in #760
2012-08-06 15:53:48 -07:00
Kenneth Reitz
a94fcb87d2
Merge pull request #762 from Lukasa/develop
...
Correctly handle encoding numbers when POSTing.
2012-08-06 14:05:21 -07:00
Cory Benfield
55bf436f8f
Correctly handle encoding numbers when POSTing.
2012-08-06 17:40:27 +01:00
Kenneth Reitz
fc6ddfd78a
v0.13.6
2012-08-06 02:45:52 -04:00
Kenneth Reitz
b13c24d7b9
Merge pull request #760 from slingamn/fix_leak.release
...
address connection leak issue from #520
2012-08-05 21:38:12 -07:00
Shivaram Lingamneni
3c0b94047c
address connection leak issue from #520
...
* prefetch now defaults to True, ensuring that by default, sockets
are returned to the urllib3 connection pool on request end
* sessions now have a close() method, notifying urllib3 to close pooled
connections
* the module-level API, e.g., `requests.get('http://www.google.com ')`,
explicitly closes its session when finished
When prefetch is False, the open socket becomes part of the state of the
Response object, and it's the client's responsibility to read the whole
body, at which point the socket will be returned to the pool.
2012-08-05 21:09:13 -07:00
Ian Cordasco
1722f28971
Add to_key_val_lists to avoid repetition.
...
It uses the same logic whenever we're trying to use a list of key values and
avoid what I had started doing -- using the same pattern everywhere.
proxies, and headers should both be covered by this commit.
2012-08-05 23:29:10 -04:00
Ian Cordasco
d82d124152
Merge branch 'develop' into key_val_lists
2012-08-05 16:59:24 -04:00
Kenneth Reitz
1898077f79
Merge pull request #758 from volker48/develop
...
Develop
2012-08-04 08:39:25 -07:00
Marcus McCurdy
f60579ddda
Moved fix for #747 to compat module
2012-08-04 09:35:32 -04:00
Marcus McCurdy
2d321b22b7
Merge branch 'develop' of https://github.com/volker48/requests into develop
2012-08-03 23:18:31 -04:00
Marcus McCurdy
493ea93469
Fixed issue #747
...
Bound the name builtin_str to __builtin__.str and added another check
for this class since the str class was rebound to unicode in compat.
This issue was only for Python 2 as well.
2012-08-03 23:13:17 -04:00
Marcus McCurdy
2110f7d18c
Fixed test for issue #747 to check for '' instead of 'text/plain'
2012-08-03 23:05:37 -04:00
Ian Cordasco
2d5e38f30a
params now accepts a k/v list.
...
Also added test for params accepting k/v lists.
2012-08-03 22:24:52 -04:00
Marcus McCurdy
12328d6e58
Added a test to expose issue #747
2012-08-03 20:09:56 -04:00
Kenneth Reitz
b5ca4b4430
Merge pull request #754 from sigmavirus24/develop
...
Fix raise_for_status()
2012-08-03 09:21:28 -07:00
Ian Cordasco
644c6f9134
Merge branch 'develop' into key_val_lists
2012-08-03 12:02:01 -04:00
Ian Cordasco
b4bc76f8eb
Fix raise_for_status()
2012-08-03 11:42:36 -04:00
Ian Cordasco
5ff165a1e2
Better handling of invalid files.
...
I stole the idea from _encode_params in all candor.
2012-08-02 17:31:30 -04:00
Ian Cordasco
1efd06a87d
This simplification should work.
...
Probably should write a test case where it should fail though.
2012-08-02 17:31:30 -04:00
Ian Cordasco
46b6207f05
Fix python3 errors.
2012-08-02 17:31:30 -04:00
Ian Cordasco
c71f48b5f1
Some pyflakes fixes.
...
They were just bothering me far too much with vim+syntastic.
2012-08-02 17:31:30 -04:00
Ian Cordasco
2b33bc289f
Tests written for _encode_files new capability.
...
Work on issue #179
2012-08-02 17:31:30 -04:00
Ian Cordasco
42ddc4c9e8
Need to write tests but this looks good so far.
2012-08-02 17:31:30 -04:00
Kenneth Reitz
664880db62
Merge pull request #751 from Lukasa/develop
...
Catch socket.gaierror in safe mode.
2012-08-02 13:53:05 -07:00
Kenneth Reitz
22179c493e
Merge pull request #753 from berkerpeksag/if-statements
...
Refactoring in |raise_for_status| method.
2012-08-02 13:52:36 -07:00
Berker Peksag
204649521b
Refactoring in |raise_for_status| method.
...
- Simplified the if statements.
- Remove duplicate code.
2012-08-02 23:45:06 +03:00
Kenneth Reitz
54842cdca9
Merge pull request #752 from anentropic/patch-1
...
file posting example looked wrong
2012-08-02 04:59:38 -07:00
anentropic
fdec88de99
example looked wrong
...
From what I can tell from the source code (down thru urllib3) the key in the `files` dict is always the 'fieldname', while specifying a custom filename is optional.
So in this example it is confusing to have a fieldname of 'report.xls' (the filename) where all the other examples use a fieldname of 'file'.
2012-08-02 13:56:12 +02:00
Cory Benfield
4f40b3befc
Catch socket.gaierror in safe mode.
2012-08-02 12:16:41 +01:00
Kenneth Reitz
b47418533a
Merge pull request #744 from tax/develop
...
Set content type before authentication
2012-07-30 18:13:17 -07:00
Kenneth Reitz
758cd24033
donate
2012-07-28 17:07:53 -04:00
Kenneth Reitz
027effd585
Merge remote-tracking branch 'origin/develop' into develop
2012-07-28 16:56:49 -04:00
Kenneth Reitz
ca7ee68656
setup.py
2012-07-28 16:56:14 -04:00
Kenneth Reitz
72f7cbfdc1
gittip
2012-07-28 16:56:00 -04:00
Paul
5e175ef24c
Set content type before authentication
...
AWS S3 authentication adds content type header (when it exist) to
canonical string that is signed. Since it is set after authentication
is done authentication on S3 fails
2012-07-27 19:18:13 +08:00
Cory Benfield
02dcc40acd
Failing test for Issue #737 .
2012-07-27 09:49:39 +01:00
Kenneth Reitz
9abc9ad1b3
v0.13.5
2012-07-27 03:23:33 -04:00
Kenneth Reitz
767751599e
v0.13.4
2012-07-27 02:21:56 -04:00
Kenneth Reitz
82d343fa00
disable tricky tests
2012-07-27 02:18:31 -04:00
Kenneth Reitz
e0fed46561
Solves #722
2012-07-27 01:48:25 -04:00
Kenneth Reitz
d74d61e97e
changes
2012-07-27 01:40:09 -04:00
Kenneth Reitz
81207783a2
Merge remote-tracking branch 'origin/develop' into develop
2012-07-27 01:39:21 -04:00
Kenneth Reitz
c65065177f
ordered dict
2012-07-27 01:39:17 -04:00
Kenneth Reitz
bc63617da2
Merge pull request #647 from mkomitee/kerberos
...
Implement GSSAPI/Kerberos authentication for requests
2012-07-26 22:36:41 -07:00
Kenneth Reitz
31e768f134
Merge pull request #729 from vickimo/issue_661
...
Added needed cast for when POSTing data and files (Issue #661 )
2012-07-26 22:33:51 -07:00
Kenneth Reitz
e02fb2eb6c
urllib update and junks
2012-07-27 01:32:01 -04:00
Kenneth Reitz
0d9ab27b02
Merge pull request #736 from Lukasa/develop
...
Make OAuth path hack platform independent.
2012-07-26 22:29:58 -07:00
Kenneth Reitz
0af7ca7b27
Merge pull request #739 from saevarom/develop
...
Appengine workaround
2012-07-26 22:29:17 -07:00
Sævar Öfjörð Magnússon
350be4a549
Appengine workaround
2012-07-25 16:06:26 +00:00
Cory Benfield
55237ad67d
Comment typo fix and move newline.
2012-07-25 13:24:38 +01:00
Kenneth Reitz
52b55ccfbc
Merge pull request #734 from doismellburning/verbose_http_errors
...
Include response.reason in raised HTTPErrors
2012-07-24 06:46:34 -07:00
Cory Benfield
79aa9edde1
Make OAuth path hack platform independent.
2012-07-21 18:11:00 +01:00
Kristian Glass
c485928a9f
Include reason rather than content in raised HTTPErrors
...
See https://github.com/kennethreitz/requests/pull/733 for details, TL;DR
content is too free-form for this to generally be a good idea.
2012-07-20 19:26:08 +01:00
Kristian Glass
6eb1ac4452
Include response.content in raised HTTPErrors
2012-07-20 18:50:04 +01:00
Kenneth Reitz
876e1744b1
Merge pull request #731 from jorjun/patch-1
...
breaks under python 2.7, without the from __future__ import
2012-07-18 07:44:37 -07:00
jorjun
2c241d2801
breaks under python 2.7, without the from __future__ import
2012-07-18 12:58:55 +02:00
Kenneth Reitz
73815e2ed0
Merge pull request #727 from vickimo/issue_547
...
Fix infinite loop on wrong Digest Authentication (Issue #541 and #547 )
2012-07-14 15:48:07 -07:00
Victoria Mo
f9c0ddf46d
Added needed cast for when POSTing data and files (Issue #661 )
...
Co-Authored By: Timnit Gebru <tgebru@gmail.com >
Co-Authored By: Sarah Gonzalez <smar.gonz@gmail.com >
Co-Authored By: Leila Muhtasib <muhtasib@gmail.com >
2012-07-14 18:28:34 -04:00
Victoria Mo
5296b8be90
Fix infinite loop on wrong Digest Authentication (Issue #547 )
...
Modified code to use the current fix versus the old fix, which was broken.
Co-Authored By: Timnit Gebru <tgebru@gmail.com >
Co-Authored By: Sarah Gonzalez <smar.gonz@gmail.com >
Co-Authored By: Leila Muhtasib <muhtasib@gmail.com >
2012-07-14 16:09:13 -04:00
Kenneth Reitz
a97a513390
Merge pull request #725 from muhtasib/Timeout_Fix
...
Differentiate between two types of timeout errors from urllib3
2012-07-13 13:49:12 -07:00
Leila Muhtasib
318f2460ee
Differentiate between two types of timeout errors from urllib3
...
Bubble up error message from urllib3 to indicate to user
whether error was a socket timeout vs a no connections
available in connection pool error.
Co-Authored By: Sarah Gonzalez
2012-07-13 15:20:05 -04:00
Kenneth Reitz
c3ab38ed6f
Merge pull request #721 from karlcow/develop
...
adding clarification to the history API.
2012-07-12 14:13:36 -07:00
karl
9fe4a99365
adding clarification to the history API. It was not clear how the history list was sorted.
2012-07-12 16:34:28 -04:00
Kenneth Reitz
884fc333a1
makin' history
2012-07-12 13:18:35 -07:00
Kenneth Reitz
902d174d21
v0.13.3
2012-07-12 13:12:54 -07:00
Kenneth Reitz
b222ff9477
Merge branch 'develop' of git://github.com/siebenschlaefer/requests into develop
...
Conflicts:
AUTHORS.rst
2012-07-12 12:06:43 -07:00
Kenneth Reitz
baa2355e4e
Merge pull request #717 from ms4py/patch-2
...
Updated documentation
2012-07-12 00:28:59 -07:00
Marc Schlaich
ea99d5e0d9
This shouldn't be here anymore.
2012-07-12 10:22:12 +03:00
Kenneth Reitz
23aa6c44a9
Merge pull request #715 from Lukasa/develop
...
Do not hide SSLErrors behind Timeouts.
2012-07-12 00:09:21 -07:00
Cory Benfield
523906c54f
Do not hide SSLErrors behind Timeouts.
2012-07-11 17:31:59 +01:00
Kenneth Reitz
c19ff0388e
Merge pull request #714 from muhtasib/develop
...
Documentation Update
2012-07-10 15:48:07 -07:00
muhtasib
6413c063ed
Fix minor formatting issue.
2012-07-10 19:34:29 -03:00
Leila Muhtasib
051d3bb601
Updated documentation for SSL client cert usuage.
...
Co-Authored By: Timnit Gebru <tgebru@gmail.com >
Co-Authored By: Sarah Gonzalez <smar.gonz@gmail.com >
Co-Authored By: Victoria Mo <vm2355@columbia.edu >
2012-07-10 18:25:32 -04:00
Matthias Rahlf
08cebb3c2f
fixed param handling in Request.full_url
2012-07-10 01:06:02 +02:00
Kenneth Reitz
b7fd0e81fd
Merge pull request #709 from dstufft/develop
...
Have User Agent include more details
2012-07-08 00:42:17 -07:00
Donald Stufft
21f60fe8df
Move the user agent generation into it's own utility function
2012-07-08 00:47:24 -04:00
Donald Stufft
523433f26c
Readd default that was accidently removed
2012-07-08 00:37:23 -04:00
Kenneth Reitz
c089993a0f
#710
2012-07-08 00:27:26 -04:00
Kenneth Reitz
f8c98715c3
simplify #710
2012-07-08 00:24:24 -04:00
Kenneth Reitz
3347146a44
merge conflict
2012-07-08 00:23:36 -04:00
Kenneth Reitz
6b7f23f9f0
Merge pull request #710 from zachwill/develop
...
Add try/catch for simplejson vs json
2012-07-07 21:21:54 -07:00
Zach Williams
25299400fa
Add try/catch for simplejson vs json
2012-07-07 21:14:29 -07:00
Donald Stufft
11433d942d
Include the system name and version in the default user agent
2012-07-07 16:13:39 -04:00
Donald Stufft
982268a201
Include the implementation and implementation version number in the default User-Agent
2012-07-07 16:08:22 -04:00
Kenneth Reitz
4832db0b11
Merge remote-tracking branch 'origin/master'
2012-07-06 02:54:12 -04:00
Kenneth Reitz
64ec73cbda
kippt
2012-07-06 02:54:08 -04:00
Kenneth Reitz
808b0ad8cd
Merge pull request #703 from westonplatter/develop
...
made the develop README.rest TravisCI PNG link to TravisCI project status page
2012-07-02 04:31:09 -07:00
Kenneth Reitz
0db58430ca
Merge pull request #705 from westonplatter/master
...
travis ci png linked
2012-06-30 18:07:27 -07:00
Weston Platter
81e86a35fe
made the master README.rst TravisCI PNG clickable to TravisCI status page
2012-06-30 18:35:48 -04:00
Weston Platter
0512132b91
made the TravisCI PNG link to TravisCI project status page
2012-06-30 18:33:40 -04:00
Weston Platter
32bcd4b3bf
made the TravisCI PNG clickable to TravisCI status page
2012-06-30 18:22:22 -04:00
Kenneth Reitz
d983cfabe2
syntax error
2012-06-28 17:35:07 -07:00
Kenneth Reitz
254adf9dc8
version-dependent package includes
2012-06-28 17:33:57 -07:00
Kenneth Reitz
ef5e5a1a21
Merge remote-tracking branch 'origin/develop' into develop
2012-06-28 17:29:30 -07:00
Kenneth Reitz
fb2ce4f0dc
v0.13.2
2012-06-28 17:29:22 -07:00
Kenneth Reitz
065caa30f4
Merge pull request #629 from saschpe/develop
...
Add openSUSE certificate support
2012-06-28 17:26:30 -07:00
Kenneth Reitz
a1fd038d2c
vendored oauthlib
2012-06-28 17:20:26 -07:00
Kenneth Reitz
78d6d31697
oauthlib license
2012-06-28 16:24:06 -07:00
Kenneth Reitz
9576518d69
oauthlib
2012-06-28 16:23:25 -07:00
Kenneth Reitz
6541ceb5f5
Merge remote-tracking branch 'origin/develop' into develop
2012-06-28 16:00:40 -07:00
Kenneth Reitz
35f6671ec5
new vendored libs
2012-06-28 16:00:34 -07:00
Kenneth Reitz
a17fdf6224
chardet2
2012-06-28 16:00:00 -07:00
Kenneth Reitz
abf33ba11c
chardet2
2012-06-28 15:58:12 -07:00
Kenneth Reitz
c3ad7af06c
include certifi
2012-06-28 15:58:00 -07:00
Kenneth Reitz
1253c78011
embed chardet
2012-06-28 12:53:39 -07:00
Kenneth Reitz
8309ac72da
Merge pull request #693 from sigmavirus24/develop
...
Fix Response Status Codes in the docs.
2012-06-25 17:57:02 -07:00
Kenneth Reitz
5dc68d0070
Merge pull request #696 from koordinates/develop
...
client certificates are ignored when verify=False
2012-06-25 17:56:44 -07:00
Craig de Stigter
74a4d06d58
fix a bug where client certificates never get set unless verify=True (which verifies server certs, so should be unrelated)
2012-06-26 12:42:14 +12:00
Kenneth Reitz
8f0ac668da
update urllib3
2012-06-25 12:35:39 -04:00
Ian Cordasco
3aa7f24e74
Fix Response Status Codes in the docs.
2012-06-21 15:06:01 -04:00
Kenneth Reitz
64da351ed9
Merge pull request #684 from gulopine/develop
...
Sign querystring parameters in OAuth 1.0
2012-06-20 16:52:38 -07:00
Kenneth Reitz
da35675c17
Merge pull request #690 from Lukasa/develop
...
Temporary fix for unicode literal breaking test.
2012-06-19 11:04:04 -07:00
Cory Benfield
f8076fee5e
Temporary fix for unicode literal breaking test.
2012-06-19 18:36:35 +01:00
Kenneth Reitz
bcf04d5e93
Merge pull request #686 from Lukasa/develop
...
Fix failing setup.py
2012-06-19 06:28:57 -07:00
Cory Benfield
80ceaa47da
Remove mimetools_choose_boundary from setup.py.
...
This package is not present in the source, was removed in commit
d3acb783b9 during an update of urllib3.
2012-06-19 12:31:40 +01:00
Marty Alchin
4e568c1899
Sign querystring parameters in OAuth 1.0
...
Existing usage doesn't pass GET querystring parameters along to oauthlib,
so it wasn't signing those properly, which causes problems with APIs that
rely heavily on GET parameters. By passing in r.full_url instead of r.url,
oauthlib can parse out the correct parameters and sign them properly.
2012-06-18 21:02:51 -07:00
Kenneth Reitz
38db8c2109
Merge pull request #683 from jkleint/patch-1
...
Update quickstart docs raise_for_status() exception output.
2012-06-18 13:33:00 -07:00
jkleint
234a55da6a
Update raise_for_status() exception output to reflect that requests.exceptions.HTTPError is raised, not urllib2.HTTPError.
2012-06-18 17:26:42 -03:00
Kenneth Reitz
f178219d45
Merge pull request #680 from mahmoudhossam/develop
...
Add rauth.
2012-06-16 00:51:26 -07:00
Mahmoud Hossam
5cc2129c73
Add rauth.
2012-06-16 10:36:18 +03:00
Kenneth Reitz
8de9b2e149
makin' history
2012-06-15 14:37:51 -04:00
Kenneth Reitz
c7514faf4a
add response.reason
...
#588
2012-06-15 14:37:33 -04:00
Kenneth Reitz
f5d1d0d27a
Merge remote-tracking branch 'origin/develop' into develop
2012-06-15 14:31:24 -04:00
Kenneth Reitz
d3acb783b9
urllib3 update
...
fixes #664
2012-06-15 14:31:19 -04:00
Sascha Peilicke
66ef8886c6
Add openSUSE certificate support
2012-06-15 14:16:16 +02:00
Kenneth Reitz
08ac9897bb
Merge pull request #675 from gulopine/develop
...
Make sure OAuth doesn't fall off
2012-06-14 10:18:23 -07:00
Kenneth Reitz
6b1e81c410
cleanup #676
2012-06-14 12:51:28 -04:00
Kenneth Reitz
511b1391b4
Merge pull request #676 from apotheos/develop
...
Additional Documentation for Requests and Responses
2012-06-14 09:50:40 -07:00
Michael Holler
87637c9bae
Merge branch 'develop' of github.com:apotheos/requests into develop
2012-06-14 09:15:18 -05:00
Michael Holler
5db661a9e4
Removed last attempt at documenting how to access Request from Response objects, replaced with section entitled 'Request and Response Objects'
2012-06-14 09:14:37 -05:00
Michael Holler
8b9f1b36bd
Removed last attempt at documenting how to access Request from Response objects, replaced with section entitled 'Request and Response Objects'
2012-06-14 09:09:58 -05:00
Michael Holler
fde7ba78f2
Added 'request object attributes' section header
2012-06-13 23:18:25 -05:00
Michael Holler
b0db8cf2d8
Added alphabetized list of request attributes and descriptions.
2012-06-13 23:16:06 -05:00
Michael Holler
a5f05353b3
Added documentation on how to access and use the Request object.
2012-06-13 23:00:12 -05:00
Marty Alchin
9a30e02962
Make sure OAuth doesn't fall off, which happens in particular when encountering redirects
2012-06-13 20:54:54 -07:00
Kenneth Reitz
1d1931333a
Merge pull request #670 from piotr-dobrogost/#669
...
Fixes issue #669
2012-06-10 06:37:07 -07:00
Piotr Dobrogost
8d75cdf7fe
Fixes issue #669
...
NamedTemporaryFile was being automatically deleted on Windows thus
couldn't be opened later for reading
2012-06-10 15:27:54 +02:00
Kenneth Reitz
f413d0ebcc
Merge pull request #668 from ig0774/patch-1
...
Send the original response url to `urlparse` rather than the `Response` object
2012-06-09 04:30:19 -07:00
ig0774
98b8316c0c
Send the original response url to urlparse rather than the Response object. urlparse cannot handle Response objects.
2012-06-08 09:35:54 -03:00
Kenneth Reitz
f733ff0196
don't change scrollbars
2012-06-07 22:44:38 -04:00
Kenneth Reitz
10d2398173
fix test for python3
2012-06-07 22:21:06 -04:00
Kenneth Reitz
32941fdd20
Merge remote-tracking branch 'origin/develop' into develop
2012-06-07 22:09:16 -04:00
Kenneth Reitz
7c2306baec
v0.13.1
2012-06-07 22:09:01 -04:00
Kenneth Reitz
404585ce8c
+= AUTHORS #659
2012-06-07 22:07:26 -04:00
Kenneth Reitz
78eecd7d7e
Merge pull request #659 from Bluehorn/develop
...
Allow passing a file or file-like object as data.
2012-06-07 19:06:49 -07:00
Kenneth Reitz
fadcf799de
fix unicode literal for python 3
2012-06-07 21:58:52 -04:00
Kenneth Reitz
8bfbfdfc79
Merge remote-tracking branch 'origin/develop' into develop
2012-06-07 21:55:11 -04:00
Kenneth Reitz
843672f4fe
make empty body text responses work
...
#660
2012-06-07 21:55:07 -04:00
Kenneth Reitz
e8f3fc33bb
test that empty body text responses work
2012-06-07 21:54:45 -04:00
Kenneth Reitz
89266f9062
Merge pull request #665 from dalanmiller/patch-2
...
If requests.async has been removed, the docs should point people to the right place.
2012-06-07 16:55:06 -07:00
Daniel Miller
c589d8a251
If this comment is true ( https://github.com/kennethreitz/requests/issues/239#issuecomment-6180706 ), then it would be good to point people in the right direction. Otherwise disregard this message.
2012-06-07 16:47:54 -07:00
Torsten Landschoff
f0e327f979
Allow passing a file or file-like object as data.
...
The underlying httplib already allows passing an open file object as body
to its HTTPConnection.request method. I think requests should allow that
as well.
2012-06-07 10:13:40 +02:00
Kenneth Reitz
c0ae3dd31e
more examples
...
#657
2012-06-07 03:09:19 +02:00
Kenneth Reitz
dda9689ca4
Revert "In fact, the feature is so awesome that it should go into index.rst"
...
This reverts commit f968fe0136 .
2012-06-07 03:02:32 +02:00
Danilo Bargen
f968fe0136
In fact, the feature is so awesome that it should go into index.rst
2012-06-06 17:07:42 +02:00
Danilo Bargen
1164450dac
Added r.json documentation (document ALL the awesome features!)
2012-06-06 16:59:20 +02:00
Kenneth Reitz
aa42318395
v0.13.1
2012-06-05 10:25:08 +02:00
Kenneth Reitz
488a51d619
Revert "Auto-detect CA Cert path instead of requiring users to hack setup.py"
...
This reverts commit 62a23bfbde .
2012-06-05 00:51:46 +02:00
Kenneth Reitz
12e5f3855c
Merge pull request #651 from urbanairship/detect-cacerts
...
Auto-detect CA Cert path instead of requiring users to hack setup.py
2012-06-04 15:24:14 -07:00
Michael Schurter
62a23bfbde
Auto-detect CA Cert path instead of requiring users to hack setup.py
...
Also fixed nearby comments to wrap at 79 characters as per PEP8
2012-06-04 13:19:10 -07:00
Kenneth Reitz
b026def961
Merge pull request #646 from mkomitee/hooks
...
Allowing hooks to return responses that indicate errors
2012-06-04 07:44:56 -07:00
Michael Komitee
c803e3af55
Implement GSSAPI/Kerberos authentication for requests
...
Currently has two issues which may be related:
- doesn't work with redirects, we try to authenticate the server a second
time with a fully completed kerberos context.
- 403 responses result in the wrong response object being returned, but
this is also true for http digest authentication due to a bug in hook
handling in general.
2012-06-01 17:15:53 -04:00
Michael Komitee
662c3edacc
Allowing hooks to return responses that indicate errors
...
Since response objects for failures (4xx/5xx responses) evaluate to False
in a boolean context, any hook which returns such a failure response will
evaluate to False.
The way hooks were setup, any failure response resulting from a hook would
be ignored, and the initial response before it got processed by the hook
would be substituted in its place. This commit changes that logic to test
for None so that hooks that return failures can do so.
2012-06-01 16:05:22 -04:00
Kenneth Reitz
355b97165c
Merge pull request #643 from gwrtheyrn/docs_proxy_auth
...
Added information about HTTP proxy authentication to docs
2012-05-30 12:48:33 -07:00
Danilo Bargen
d81dfe266e
Added information about HTTP proxy authentication to docs
2012-05-30 17:34:24 +02:00
Kenneth Reitz
77a57c0e7e
v0.13.0
2012-05-29 20:53:51 -04:00
Kenneth Reitz
a291d0d0f8
whitespace
2012-05-29 20:53:13 -04:00
Kenneth Reitz
617091e747
v0.13.0
2012-05-29 20:52:58 -04:00
Kenneth Reitz
cb15310d6a
by @mwielgoszewski
2012-05-29 19:54:40 -04:00
Kenneth Reitz
1c0abbd74b
cleanup #633
2012-05-29 19:53:22 -04:00
Kenneth Reitz
7813bd8ac0
Merge pull request #633 from tzuryby/develop
...
poor man's patch for issue #630
2012-05-29 16:51:48 -07:00
Kenneth Reitz
ad8205f930
Merge pull request #619 from Lukasa/develop
...
Rewrite quickstart docs.
2012-05-29 16:49:51 -07:00
Kenneth Reitz
f9dd485582
Merge pull request #640 from JuhaS/patch-1
...
Small correction on a comment.
2012-05-29 16:45:54 -07:00
Kenneth Reitz
d0f309b947
Merge pull request #638 from mher/develop
...
no_proxy support
2012-05-29 16:44:56 -07:00
Kenneth Reitz
400b4567f0
Merge pull request #632 from amalakar/develop
...
Issue #505 : Changed the store_cookie configuration to be part of the conig dict, instead of being a new argument
2012-05-29 16:41:39 -07:00
JuhaS
ba4cc326c2
Small correction on a comment.
2012-05-28 16:28:31 +03:00
Mher Movsisyan
cb8f9756e3
Fixes python3 compatibility issue
2012-05-28 14:11:59 +05:00
Mher Movsisyan
b8561cda5e
no_proxy support
2012-05-27 22:21:26 +05:00
Tzury Bar Yochay
7125fe5554
this try catch is a poor man's patch for issue #630 see https://github.com/kennethreitz/requests/issues/630
2012-05-24 06:17:21 +03:00
Arup Malakar
4a30979622
Change the None check from self.assertIsNone to python style None Check, as build was failing
2012-05-23 14:25:54 -07:00
Arup Malakar
b28673368b
Issue #505 : Changed the store_cookie configuration to be part of the config dict, instead of being a new argument
2012-05-23 14:12:18 -07:00
Kenneth Reitz
de1637c3de
Merge pull request #626 from joshimhoff/develop
...
Improvements to RequestsCookieJar
2012-05-21 21:45:44 -07:00
Josh Imhoff
0eb0b89431
Removed print statements left over from debugging.
2012-05-21 20:27:47 -04:00
Josh Imhoff
96cd8e9ca0
Wrote tests for new CookieJar functionality and made them pass.
2012-05-21 20:14:12 -04:00
Josh Imhoff
9f26d0ced3
In cookies.py, CookieConflictError is now thrown if there is more than one cookie with same name.
2012-05-21 18:21:12 -04:00
Josh Imhoff
b7d0925d6b
Docstrings and bug fixes in cookies.py
2012-05-21 17:59:38 -04:00
Cory Benfield
2b8e01bff7
First draft of full verbs.
2012-05-19 21:34:36 +01:00
Josh Imhoff
686db5d452
Defined keys(), values(), and items() in order to support dict-like client interface. Now, we throw exceptions if __getitem__() or __setitem__() is used when multiple domains are in jar.
2012-05-18 00:48:59 -04:00
Cory Benfield
36fd8da1c0
Correctly reflect redirection behaviour.
...
The docs incorrectly listed HEAD as a method that follows redirects by
default: it does not. This commit resolves this issue, and thus resolves
issue #504 .
2012-05-17 19:25:35 +01:00
Cory Benfield
45506d1f39
Rewrite quickstart docs.
...
This should help with issue #503 .
2012-05-17 10:16:42 +01:00
Kenneth Reitz
2d9746621a
Merge pull request #617 from mwielgoszewski/develop
...
Expose case-insensitive key access when deleting a key from CaseInsensitveDict
2012-05-16 17:34:02 -07:00
Kenneth Reitz
3c14435109
fix test for 2.6's unittest
2012-05-16 17:13:55 -07:00
Kenneth Reitz
4cf31b0b86
authors
2012-05-16 17:09:43 -07:00
Arup Malakar
c501784541
Issue #505 : Allow disabling of cookie persistence/sending
2012-05-16 15:07:15 -07:00
Marcin Wielgoszewski
4b7c5dab0e
Expose case-insensitive key access when deleting a key from CaseInsensitiveDict
2012-05-16 13:58:51 -04:00
Kenneth Reitz
c477f6eb6f
Merge pull request #562 from slingamn/urandom
...
replace utils.randombytes with os.urandom
2012-05-15 22:49:27 -07:00
Shivaram Lingamneni
f25827c5b6
replace utils.randombytes with os.urandom
2012-05-15 15:42:03 -07:00
Kenneth Reitz
355003b400
Merge pull request #614 from ib-lundgren/multipart_fix
...
Better content-type detection and unicode fix
2012-05-15 08:39:20 -07:00
Ib Lundgren
6a9d59ea97
Unicode fix for py3
2012-05-15 17:37:15 +02:00
Kenneth Reitz
2f50cb92b6
Merge pull request #613 from surajbarkale/patch-1
...
Remove sharing of base_headers config between sessions.
2012-05-15 08:31:43 -07:00
Ib Lundgren
c24665b593
Better content-type detection and unicode fix
2012-05-15 17:20:01 +02:00
Suraj Barkale
973e9cb548
Remove sharing of base_headers config between sessions.
...
Since base_headers is a dictionary, it's reference was shared with all instances of
Session objects. Using deepcopy here should not incur large performance penalty.
2012-05-15 19:47:02 +05:30
Kenneth Reitz
763393f70a
Merge pull request #611 from pnasrat/develop
...
Improve developer documentation.
2012-05-13 19:47:19 -07:00
Paul Nasrat
2c11473816
Improve developer documentation.
...
I cloned, followed the todo and had failures as no certifi or chardet.
Fixed up so easy to get started.
2012-05-13 16:09:52 -07:00
Kenneth Reitz
40d325366b
Merge pull request #610 from medwards/whitespace
...
Removed extra whitespace
2012-05-13 11:01:22 -07:00
Michael Edwards
51f7628078
Removed extra whitespace
2012-05-13 11:59:31 +02:00
Kenneth Reitz
4161a7ec6a
Merge pull request #607 from ztest/develop
...
Fix a docstring typo (of -> if).
2012-05-12 14:23:04 -07:00
ztest
ed767cb703
Fix a docstring typo (of -> if).
2012-05-12 13:09:14 -04:00
Shivaram Lingamneni
0442122d34
remove unused import
2012-05-10 15:14:44 -07:00
Kenneth Reitz
327b9eab87
semver
2012-05-10 17:11:35 -05:00
Kenneth Reitz
3ee594140b
remove oreos
2012-05-10 17:10:47 -05:00
Kenneth Reitz
15694fa2f7
remove gevent extras_require
2012-05-10 17:09:53 -05:00
Kenneth Reitz
07f6675376
remove requests async tests
2012-05-10 17:02:22 -05:00
Kenneth Reitz
32327f8f7c
remove requests.async
2012-05-10 17:01:09 -05:00
Kenneth Reitz
a050faf084
makin' history
2012-05-10 13:10:50 -05:00
Kenneth Reitz
0a37d82444
Merge pull request #603 from benmao/develop
...
get cookie like dict, such as s.cookies.get('test', 'no cookie')
2012-05-10 11:07:00 -07:00
Kenneth Reitz
3d2d072927
Merge pull request #604 from joshimhoff/develop
...
New implementation of safe_mode.
2012-05-10 11:06:24 -07:00
ben
44663b5e8e
get cookie like dict, such as self.cookies.get('test', 'no cookie')
2012-05-10 22:17:23 +08:00
Josh Imhoff
db43eb4cb9
Now, safe_mode will catch socket.timeout too.
2012-05-09 15:13:12 -04:00
Josh Imhoff
cff70e75b7
New implementation of safe_mode. Now, we throw exceptions in models.py regardless of safe_mode. We catch those exceptions at the API level and return a blank Response. See safe_mode.py for details.
2012-05-09 14:47:29 -04:00
Kenneth Reitz
2d328d8a7f
Merge pull request #595 from reclosedev/sess-cookies-no-resp
...
Session cookies not saved when Session.request is called with return_response=False
2012-05-08 08:06:51 -07:00
Roman Haritonov
c010f5895a
Add myself to AUTHORS.rst
2012-05-08 14:30:24 +04:00
Roman Haritonov
33f1087584
Move session cookie saving from Session.request() to Request._build_response()
2012-05-08 13:02:39 +04:00
Roman Haritonov
975430d5e6
Test async requests with Session cookies
2012-05-08 12:55:36 +04:00
Roman Haritonov
56ef079e6f
Test if cookies are saving to session when session.request is called with return_response=False
2012-05-08 12:17:58 +04:00
Kenneth Reitz
0308a2806a
Merge pull request #594 from slingamn/makefile_again
...
unbreak the Jenkins build again/hopefully :-/
2012-05-07 22:46:00 -07:00
Shivaram Lingamneni
175945b0bd
remove the oauthlib trunk from requirements.txt
2012-05-07 22:40:11 -07:00
Shivaram Lingamneni
2ee67441c8
unbreak the Jenkins build (again/hopefully)
...
Pyflakes is unavailable in the Jenkins Python 3 / PyPy environments
2012-05-07 22:36:51 -07:00
Kenneth Reitz
6fd03d5f20
thread safe
2012-05-08 01:24:30 -04:00
Kenneth Reitz
a3a928c7f1
gah
2012-05-08 01:21:48 -04:00
Kenneth Reitz
bca920c1c1
v0.12.1
2012-05-08 01:18:05 -04:00
Kenneth Reitz
6b09e6ee34
redirects clear files also
...
Fixes #575
2012-05-08 01:14:17 -04:00
Kenneth Reitz
2a7811bf2f
Merge remote-tracking branch 'origin/develop' into develop
2012-05-08 00:58:32 -04:00
Kenneth Reitz
e627c1f8a8
Merge pull request #559 from barberj/issue_526
...
Issue #526
2012-05-07 21:58:20 -07:00
Kenneth Reitz
fe7348cc53
yay json
...
fixes #593
2012-05-08 00:57:46 -04:00
barberj
b066902705
adding test verifying data httpbin sees
2012-05-06 19:24:37 -04:00
barberj
64eb415ec0
synatx error for python3. all strings are unicode
2012-05-06 18:50:42 -04:00
barberj
e912a6f5da
sending strings to be received as files
2012-05-06 15:14:57 -07:00
barberj
3288426f2b
added unicode strings
2012-05-06 15:14:57 -07:00
barberj
0a7d98871c
credit where credits due
2012-05-06 15:14:57 -07:00
barberj
ed7b14899f
added mutlipart file=strings
2012-05-06 15:14:40 -07:00
Kenneth Reitz
7b6338c4b6
Merge pull request #590 from berkerpeksag/doc-links
...
Fixed broken links in TODO docs.
2012-05-06 12:54:06 -07:00
Berker Peksag
a0f991dbad
Fixed broken links in TODO docs.
2012-05-06 22:26:28 +03:00
Kenneth Reitz
c84012edec
Merge pull request #585 from chazapis/develop
...
Fix out-of-range issue with iter_lines (#515 ).
2012-05-04 11:49:49 -07:00
Kenneth Reitz
7f571f5e5a
Merge pull request #587 from slingamn/jenkins
...
unbreak the Jenkins build by excluding ./env/*
2012-05-04 11:48:35 -07:00
Shivaram Lingamneni
d4227051a9
unbreak the Jenkins build by excluding ./env/*
2012-05-04 04:45:30 -07:00
Kenneth Reitz
3d373e2a16
Merge pull request #579 from slingamn/pyflakes.release
...
Changes for #574
2012-05-03 23:29:04 -07:00
Kenneth Reitz
38e6695627
Merge pull request #581 from crodjer/develop
...
A utility for using environment proxies
2012-05-03 23:28:07 -07:00
Kenneth Reitz
8bd6515564
Merge pull request #582 from slingamn/cookietests.release
...
Tests for persistent and secure cookies
2012-05-03 23:26:44 -07:00
Shivaram Lingamneni
8fedec785a
Tests for persistent and secure cookies
2012-05-03 23:20:37 -07:00
Rohan Jain
7cf6ca80a6
Add myself to authors
...
Signed-off-by: Rohan Jain <crodjer@gmail.com >
2012-05-04 10:59:57 +05:30
Rohan Jain
abc38cf17f
Use utility for environment proxy as fallback
...
Signed-off-by: Rohan Jain <crodjer@gmail.com >
2012-05-04 10:44:07 +05:30
Rohan Jain
0ba8c44260
A utility function to fetch environment proxies
...
This adds support for lowercase environment proxy variables (which are
quite popular too). It returns proxies in a format compatible with
request's proxy parameter.
Moreover, it can be used in the request models for proxy defaults.
Signed-off-by: Rohan Jain <crodjer@gmail.com >
2012-05-04 10:44:01 +05:30
Kenneth Reitz
1adaba3865
Merge pull request #580 from slingamn/keepalive
...
Fix and test for #458
2012-05-03 21:33:42 -07:00
Shivaram Lingamneni
35ec6bb613
fix for #458
2012-05-03 21:16:56 -07:00
Shivaram Lingamneni
3d4d5ab0df
test for #458
2012-05-03 21:16:46 -07:00
Shivaram Lingamneni
bcc4125a18
quiet spurious pyflakes errors
2012-05-03 19:59:15 -07:00
Shivaram Lingamneni
7f9ea04286
Various Makefile updates
2012-05-03 19:59:15 -07:00
Kenneth Reitz
317f64a11f
Merge pull request #577 from slingamn/redirects_537
...
Fix and test for #537
2012-05-03 01:36:12 -07:00
Kenneth Reitz
a3e55634d6
Merge pull request #572 from slingamn/chardet_2
...
cleanup, redux
2012-05-03 01:35:47 -07:00
Shivaram Lingamneni
9bf53676b8
fix crash in safe mode when response.cookies is None
2012-05-03 01:29:12 -07:00
Shivaram Lingamneni
41d1a427b0
add a test for max_redirects in safe/normal modes
2012-05-03 01:29:12 -07:00
Shivaram Lingamneni
853a07112b
consistency: .text shouldn't recover from unicode decoding errors, either
2012-05-02 20:21:02 -07:00
Shivaram Lingamneni
a8555d811d
remove fancy test assertions that are unavailable on 2.6
2012-05-02 20:21:02 -07:00
Shivaram Lingamneni
538de55607
raise a ValueError if no encoding was sent and chardet is unavailable
2012-05-02 20:21:02 -07:00
Shivaram Lingamneni
57ccd7e65c
Have Travis run all tests except the external and async ones
...
(async is currently unsupported under Python 3)
2012-05-02 20:20:26 -07:00
Kenneth Reitz
a9033912b3
missed import
2012-05-02 19:18:14 -04:00
Kenneth Reitz
373a34a144
date fix
2012-05-02 19:17:14 -04:00
Kenneth Reitz
9324c2a9b4
oauthlib
2012-05-02 19:15:43 -04:00
Kenneth Reitz
fb2931801e
v0.12.0
2012-05-02 19:13:19 -04:00
Kenneth Reitz
8ac6b266c9
pre-send hook
...
#516
2012-05-02 19:09:18 -04:00
Kenneth Reitz
efe5d13ed6
Merge pull request #516 from EnTeQuAk/move_pre_request
...
Move pre_request to a more usable place, followup to #382
2012-05-02 15:58:08 -07:00
Kenneth Reitz
a9963e3841
upper case automatically
2012-05-02 18:57:06 -04:00
Kenneth Reitz
f1d104e004
making history
2012-05-02 18:56:51 -04:00
Kenneth Reitz
996f99b267
Merge remote-tracking branch 'origin/develop' into develop
2012-05-02 18:47:53 -04:00
Kenneth Reitz
62d2ea8034
default chunk size for .content much bigger
2012-05-02 18:47:50 -04:00
Kenneth Reitz
ed15c70cd0
Merge pull request #573 from idangazit/develop
...
Lazily encode data, params, files
2012-05-02 14:19:56 -07:00
Idan Gazit
cf6b20429a
Merge remote-tracking branch 'upstream/develop' into develop
2012-05-03 00:08:00 +03:00
Idan Gazit
324336e7f6
Lazily encode data, params, files
...
Previously, data, params, and files were encoded and stored in
Request.__init__, and subsequently put into service during
Request.send. The problem with this approach is that hooks and auth
callables need to be aware of the eager encoding, and if they touch the
originals, make sure to update the encoded versions.
A better approach is to only encode late in the sending process. This
way, hooks and auth callables can safely make changes without fear of
the old, encoded variant overriding it.
2012-05-03 00:04:13 +03:00
Idan Gazit
d240b1fe15
PEP8 Cleanup
2012-05-02 23:16:38 +03:00
Antony Chazapis
c333bd144e
Fix out-of-range issue with iter_lines ( #515 ).
2012-05-02 16:51:19 +03:00
Kenneth Reitz
53d60cac4f
Revert "Update Makefile and travis configuration to run all (non-external) tests"
...
This reverts commit a453a78c7c .
2012-05-02 02:38:20 -04:00
Kenneth Reitz
6271046a27
Revert "Cache the value of the Response.text property"
...
This reverts commit d232948188 .
2012-05-02 02:38:11 -04:00
Kenneth Reitz
8a81a437d2
Revert "Use utf-8 as the default encoding"
...
This reverts commit 35d5ac6e8f .
2012-05-02 02:37:51 -04:00
Shivaram Lingamneni
a453a78c7c
Update Makefile and travis configuration to run all (non-external) tests
2012-05-01 23:21:05 -07:00
Shivaram Lingamneni
bdd7f8f8a2
Change setup.py to reflect required/optional dependencies
2012-05-01 23:21:05 -07:00
Shivaram Lingamneni
d232948188
Cache the value of the Response.text property
2012-05-01 22:28:50 -07:00
Shivaram Lingamneni
35d5ac6e8f
Use utf-8 as the default encoding
...
(fixes crashes on failure to import chardet)
2012-05-01 21:46:53 -07:00
Shivaram Lingamneni
fdd08215ea
update documentation to correspond to new cookie API
2012-05-01 21:46:53 -07:00
Shivaram Lingamneni
ff7cfa732f
restore docs/_build directory to .gitignore
2012-05-01 19:18:55 -07:00
Kenneth Reitz
45be14ed6f
Merge pull request #565 from slingamn/cookiejar
...
Support CookieJar, references #281
2012-05-01 17:22:37 -07:00
Shivaram Lingamneni
11a3eaec26
add Python 3 compatibility
2012-05-01 17:00:19 -07:00
Shivaram Lingamneni
7832f2ae7e
add laurentb's test case for cookie handling on redirects
2012-05-01 17:00:19 -07:00
Shivaram Lingamneni
6eb349f5d2
remove unused import in test
2012-05-01 17:00:19 -07:00
Shivaram Lingamneni
ff169d32fe
fix and test for a bug dhagrow reported
2012-05-01 17:00:19 -07:00
Shivaram Lingamneni
404ecaf95b
clarified documentation from e-mail discussion
2012-05-01 17:00:19 -07:00
Shivaram Lingamneni
1de14e6a93
fix usage of compat.urlparse
...
(this code path appears to have been exercised only by secure cookies)
2012-05-01 17:00:19 -07:00
Shivaram Lingamneni
492bda1343
add a test for redirection
2012-05-01 17:00:19 -07:00
Shivaram Lingamneni
4d6871d917
Further changes to move cookies to CookieJar
2012-05-01 17:00:19 -07:00
miguel
c4ab96b638
mostly complete cookie support based on cookiejar
2012-05-01 17:00:19 -07:00
miguel
fed6cfbf4d
mostly complete cookie support based on cookiejar
2012-05-01 17:00:19 -07:00
miguel
2a27b123fd
catch TooManyRedirects in safe_mode
2012-05-01 17:00:19 -07:00
Shivaram Lingamneni
7c5151e8e7
changes to .gitignore
2012-05-01 17:00:19 -07:00
Kenneth Reitz
a189c238cc
LOLJK
2012-05-01 07:22:59 -04:00
Kenneth Reitz
d427bb8603
OAUTH ALL THE THINGS
2012-05-01 07:19:04 -04:00
Kenneth Reitz
7eed89a0df
v0.11.3
2012-05-01 07:17:35 -04:00
Kenneth Reitz
5d9699bbdc
oauthlib only for 2
2012-05-01 07:07:18 -04:00
Kenneth Reitz
e6cce7a5bd
syntax errors
2012-05-01 07:06:55 -04:00
Kenneth Reitz
d79e1bbaad
or str
2012-05-01 07:02:13 -04:00
Kenneth Reitz
bf1744eea2
hax
2012-05-01 06:57:25 -04:00
Kenneth Reitz
9427e1efe8
missed an import
2012-05-01 06:55:19 -04:00
Kenneth Reitz
661af1dc1a
only import oauthlib in python2
2012-05-01 06:54:09 -04:00
Kenneth Reitz
a5bc99d53e
no -e
2012-05-01 06:50:38 -04:00
Kenneth Reitz
14fae695bf
uh, sure
2012-05-01 06:47:58 -04:00
Kenneth Reitz
be04142723
Revert "Call auth callable before encoding body data"
...
This reverts commit 9217a2523d .
2012-05-01 06:42:58 -04:00
Kenneth Reitz
748c65f7a7
git+git://github.com/idangazit/oauthlib.git
2012-05-01 06:27:55 -04:00
Idan Gazit
2fc9f6bbc9
Trim down OAuth1 callable logic
...
Moved much of the validation out of requests and into oauthlib
2012-05-01 06:20:53 -04:00
Idan Gazit
65bf3ab201
Backing out stupidly incorrect str vs unicode check
...
It's simply wrong. Since compat.py sets str = unicode for py2, the
original logic is sound.
2012-05-01 06:20:53 -04:00
Idan Gazit
906fcd7328
Fix order of return values from OAuth Client.sign()
2012-05-01 06:20:52 -04:00
Idan Gazit
7b819852b9
Fix Content-Type validation in OAuth1 callable
2012-05-01 06:20:52 -04:00
Idan Gazit
9217a2523d
Call auth callable before encoding body data
2012-05-01 06:20:52 -04:00
Idan Gazit
0aedef07c3
Improve _encode_params to handle lists of two-element tuples
2012-05-01 06:20:52 -04:00
Idan Gazit
3e60a9eb9c
Proper test for str vs unicode when preparing data
...
In python 2.x, requests sets str = unicode in requests/compat.py. This causes
isinstance(foo, str) to return True even if foo is a unicode string.
2012-05-01 06:20:52 -04:00
Idan Gazit
798dc4ae1d
Initial implementation of OAuth1 request signing with OAuthLib
2012-05-01 06:20:52 -04:00
Idan Gazit
632d9893b0
Improve docstring description of auth parameter
2012-05-01 06:20:52 -04:00
Idan Gazit
809d9863bf
Add .egg-info/ dir to gitignore
2012-05-01 06:20:52 -04:00
Kenneth Reitz
742cbeaee1
httpbin weirdness
2012-05-01 05:51:59 -04:00
Kenneth Reitz
2159c80270
v0.11.2
2012-04-22 22:29:26 -04:00
Kenneth Reitz
8e9446d3fb
revert
2012-04-22 22:29:00 -04:00
Kenneth Reitz
a7da521a62
merge conflict
2012-04-22 22:26:53 -04:00
Kenneth Reitz
2621fe2bff
Revert "Add failing tests for invalid %encodings"
...
This reverts commit e28c1c9bfa .
2012-04-22 22:26:07 -04:00
Kenneth Reitz
3843a40f7c
Revert "Reenable test_session_with_escaped_url test"
...
This reverts commit 3550ac7473 .
2012-04-22 22:25:57 -04:00
Kenneth Reitz
f647352d01
v0.11.2
2012-04-22 22:08:39 -04:00
Kenneth Reitz
1631f0f5ae
Merge pull request #552 from slingamn/bundle_2
...
attempt to use the OS's certificate bundle
2012-04-22 18:53:31 -07:00
Shivaram Lingamneni
b4eb8663af
prefer certifi's bundle to the OS bundle
2012-04-22 18:43:59 -07:00
Shivaram Lingamneni
e1528ce3be
add the FreeBSD certificate bundle path
2012-04-19 14:27:26 -07:00
Shivaram Lingamneni
1360e77cb2
Add a smoke test for https functionality
2012-04-16 17:50:40 -07:00
Shivaram Lingamneni
9921099546
Try to use the OS's CA certificate bundle for SSL verification
2012-04-16 15:28:31 -07:00
Kenneth Reitz
2f6b5feb1a
Merge pull request #550 from reclosedev/develop
...
Fix issue #549 . Add 'prefetch' to Session.__attrs__ and Requests.__init__
2012-04-14 03:19:10 -07:00
Roman Haritonov
d569a2d6bc
fix #549 Add 'prefetch' to Session.__attrs__ and Requests.__init__
2012-04-13 19:25:10 +04:00
Kenneth Reitz
e3ba495ed9
Merge branch 'develop' of https://github.com/catwell/requests into develop
2012-04-13 08:34:18 +02:00
Kenneth Reitz
d4a77cf2af
Merge pull request #548 from umbrae/httperror_fix
...
A get with an invalid port should wrap urllib3's LocationParseError exception with our own.
2012-04-12 12:44:44 -07:00
Chris Dary
3a2eaa67a2
A get with an invalid port should wrap urllib3's LocationParseError exception with our own.
2012-04-12 12:35:34 -04:00
Pierre Chapuis
f3ad56f103
Encode Multipart Post data at Request creation
...
This fixes #298 (File upload not working with
HTTP digest authentication)
2012-04-12 17:49:48 +02:00
Pierre Chapuis
c3e6c41fc1
Fix infinite loop on wrong Digest Authentication
2012-04-12 16:33:15 +02:00
Kenneth Reitz
8a055c5d42
Merge pull request #535 from Jonty/develop
...
Fix decoding of invalid %encodings in URLs
2012-04-11 08:02:46 -07:00
Jonty Wareing
06e4971fe7
Rewrite unquote_unreserved based on urllib.unquote
...
This is almost entirely taken from the unquote implementation in urllib,
slightly modified for the case in hand. It now deals with invalid %encodings
rather than exploding, and the code is somewhat simpler.
2012-04-11 14:56:19 +00:00
Jonty Wareing
e28c1c9bfa
Add failing tests for invalid %encodings
2012-04-11 14:55:43 +00:00
Jonty Wareing
3550ac7473
Reenable test_session_with_escaped_url test
2012-04-11 14:55:43 +00:00
Idan Gazit
51800bf36f
Trigger setup.py develop when installing requirements
2012-04-11 14:05:33 +03:00
Idan Gazit
c89a3e207e
Clarify digest hash method names
2012-04-11 14:02:59 +03:00
Kenneth Reitz
365c64fe3b
#539
2012-04-10 23:00:25 -03:00
Kenneth Reitz
6b652f766d
Merge pull request #545 from sharat87/patch-1
...
Add docs on sending lists for multivalued query params.
2012-04-10 08:43:46 -07:00
Shrikant Sharat Kandula
5a8a8f2bd3
Add docs on sending lists for multivalued query params.
2012-04-10 14:42:38 +05:30
Kenneth Reitz
821cbb3e08
moar
2012-04-09 04:22:10 -04:00
Kenneth Reitz
f8798aee28
Merge pull request #542 from newmaniese/develop
...
Attempting to address issue #377 by making content on the response model a little smarter
2012-04-08 20:13:38 -07:00
Michael Newman
11cd2b8253
Fixing a silly typo in my test
2012-04-08 18:46:26 -04:00
Michael Newman
1677c688cb
Shamelessly adding myself to the authors list
2012-04-08 18:42:08 -04:00
Michael Newman
b92feb3f0a
If there is no content in a response don't throw an error the second time that content is attempted to be read. This addresses issue #377 < https://github.com/kennethreitz/requests/issues/377 >
2012-04-08 18:39:44 -04:00
Kenneth Reitz
7d4d91f013
Merge pull request #540 from jhalcrow/patch-1
...
Correct path to test_requests.py for setup.py test
2012-04-06 10:01:19 -07:00
Jonathan Halcrow
3279906737
Correct path to test_requests.py for setup.py test
2012-04-06 12:50:16 -03:00
Kenneth Reitz
c7b1bc8197
Merge pull request #534 from ThiefMaster/patch-1
...
Remove bad tab indent
2012-04-04 01:05:00 -07:00
Adrian
da288ad57a
Remove bad tab indent
2012-04-04 11:03:49 +03:00
Andrey Petrov
03ae9bee74
Fixed typoe (s/repsonses/responses/)
2012-04-02 16:59:08 -07:00
Kenneth Reitz
a364395612
Merge pull request #530 from Osmose/sidebar_donate
...
Fix #506 : Change "Support Requests" to "Donate".
2012-04-02 00:44:00 -07:00
Kenneth Reitz
37f3a29d49
Michael Kelly
2012-04-02 03:43:11 -04:00
Michael Kelly
48396f97a9
Fix #506 : Change "Support Requests" to "Donate".
2012-04-02 00:40:20 -07:00
Kenneth Reitz
ccd19c53c8
Merge remote-tracking branch 'origin/develop' into develop
2012-03-31 17:39:31 -04:00
Kenneth Reitz
2bae0d295b
new urllib3 version
...
#498
2012-03-31 17:39:26 -04:00
Kenneth Reitz
8755969629
Merge pull request #529 from piotr-dobrogost/develop
...
Removed unnecessary leading slashes in httpbin's endpoints
2012-03-31 13:21:17 -07:00
Piotr Dobrogost
e12d053ab8
Removed unnecessary leading slashes in httpbin's endpoints
2012-03-31 22:16:55 +02:00
Kenneth Reitz
13b07cb5d8
Merge pull request #528 from floppym/dist-tests
...
Include tests in tarballs.
2012-03-31 11:36:21 -07:00
Mike Gilbert
d3adc9d334
Include tests in tarballs.
2012-03-31 14:22:49 -04:00
Kenneth Reitz
751e2ea2d4
roadmap
2012-03-31 03:21:31 -04:00
Kenneth Reitz
dab3df7619
fake change for commit hook test
2012-03-31 03:11:43 -04:00
Kenneth Reitz
171b370b0e
app engine #498
2012-03-31 03:08:12 -04:00
Kenneth Reitz
bcbc1be1c8
blah
2012-03-31 03:06:28 -04:00
Kenneth Reitz
04c329d703
license=open("LICENSE").read(
2012-03-31 02:53:14 -04:00
Kenneth Reitz
9a62aa6380
.. :changelog:
2012-03-31 02:51:38 -04:00
Kenneth Reitz
11e5c8eab7
HTTP/1.1
2012-03-31 00:08:38 -04:00
Kenneth Reitz
775b6f6f00
v0.11.1
2012-03-30 23:42:56 -04:00
Kenneth Reitz
dacc1d8aaf
default to true for redirects now, since safe
2012-03-30 23:42:04 -04:00
Kenneth Reitz
18591920f3
upload data on redirects too
2012-03-30 23:31:19 -04:00
Kenneth Reitz
193eb42891
v0.11.1
2012-03-30 23:30:56 -04:00
Kenneth Reitz
b20d171c1c
POST redirect => GET
...
#269
2012-03-30 23:28:07 -04:00
Kenneth Reitz
590211e13e
Merge remote-tracking branch 'origin/develop' into develop
2012-03-30 23:15:47 -04:00
Kenneth Reitz
fff5269d1a
Fix app engine error for #498
2012-03-30 23:15:43 -04:00
Kenneth Reitz
e831947be4
strict mode for #269
2012-03-30 23:15:31 -04:00
Kenneth Reitz
c205ce658f
Merge pull request #519 from pulpe/doc-fix
...
little correction of curl in docs
2012-03-30 19:58:38 -07:00
pulpe
13060f89c7
little correction of curl in docs
2012-03-28 10:45:21 +02:00
Christopher Grebs
f25901874a
Move pre_request to a more usable place, followup to #382
...
Having the hook called so late makes it impossible to overwrite the HTTP request
calling behavior and set self.sent to True in case of possible cache matches
for example.
This way we can interfere before we waste any CPU time to calculate
a request.
2012-03-27 15:38:56 +02:00
Kenneth Reitz
3cc6acaca4
Merge remote-tracking branch 'origin/develop' into develop
2012-03-25 15:26:58 -04:00
Kenneth Reitz
21ccf8f8c0
urllib3 v1.3
2012-03-25 15:26:55 -04:00
Kenneth Reitz
b973d08b0e
Merge pull request #512 from silent1mezzo/master
...
Adds MissingSchema and InvalidSchema Exceptions
2012-03-25 12:00:57 -07:00
Adam McKerlie
d24ee0e1dc
Created MissingSchema and InvalidSchema which inherits from RequestException and ValueError
2012-03-25 11:03:36 -04:00
Kenneth Reitz
afb1bd103a
paypal
2012-03-25 03:56:00 -04:00
Kenneth Reitz
4c1852f928
Merge branch 'develop' of github.com:kennethreitz/requests into develop
2012-03-22 15:00:51 -04:00
Kenneth Reitz
6e26f5754b
#508
2012-03-22 15:00:47 -04:00
Daniel Miller
82d1b340dc
Suggesting changing "async.map(rs)" to "responses = async.map(rs)" just to show that it returns a list rather than mutating the original? Maybe this is apparent for most, but I was a bit confused =/ http://goo.gl/gE4up
2012-03-22 11:57:19 -07:00
Kenneth Reitz
eab2ab9faa
Steve Pulec
2012-03-18 22:19:48 -04:00
Kenneth Reitz
12427e3434
Merge branch 'patch-1' of https://github.com/spulec/requests into develop
2012-03-18 22:18:49 -04:00
Kenneth Reitz
76bf523a1f
Merge #491
2012-03-18 22:15:05 -04:00
Kenneth Reitz
613816dd9d
Merge pull request #488 from newmaniese/develop
...
Excluding select from the monkey patching that gevent does to allow sele...
2012-03-18 19:08:51 -07:00
Kenneth Reitz
f8ec2544ce
Merge pull request #494 from JDrosdeck/doc
...
Add quickstart doc and example for passing parameters in a GET request
2012-03-18 19:07:31 -07:00
Steve Pulec
3c2f52d681
Fixes issues #496 by having Response.ok catch all Requests exceptions.
2012-03-18 23:06:42 -03:00
Kenneth Reitz
3baf3ab069
Merge pull request #497 from iandanforth/develop
...
Develop
2012-03-18 19:04:56 -07:00
Kenneth Reitz
5c575b30c2
Merge remote-tracking branch 'origin/develop' into develop
2012-03-18 22:02:46 -04:00
Kenneth Reitz
e65f52aae4
remove debian packaging warning
...
it's up to date now
2012-03-18 22:02:43 -04:00
Ian Danforth
44277441d6
Sphinx throws an error if you don't escape ** in **kwargs
2012-03-18 18:11:15 -07:00
Ian Danforth
7b68c124d5
Sphinx throws an error if you don't escape ** in **kwargs
2012-03-18 18:09:58 -07:00
Jonathan Drosdeck
f2172922c5
Add quickstart doc and example for passing parameters in a GET request
2012-03-18 15:37:46 -04:00
Michael Newman
079a825ac3
Merge https://github.com/kennethreitz/requests into develop
2012-03-16 15:32:50 -04:00
Kenneth Reitz
9cf9d76eb5
Merge pull request #477 from maxcountryman/develop
...
potentially fixes #338
2012-03-15 18:15:27 -07:00
Kenneth Reitz
dc7029ec98
Merge pull request #483 from maxcountryman/cleanup
...
removing unused import
2012-03-15 18:14:35 -07:00
Kenneth Reitz
f0019c06d7
Merge pull request #489 from maxcountryman/patch-1
...
fixing link to AUTHORS in README
2012-03-15 18:13:26 -07:00
Max Countryman
a094ad8f31
fixing link to AUTHORS in README
2012-03-15 22:05:08 -03:00
Michael Newman
d6827a37d0
Excluding select from the monkey patching that gevent does to allow select.poll and requests.async in the same project
...
Fix for issue #487 , including a regression test that checks the
existence of select.poll before and after loading requests.async.
2012-03-15 14:41:45 -04:00
Kenneth Reitz
5b7a79b0ff
Merge pull request #486 from Pinkerton/patch-1
...
Fix issue #484
2012-03-14 20:08:17 -07:00
Pinkerton
ee861f4287
Fix issue #484
2012-03-14 19:54:06 -07:00
Kenneth Reitz
0c0bab3ad0
v0.11.0
2012-03-14 20:31:43 -04:00
Kenneth Reitz
1c73ec22e9
Nick Chadwick
2012-03-14 20:30:03 -04:00
Kenneth Reitz
4677ba5cd9
only verify private cert when verity is true
2012-03-14 20:29:30 -04:00
Kenneth Reitz
093709be4d
Merge branch 'develop' of https://github.com/chadnickbok/requests into develop
2012-03-14 20:27:07 -04:00
Kenneth Reitz
f6ed16bbbe
Merge remote-tracking branch 'origin/develop' into develop
2012-03-14 20:27:02 -04:00
chadnickbok@gmail.com
fc618aa78a
Updated Requests api to accept a 'cert' argument.
...
This argument can be either a string, containing the path to a
pem-formatted key and certificate chain, or a tuple of (cert, key).
When supplied a tuple, the values are paths to an SSL certificate
chain file and key, respectively.
2012-03-14 17:15:29 -07:00
chadnickbok@gmail.com
82e69de44f
Exposed key_file and cert_file in requests, to support https client certificates.
2012-03-14 15:57:30 -07:00
Max Countryman
8f8062723a
removing unused import
2012-03-13 20:10:32 -04:00
Idan Gazit
cc4381b91e
Merge branch 'develop' of github.com:kennethreitz/requests into develop
2012-03-13 17:05:24 -07:00
Idan Gazit
eae641485b
Remove unused import
2012-03-13 17:04:26 -07:00
Kenneth Reitz
29309201b6
remove cruft
2012-03-13 16:44:45 -07:00
Kenneth Reitz
0dd6c40205
dict sequence
2012-03-13 16:42:16 -07:00
Kenneth Reitz
84d9a1b577
dict_to_sequence
2012-03-13 16:39:51 -07:00
Idan Gazit
17170a2ca7
Merge branch 'develop', remote-tracking branch 'upstream/develop' into develop
2012-03-13 12:59:33 -07:00
Kenneth Reitz
8d34538f4c
further lies.
2012-03-12 20:54:02 -07:00
Kenneth Reitz
8d1a85a8d0
Merge branch 'josh' into develop
2012-03-12 20:51:59 -07:00
Kenneth Reitz
06f048e507
lies.
2012-03-12 20:46:23 -07:00
Max Countryman
83a9f2c740
explicating the cause of LookupError with a better comment
2012-03-11 22:22:29 -04:00
Max Countryman
bc5cc0dc92
potentially fixes #338
...
This attempts to fix an issue where encoding of a string might fail when the
encoding is set to some unknown format. Here we attempt to catch the
LookupException and subsequently blindly encode the string one final time.
That is we call str() over response.content without specifying an encoding.
This may still fail in certain cases but does properly handle the case of #338
by returning the expected string.
2012-03-09 17:30:35 -05:00