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

This commit is contained in:
jaypipes@gmail.com 2010-07-27 04:07:28 +00:00 committed by Tarmac
commit 0082ae2ac4

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