1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-28 00:31:55 +08:00

put comment back

This commit is contained in:
Jeromy Johnson
2015-07-28 08:44:35 -07:00
parent 2cad99d5ef
commit 98559d0e0b

View File

@ -175,6 +175,9 @@ func sendResponse(w http.ResponseWriter, req cmds.Request, res cmds.Response) {
}
if _, ok := res.Output().(io.Reader); ok {
// we don't set the Content-Type for streams, so that browsers can MIME-sniff the type themselves
// we set this header so clients have a way to know this is an output stream
// (not marshalled command output)
mime = ""
h.Set(streamHeader, "1")
}