diff --git a/commands/http/handler.go b/commands/http/handler.go index 774c5ca..84970df 100644 --- a/commands/http/handler.go +++ b/commands/http/handler.go @@ -228,13 +228,14 @@ func copyChunks(contentType string, w http.ResponseWriter, out io.Reader) error n, err := out.Read(buf) if n > 0 { - length := fmt.Sprintf("%x\r\n", n) + length := fmt.Sprintf("%x\r\n", n+1) writer.WriteString(length) _, err := writer.Write(buf[0:n]) if err != nil { return err } + writer.WriteByte('\n') writer.WriteString("\r\n") writer.Flush()