Skip to content

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

Description

@orelHAnyvision

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions