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
d2d576b6b1
Update urllib3 to a27758625e4169330fcf965652b1093faf5aaaa2
2015-01-09 20:55:54 -06:00
kennethreitz
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
kennethreitz
b176ccd481
drawn towards it rather than pushed away
2015-01-08 10:04:58 -05:00
kennethreitz
176b365287
certifi
2015-01-08 10:01:39 -05:00
kennethreitz
09658b80c0
certifi
2015-01-08 09:58:31 -05:00
kennethreitz
ac34e3b346
simpler button
2015-01-08 09:55:40 -05:00
kennethreitz
5549f50258
cleanups
2015-01-08 09:52:56 -05:00
kennethreitz
15597c27cd
Requests Pro
2015-01-08 09:52:50 -05:00
kennethreitz
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
kennethreitz
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
kennethreitz
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
kennethreitz
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
kennethreitz
53d02381e2
Merge pull request #2349 from sigmavirus24/fix-pickling
...
Properly serialize RecentlyUsedContainers for cache
2014-11-30 14:12:43 -05:00
kennethreitz
8ae4d02d73
Merge pull request #2348 from danmichaelo/master
...
Docs: Add more section labels for referencing
2014-11-30 14:12:04 -05:00
kennethreitz
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