change make_response to use headers.update

This commit is contained in:
Christopher Nguyen 2020-07-11 15:18:37 -04:00 committed by David Lord
parent 6f2fdc5ac4
commit 7b09a0904c
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
3 changed files with 15 additions and 7 deletions

View file

@ -2045,7 +2045,7 @@ class Flask(_PackageBoundObject):
# extend existing headers with provided headers
if headers:
rv.headers.extend(headers)
rv.headers.update(headers)
return rv