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

This commit is contained in:
Jesse Roberts 2018-04-27 11:05:37 -06:00 committed by David Lord
parent 9394c389bf
commit 3666a584fd
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8

View file

@ -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