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

headers keys change from camel case to first letter upper case and rest lowercase #68

Open
orelHAnyvision opened this issue May 15, 2024 · 1 comment

Comments

@orelHAnyvision
Copy link

hi,

when using this code:

    const response = await awsClient.fetch(`${url}?${new URLSearchParams(queryString)}`, {
      ...options,
      ...parsedBodyObj,
      headers: { 'Content-Type': 'application/json', ...options?.headers },
    })

if i pass headers object like {testHeader:'123'} it changes to 'Testheader' on the request itself

how can I Avoid it?

@mhart
Copy link
Owner

mhart commented May 15, 2024

This library doesn't apply any uppercasing. Can you give a reproduction? Which environment are you in?

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