commit efaaaece1bd86dd76897435846b7bd4d7dc93f2a Author: Arun Pandian G arunpandianp@gmail.com Date: Tue Feb 18 21:51:09 2014 +0530
Construt TrueHeaders using string parameter --- ooni/utils/trueheaders.py | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/ooni/utils/trueheaders.py b/ooni/utils/trueheaders.py index 06e5c02..31ee179 100644 --- a/ooni/utils/trueheaders.py +++ b/ooni/utils/trueheaders.py @@ -32,6 +32,8 @@ class TrueHeaders(http_headers.Headers): self.setRawHeaders(name, values[:]) elif type(values) is dict: self._rawHeaders[name.lower()] = values + elif type(values) is str: + self.setRawHeaders(name, values)
def setRawHeaders(self, name, values): if name.lower() not in self._rawHeaders:
tor-commits@lists.torproject.org