Reputation: 97038
Is there a way to disable chunked transfer encoding in go without using a content-length?
It's for Server-Sent Events which can't have either.
Upvotes: 3
Views: 6439
Reputation: 121129
Set the transfer encoding header to identity:
w.Header().Set("Transfer-Encoding", "identity")
Upvotes: 4