Skip to content

AttributeError exception when raising HTTPException using headers parameter #8562

Closed Answered by tiangolo
DorAbu asked this question in Questions
Discussion options

You must be logged in to vote

Indeed! This is wrong. The type annotation should define that it expects a str as value. I just fixed it in #9648

The fix will be available in the next version, released in a few hours (the current version is 0.96.0).

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@DorAbu
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by tiangolo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Question or problem
3 participants
Converted from issue

This discussion was converted from issue #4451 on February 28, 2023 16:11.