diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2016-06-09 13:28:43 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2016-06-09 13:28:43 +1200 |
commit | c421c41307ce1ced06dae9f1d37fb516e6437f1e (patch) | |
tree | 4a93a3fedd5c9f226b8b675e76301557ebee97c9 /netlib/http | |
parent | 90cb84b53629d0a8807b3a8992acc32dd93a9a63 (diff) | |
download | mitmproxy-c421c41307ce1ced06dae9f1d37fb516e6437f1e.tar.gz mitmproxy-c421c41307ce1ced06dae9f1d37fb516e6437f1e.tar.bz2 mitmproxy-c421c41307ce1ced06dae9f1d37fb516e6437f1e.zip |
Remove odict
- Adds default implementations for _kconv and _reduce_values to MultiDict.
Without these, operations fail in really, really non-obvious ways.
- Replace the remaining few instances of ODict
Fixes #1159
Diffstat (limited to 'netlib/http')
-rw-r--r-- | netlib/http/response.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/netlib/http/response.py b/netlib/http/response.py index 7dabfcab..17d69418 100644 --- a/netlib/http/response.py +++ b/netlib/http/response.py @@ -73,10 +73,11 @@ class Response(message.Message): def cookies(self): # type: () -> multidict.MultiDictView """ - The response cookies. A possibly empty :py:class:`~netlib.multidict.MultiDictView`, where the keys are - cookie name strings, and values are (value, attr) tuples. Value is a string, and attr is - an ODictCaseless containing cookie attributes. Within attrs, unary attributes (e.g. HTTPOnly) - are indicated by a Null value. + The response cookies. A possibly empty + :py:class:`~netlib.multidict.MultiDictView`, where the keys are cookie + name strings, and values are (value, attr) tuples. Value is a string, + and attr is an MultiDictView containing cookie attributes. Within + attrs, unary attributes (e.g. HTTPOnly) are indicated by a Null value. Caveats: Updating the attr |