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

Open
mdesousa opened this issue Feb 2, 2024 · 0 comments
Open

Header keys for requests are being converted to lowercase #502

mdesousa opened this issue Feb 2, 2024 · 0 comments

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();
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

1 participant