@cryptotaxi247 / kubo / commits / 98559d0e0

put comment back

Jeromy Johnson committed Jul 28, 2015 at 08:44 UTC 98559d0e0bddd62d4c478df0e67e34e5dbef9c4e
1 file changed +3
commands/http/handler.go
+3
@@ -175,6 +175,9 @@ func sendResponse(w http.ResponseWriter, req cmds.Request, res cmds.Response) {
175 }
176
177 if _, ok := res.Output().(io.Reader); ok {
178 + // we don't set the Content-Type for streams, so that browsers can MIME-sniff the type themselves
179 + // we set this header so clients have a way to know this is an output stream
180 + // (not marshalled command output)
181 mime = ""
182 h.Set(streamHeader, "1")
183 }