From b115fb752571eda658ba07a8fc8999399ffd3397 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Thu, 15 Mar 2018 16:34:59 -0400 Subject: [PATCH] or none Signed-off-by: Kenneth Reitz --- requests/structures.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/requests/structures.py b/requests/structures.py index 1e6e49ab..1d2c2046 100644 --- a/requests/structures.py +++ b/requests/structures.py @@ -96,14 +96,14 @@ class HTTPHeaderDict(CaseInsensitiveDict): self.extend({} if data is None else data, **kwargs) - # + # # We'll store tuples in the internal dictionary, but present them as a # concatenated string when we use item access methods. # def __setitem__(self, key, val): # Special–case null values. if (not isinstance(val, basestring)) and (val is not None): - raise ValueError('only string-type values are allowed') + raise ValueError('only string-type values (or None) are allowed') super(HTTPHeaderDict, self).__setitem__(key, (val,))