Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix for duplicated headers from indirect dependencies #1386

Merged
merged 3 commits into from
Jun 13, 2020

Conversation

obataku
Copy link
Contributor

@obataku obataku commented May 7, 2020

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
Copy link

codecov bot commented May 7, 2020

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
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.

None yet

3 participants