5082146ae9
Since Content-Type is not explicitly set, golang sniffs the responses and attempts a guess. With announce responses, this usually means it guesses application/octet-stream. According to the godoc at https://golang.org/pkg/net/http/#ResponseWriter // If WriteHeader has not yet been called, Write calls // WriteHeader(http.StatusOK) before writing the data. If the Header // does not contain a Content-Type line, Write adds a Content-Type set // to the result of passing the initial 512 bytes of written data to // DetectContentType. Additionally, if the total size of all written // data is under a few KB and there are no Flush calls, the // Content-Length header is added automatically. |
||
---|---|---|
.. | ||
http | ||
udp | ||
frontend.go |