it's concurrent streams and should be synchronized before writing to response. Otherwise there will be race in writing to *bufio.Writer in net/http.response. Signed-off-by: Alexander Morozov <lk4d4@docker.com> Upstream-commit: 3eb0a80f29629a1c022dc914437b176271d476fc Component: engine