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
It seems that the headers field of the Request struct remains unused when compiling to WASM. From what I can tell this is because they are set via a getter here and therefore remain unused.
From a quick glance at the web-sys docs the correct way to set headers is by passing a Headers struct to the RequestInit instead. I might be able to test this and make a PR later this week.
The text was updated successfully, but these errors were encountered:
It seems that the headers field of the
Request
struct remains unused when compiling to WASM. From what I can tell this is because they are set via a getter here and therefore remain unused.From a quick glance at the web-sys docs the correct way to set headers is by passing a
Headers
struct to theRequestInit
instead. I might be able to test this and make a PR later this week.The text was updated successfully, but these errors were encountered: