Closed cplmayo closed 4 months ago
Hi @cplmayo! Thanks for reporting the issue 🙏
I was able to reproduce and fix the problem in PR #18
Can you confirm that it solves the problem on your side also?
You can build from a branch doing:
CGO_ENABLED=1 xcaddy build --with github.com/mliezun/caddy-snake@asgi-lowercase-headers
It is working for me; thank you for pushing this so quickly.
Awesome! Thanks for testing it.
I'll merge and close the issue 👌
Doing some basic testing with fastapi today and was unable to get request headers using the documented way in fastapi.
When run using uvicorn I get the expected string however if executed through caddy-snake results in nulls. I tried multiple methods to extract the headers but always returned null.