mirror of
https://github.com/kennethreitz/httpbin.git
synced 2026-06-05 14:50:17 +00:00
Fix python3 tests
`headers.lists()` returns a generator, but `jsonify` can't handle generators. Make it a list explicitly.
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user