提交 c50f088b 编写于 作者: J Julia Medina

Fix httpcache doctest that assumed dictionary order

上级 11869697
......@@ -290,10 +290,11 @@ def parse_cachecontrol(header):
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9
>>> parse_cachecontrol('public, max-age=3600')
{'public': None, 'max-age': '3600'}
>>> parse_cachecontrol('')
{}
>>> parse_cachecontrol('public, max-age=3600') == {'public': None,
... 'max-age': '3600'}
True
>>> parse_cachecontrol('') == {}
True
"""
directives = {}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册