From 322d6d0b05409d78738f4e3056dd4bb6019d2347 Mon Sep 17 00:00:00 2001 From: Juan Batiz-Benet Date: Sat, 10 Jan 2015 21:12:45 -0800 Subject: [PATCH] cmds: use flushCopy instrad of copychunks @mappum would this work? --- commands/http/handler.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/commands/http/handler.go b/commands/http/handler.go index df952ff94..9291165c1 100644 --- a/commands/http/handler.go +++ b/commands/http/handler.go @@ -114,6 +114,9 @@ func (i Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { _, isChan := res.Output().(chan interface{}) streamChans, _, _ := req.Option("stream-channels").Bool() if isChan && streamChans { + // w.WriteString(transferEncodingHeader + ": chunked\r\n") + // w.Header().Set(channelHeader, "1") + // w.WriteHeader(200) err = copyChunks(applicationJson, w, out) if err != nil { log.Error(err)