Skip to content

Commit

Permalink
http api: send header even when r is not ready yet. fixes #3304
Browse files Browse the repository at this point in the history
  • Loading branch information
keks committed Oct 15, 2016
1 parent d5c716a commit 45aa730
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions commands/http/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,9 @@ func flushCopy(w io.Writer, r io.Reader) error {
return err
}
for {
// flush to send header when r is not ready yet
f.Flush()

n, err := r.Read(buf)
switch err {
case io.EOF:
Expand Down

1 comment on commit 45aa730

@GitCop
Copy link

@GitCop GitCop commented on 45aa730 Oct 15, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There were the following issues with your Pull Request

We ask for a few features in the commit message for Open Source licensing hygiene and commit message clarity.
git commit --amend can often help you quickly improve the commit message.
Guidelines and a script are available to help in the long run.
Your feedback on GitCop is welcome on this issue.


This message was auto-generated by https://gitcop.com

Please sign in to comment.