Browse Source

Merge pull request #2737 from jesseops/master

fix #2736 - remove explicit check for list as a return value in make_response
pull/2738/head
David Lord 7 years ago committed by GitHub
parent
commit
d4fb9d564e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      flask/app.py

2
flask/app.py

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

Loading…
Cancel
Save