aws4fetch icon indicating copy to clipboard operation
aws4fetch copied to clipboard

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

Open orelHAnyvision opened this issue 9 months ago • 1 comments

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?

orelHAnyvision avatar May 15 '24 09:05 orelHAnyvision