Commit Graph

110 Commits

Author SHA1 Message Date
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
Scott Sadler c044a70796 update AUTHORS 2014-10-25 16:52:02 +02:00
syedsuhail 3a6348dbb9 Fix #2288. Change urllib3 and chardet workflow 2014-10-19 13:18:26 +05:30
Joe Alcorn a68d1b4517 Support bytestring URLs on Python 3.x 2014-09-30 19:29:10 +01:00
Martin Jul 4707d11004 Added example of how to send multiple files in one request. 2014-09-16 11:38:40 +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
David Pursehouse eef4e0836c Add links to Twitter accounts
Change-Id: Ic88eb128384b3cc9108151c219cd759c7524a4f1
2014-07-18 22:46:19 +09: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
Ben Bass e3d0ac7c9d update AUTHORS.rst 2014-05-17 23:22:15 +01:00
Cory Benfield 082b877d81 We're awesome, but don't need to be here twice. 2014-04-18 17:15:45 +01:00
Ian Cordasco e56cc11757 Fix my name 2014-04-18 10:35:44 -05: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 21010ee25a core contributors 2014-04-15 19:07:41 -04:00
Kenneth Reitz df1c2335c8 Merge branch 'master' into fix-pickling-adapters
Conflicts:
	AUTHORS.rst
2014-01-08 13:53:23 -05:00
Konstantin Podshumok 537def4a4f fix regression with cookiejar.iteritems() 2013-12-18 06:56:53 +04:00
Erik Wickstrom d3f3b423ad Updated AUTHORS. 2013-12-13 22:28:46 -06:00
Michael Becker 6ac70450dc AUTHORS: Take credit 2013-12-06 08:57:37 -05:00
Kamil Madac 8aff6f5ed0 Redesigned no_proxy ip range imlementation to use only stdlib functions 2013-12-03 16:23:08 +01:00
Pengfei Xue afaed3343a add coverage make target 2013-11-15 22:11:49 +08:00
Jayson Vantuyl b149be5d86 loosen URL handling for non-native URL schemes 2013-11-15 01:25:32 -08:00
Thomas Weißschuh c477242376 add myself to AUTHORS.rst 2013-11-04 18:54:42 +00:00
Can Ibanoglu 0cd6959f19 Removed extra extra parentheses in SessionRedirectMixin.resolve_redirects 2013-10-22 23:48:04 +03: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
Matt Spitz 2c2af651c4 Adding myself to AUTHORS.rst. 2013-10-10 15:08:34 -04:00
daftshady c8fc19a779 add myself to authors. 2013-09-29 02:27:20 +09:00
Kenneth Reitz 54ad646067 merge 2.0 insto master 2013-09-24 14:13:28 -04:00
Cory Benfield ce6762ff63 Fixup unicode in AUTHORS file 2013-09-12 10:34:34 +01:00
homm f0c592b09e Update AUTHORS.rst 2013-09-12 13:27:06 +04:00
Jon Parise 9d0d11a369 Adding myself to the list of contributors. 2013-09-04 09:00:03 -07:00
schlamar 09d97c1126 Added entry to AUTHORS. 2013-08-03 13:59:38 +02:00
David Pursehouse 787c1e8c6e Add myself to the authors list 2013-07-22 15:19:10 +09:00
Flavio Curella 7da16c584a Added myself to AUTHORS 2013-07-01 15:54:59 -05:00
Kevin Burke ba0db9db86 Add self to AUTHORS 2013-06-12 15:56:10 -07: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
James Clarke f705c41c1d Added myself to AUTHORS. 2013-05-31 18:19:42 -07:00
Bob Carroll 489a412f96 I probably should add my name too 2013-05-26 14:44:37 -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
Łukasz Langa 4c8af1fff4 Fixes #1320: transport adapters stored in ordered form 2013-05-15 13:34:09 +02: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
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
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
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
Wilfred Hughes 796d3225dd [kennethreitz/requests#1208] adding a max_retries argument 2013-02-27 16:01:23 +00: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
Johnny Goodnow 4cac9f07c4 Add myself to AUTHORS. 2013-01-25 00:19:09 -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
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