mirror of
https://github.com/docker/cli.git
synced 2026-08-30 18:14:19 -05:00
c45875750d04b5793bc32545bb2e1198a1c2a8d5
By adding a (*WriteFlusher).Close, we limit the Write calls to possibly deallocated http response buffers to the lifetime of an http request. Typically, this is seen as a very confusing panic, the cause is usually a situation where an http.ResponseWriter is held after request completion. We avoid the panic by disallowing further writes to the response writer after the request is completed. Signed-off-by: Stephen J Day <stephen.day@docker.com> Upstream-commit: ec2289b2d9ac79fd5e0f69f56f023dfe8ee78bf8 Component: engine
Languages
Go
92.3%
Shell
5.4%
Dockerfile
1.1%
Go-Checksums
0.7%
Makefile
0.3%
Other
0.2%