This polyfill is an outdated implementation of the fetch standard.
See this change to the fetch standard in 2017: whatwg/fetch#476
To come back in compliance with the standard, the polyfill needs to stop lowercasing headers, regardless how headers are meant to be interpreted in RFC2616.
Browser implementations such as Chrome are already in compliance and do not lowercase headers for fetch calls.