Skip to content

Commit

Permalink
runtime: fix chunk encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
emcfarlane committed Oct 25, 2017
1 parent b2423da commit 5230ad8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func ForwardResponseStream(ctx context.Context, mux *ServeMux, marshaler Marshal
grpclog.Printf("Failed to marshal response chunk: %v", err)
return
}
if _, err = fmt.Fprintf(w, "%s\n", buf); err != nil {
if _, err = w.Wirte(buf); err != nil {
grpclog.Printf("Failed to send response chunk: %v", err)
return
}
Expand Down

0 comments on commit 5230ad8

Please sign in to comment.