Skip to content

Commit

Permalink
Merge pull request #877 from Rawn/flush-headers-on-wait-stream
Browse files Browse the repository at this point in the history
server: Flush headers when using wait=true and stream=true
  • Loading branch information
philips committed Jul 8, 2014
2 parents a8d966d + 2338481 commit 43791a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/v2/get_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ func handleWatch(key string, recursive, stream bool, waitIndex string, w http.Re
closeChan := cn.CloseNotify()

writeHeaders(w, s)
w.(http.Flusher).Flush()

if stream {
// watcher hub will not help to remove stream watcher
Expand Down

0 comments on commit 43791a2

Please sign in to comment.