net/http: invalid header field name "js.fetch:mode" #34157
Closed
Labels
Comments
An executable that produces the can be produced with |
Hi @rudolph9, you can use various mechanisms like build tags, runtime.GOOS and possibly other ways. Unlike other projects, we do not use the issue tracker for questions such as these. It is only used for bugs and feature proposals. I will close this issue, but please feel free to ask it in any of these forums below:
Thanks |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Attempted add the header "js.fetch:mode" so my code will work correctly in a wasm target.
However, now the amd64 target through the error:
net/http: invalid header field name "js.fetch:mode"
What did you expect to see?
it to just ignore the header
What did you see instead?
an error
Other comments
What is the best practice for handling code that is intended to support multiple build targets?
The text was updated successfully, but these errors were encountered: