change make_response to use headers.update
This commit is contained in:
parent
6f2fdc5ac4
commit
7b09a0904c
3 changed files with 15 additions and 7 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue