Repository navigation
Uvicorn seemingly mixes up headers of different responses. #1876
Unanswered
re-masashi
asked this question in
Potential Issue
Replies: 2 comments 3 replies
|
What are the headers that are mixed up? |
3 replies
|
Can I kindly get any updates related to this? I checked the source code of willpyre and it looks fine to me. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I was creating an example using an ASGI framework. The app was serving static assets on a separate route and the login page and other HTML responses on various different routes.
Sometimes, when the page is reloaded multiple times, the HTML files are served with content type CSS (which was specified in the response to the previous request).
I tried checking for any logical error in the source code of my app as well as the framework. There seem to be none that can cause this issue.
To be sure that this is caused by Uvicorn, I tried reproducing the error with Hypercorn. The app works fine using Hypercorn.
Steps to reproduce
Then visiting the page at http://127.0.0.0:8000/ and reloading multiple times.
Machine specific info
OS: Arch Linux x86_64
Host: 2539BD3 ThinkPad T410
Kernel: 6.1.12-arch1-1
All reactions