Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Bugfix for duplicated headers from indirect dependencies#1386

Merged
tiangolo merged 3 commits into
fastapi:masterfrom
obataku:bugfix-duplicated-cookies
Jun 13, 2020
Merged

Bugfix for duplicated headers from indirect dependencies#1386
tiangolo merged 3 commits into
fastapi:masterfrom
obataku:bugfix-duplicated-cookies

Conversation

@obataku

@obataku obataku commented May 7, 2020

Copy link
Copy Markdown
Contributor

addresses the issue discovered by @scottsmith2gmail in #1385 and adds the test he proposed

It seems every additional layer of redirection doubles the cookies in the header.

scottsmith2gmail and others added 2 commits May 6, 2020 16:40
@codecov

codecov Bot commented May 7, 2020

Copy link
Copy Markdown

Codecov Report

Merging #1386 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master     #1386   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          226       227    +1     
  Lines         6785      6800   +15     
=========================================
+ Hits          6785      6800   +15     
Impacted Files Coverage Δ
fastapi/dependencies/utils.py 100.00% <ø> (ø)
tests/test_repeated_cookie_headers.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4e77737...3a34ea1. Read the comment docs.

@tiangolo tiangolo merged commit 7ce756f into fastapi:master Jun 13, 2020
@tiangolo

Copy link
Copy Markdown
Member

Awesome! Great job debugging that 🐛 🕵️ 🔍

And thanks @scottsmith2gmail for discovering the problem and writing the tests ✔️ 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants