Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
net/http: ServeContent should support dynamic files/Chunked transfer #20063
What version of Go are you using (
We support Chunked encoding already.
ServeContent assumes the file is not actively growing.
If it's actively growing, just set the headers and stream the content to the ResponseWriter. It works.
For questions about Go, see https://golang.org/wiki/Questions.