mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-30 09:59:13 +08:00
put comment back
This commit is contained in:
@ -175,6 +175,9 @@ func sendResponse(w http.ResponseWriter, req cmds.Request, res cmds.Response) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if _, ok := res.Output().(io.Reader); ok {
|
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 = ""
|
mime = ""
|
||||||
h.Set(streamHeader, "1")
|
h.Set(streamHeader, "1")
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user