Browse Source

fix #2736 - allow lists to be passed through to response_class init

pull/2737/head
Jesse Roberts 7 years ago committed by David Lord
parent
commit
3666a584fd
No known key found for this signature in database
GPG Key ID: 7A1C87E3F5BC42A8
  1. 2
      flask/app.py

2
flask/app.py

@ -1923,7 +1923,7 @@ class Flask(_PackageBoundObject):
status = headers = None
# unpack tuple returns
if isinstance(rv, (tuple, list)):
if isinstance(rv, tuple):
len_rv = len(rv)
# a 3-tuple is unpacked directly

Loading…
Cancel
Save