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

Request headers with first character lowercase does not work #145

Open
ThieuNguyen opened this issue May 22, 2023 · 1 comment
Open

Request headers with first character lowercase does not work #145

ThieuNguyen opened this issue May 22, 2023 · 1 comment

Comments

@ThieuNguyen
Copy link

ThieuNguyen commented May 22, 2023

it return 404 Not found if the request headers is:

  headers:
    myheader:
      - "abc"

but it's okay if I change the request header to:

  headers:
    Myheader:
      - "abc"

P/s: work with My_header, doesn't work with My_Header

@jdietrich-tc
Copy link
Contributor

I ran into this as well. I did some digging and it is in the core go library. All headers go though
https://pkg.go.dev/net/textproto#CanonicalMIMEHeaderKey

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

No branches or pull requests

2 participants