From fe16f425a9a4de24e4e9fbeb8d9b938ff52e44b5 Mon Sep 17 00:00:00 2001 From: Jakub Roztocil Date: Wed, 19 Dec 2012 12:30:20 +0100 Subject: [PATCH] Require Requests v1.0.3. --- README.rst | 1 + httpie/sessions.py | 3 ++- setup.py | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 9e0f1f4d..428fff45 100644 --- a/README.rst +++ b/README.rst @@ -1101,6 +1101,7 @@ Changelog *You can click a version name to see a diff with the previous one.* * `0.4.0-alpha`_ + * Requests v1.0.3. * Added `httpie` management command. * Added support for credentials in URL. * Added ``--no-option`` for every ``--option`` to be config-friendly. diff --git a/httpie/sessions.py b/httpie/sessions.py index d5becfd9..4e89edee 100644 --- a/httpie/sessions.py +++ b/httpie/sessions.py @@ -148,10 +148,11 @@ class Session(BaseConfigDict): @cookies.setter def cookies(self, jar): + # http://docs.python.org/2/library/cookielib.html#cookie-objects excluded = [ '_rest', 'name', 'port_specified', 'domain_specified', 'domain_initial_dot', - 'path_specified', 'comment', 'comment_url' + 'path_specified', 'comment', 'comment_url', ] self['cookies'] = {} for host in jar._cookies.values(): diff --git a/setup.py b/setup.py index 305e2415..03535479 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ if sys.argv[-1] == 'test': requirements = [ # Debian has only requests==0.10.1 and httpie.deb depends on that. - 'requests>=0.10.1', + 'requests>=1.0.3', 'Pygments>=1.5' ] if sys.version_info[:2] in ((2, 6), (3, 1)):