net/http: Send 410 Gone client error with http.Error() #24530
First, thanks for all your work, it's amazing.
I'm trying to properly send a
I would like to do something like this
But after reading the
Is there a particular reason here to not just use
For now, I simply use:
w.WriteHeader(http.StatusGone) fmt.Fprint(w, "")
But it would be cleaner if I can just call the
The text was updated successfully, but these errors were encountered:
I think that would be considered a breaking change. Unit tests will start to fail and clients expecting a newline at the end will break.
If you are concerned about the