You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RequestOptions.headers takes every shape Headers takes, so its type is wider than a plain object. Code that reads it as one (options.headers?.['x-a']) must read it with new Headers() instead.
Features
accept defaultHeaders in every shape Headers takes (4c9bd59)
export HeadersLike, the type of headers and defaultHeaders (ac1e372)
send request headers given as a Headers instance, pairs or a Map (afa4cc2)
Bug fixes
check every header value before sending, and never retry a bad one (089b00e)
never show a header value Headers refuses, and refuse lone surrogates (f2cc87d)
refuse an API key with spaces, line breaks or other characters (1eb345b)
refuse Keep-Alive, Upgrade and Expect, and never retry a request fetch refuses (343d05d)
send every attempt with the header values that were checked (1670fc0)