Skip to content

Commit 31b1683

Browse files
committed
stream: fix Write ContentLength separator to add space
1 parent 644992f commit 31b1683

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stream.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ func (s *stream) Write(ctx context.Context, data []byte) (total int64, err error
132132

133133
s.outMu.Lock()
134134
var n int
135-
msg := HeaderContentLength + ":" + strconv.FormatInt(int64(len(data)), 10) + HeaderContentSeparator + HeaderContentSeparator
135+
msg := HeaderContentLength + ": " + strconv.FormatInt(int64(len(data)), 10) + HeaderContentSeparator + HeaderContentSeparator
136136
n, err = s.out.Write([]byte(msg))
137137
total = int64(n)
138138
if err == nil {

0 commit comments

Comments
 (0)