cmds: use flushCopy instrad of copychunks
@mappum would this work?
Juan Batiz-Benet committed
Jan 10, 2015 at 21:12 UTC
322d6d0b05409d78738f4e3056dd4bb6019d2347
1 file changed
+3
commands/http/handler.go
+3
@@ -114,6 +114,9 @@ func (i Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
114
_, isChan := res.Output().(chan interface{})
115
streamChans, _, _ := req.Option("stream-channels").Bool()
116
if isChan && streamChans {
117
+ // w.WriteString(transferEncodingHeader + ": chunked\r\n")
118
+ // w.Header().Set(channelHeader, "1")
119
+ // w.WriteHeader(200)
120
err = copyChunks(applicationJson, w, out)
121
if err != nil {
122
log.Error(err)