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.
将传输编码标头设置为标识:
w.Header().Set("Transfer-Encoding", "identity")
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.