don't provide request headers as response headers in server

This commit is contained in:
Konstantinos Koukopoulos 2014-05-19 16:16:50 +03:00
parent 713815f5c5
commit 2b186511e8

View File

@ -64,8 +64,7 @@ class convert_flask_to_httpretty_response(object):
return "{0}.{1}".format(outer, self.callback.__name__)
def __call__(self, args=None, **kwargs):
headers = dict(request.headers)
result = self.callback(request, request.url, headers)
result = self.callback(request, request.url, {})
# result is a status, headers, response tuple
status, headers, response = result
return response, status, headers