Fix python3 tests

`headers.lists()` returns a generator, but `jsonify` can't handle generators.
Make it a list explicitly.
This commit is contained in:
Sjoerd Langkemper
2016-07-20 13:15:30 +02:00
parent 8cfa026d44
commit f4a937e2cf
+1 -1
View File
@@ -312,7 +312,7 @@ def view_status_code(codes):
def response_headers():
"""Returns a set of response headers from the query string """
headers = MultiDict(request.args.items(multi=True))
response = jsonify(headers.lists())
response = jsonify(list(headers.lists()))
while True:
original_data = response.data