]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commit
🐛 Fix duplicated headers set by indirect dependencies (#1386)
authorobataku <19821199+obataku@users.noreply.github.com>
Sat, 13 Jun 2020 12:44:51 +0000 (08:44 -0400)
committerGitHub <noreply@github.com>
Sat, 13 Jun 2020 12:44:51 +0000 (14:44 +0200)
commit7ce756f9ddd6fef6f51af2129f2a9e4c93df7166
tree850f517bca2dcef41e23b3fb50a286070c0540d1
parentc0b1fddb31fcf8d57c61e428a9d13608da9523bb
🐛 Fix duplicated headers set by indirect dependencies (#1386)

* Added test for repeating cookies in response headers

* update `response` headers, status code to match `sub_response` in `solve_dependencies` only if necessary; fix formatting of scottsmith2gmail's test

* restore code coverage, remove dead code from `solve_dependencies`

Co-authored-by: Scott Smith <scott.smith.2@gmail.com>
fastapi/dependencies/utils.py
tests/test_repeated_cookie_headers.py [new file with mode: 0644]