Repeated headers are not correctly sent when using a client #1743
Unanswered
allenhumphreys
asked this question in
Potential Issue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When using
AsyncClient
and attempting to pass repeated headers using the mulit-dict, the repeated header values are not retained.The above code will fail with
AssertionError: assert ['2'] == ['1', '2']
.The problem seems tp stem from the implementation of
Headers.update
which will result in only the last value for a header key being applied.Beta Was this translation helpful? Give feedback.
All reactions