Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
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
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