Fixes bug#610140. Thanks to Vish and Muharem for the patch
This commit is contained in:
commit
0082ae2ac4
@ -43,7 +43,11 @@ def boto_to_tornado(method, path, headers, data, host, connection=None):
|
|||||||
|
|
||||||
connection should be a FakeTornadoHttpConnection instance
|
connection should be a FakeTornadoHttpConnection instance
|
||||||
"""
|
"""
|
||||||
headers = httpserver.HTTPHeaders()
|
try:
|
||||||
|
headers = httpserver.HTTPHeaders()
|
||||||
|
except AttributeError:
|
||||||
|
from tornado import httputil
|
||||||
|
headers = httputil.HTTPHeaders()
|
||||||
for k, v in headers.iteritems():
|
for k, v in headers.iteritems():
|
||||||
headers[k] = v
|
headers[k] = v
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user