Fixes bug#610140. Thanks to Vish and Muharem for the patch

This commit is contained in:
jaypipes@gmail.com 2010-07-26 23:28:59 -04:00
parent 00c2791230
commit a2cf8a6f60

View File

@ -43,7 +43,11 @@ def boto_to_tornado(method, path, headers, data, host, connection=None):
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():
headers[k] = v