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

Header keys for requests are being converted to lowercase #502

Closed
mdesousa opened this issue Feb 2, 2024 · 1 comment
Closed

Header keys for requests are being converted to lowercase #502

mdesousa opened this issue Feb 2, 2024 · 1 comment

Comments

@mdesousa
Copy link
Contributor

mdesousa commented Feb 2, 2024

Hi, thanks for this great library!

We had a question about the behavior for intercepted requests. We noticed that the header keys are being converted to lowercase, but we didn't make any changes to them in our interceptors. Is this something that is expected?
We are initializing the interceptor as shown below, and the request interceptor is just logging the request without touching it. On the receiving end, we are noticing that the header keys are now lowercase. Thanks.

  const interceptor = new BatchInterceptor({
    name: 'my-interceptor',
    interceptors: [
      new ClientRequestInterceptor(),
      new XMLHttpRequestInterceptor(),
      new FetchInterceptor(),
    ],
  });
  interceptor.apply();
@kettanaito
Copy link
Member

Hi, @mdesousa. Thanks for reporting this.

Could you please share a reproduction repository for this? At the very least, please include how you are making the actual request. I will gladly look into the issue once you do. Thanks.

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