spiegel_podman/pkg/api/handlers
Nikolay Edigaryev 0e3a3efee5 Fix superfluous response.WriteHeader call in WaitContainerLibpod()
When the query decoding fails at the beginning of WaitContainerLibpod(),
the Error() sets the header but doesn't returns after that.

This causes the execution flow to reach the WriteResponse() at the end
of WaitContainerLibpod(), which attempts to set another header, thus
causing the following error:

http: superfluous response.WriteHeader call from github.com/containers/podman/pkg/api/handlers/utils.WriteResponse (handler.go:124)

[NO TESTS NEEDED]

Signed-off-by: Nikolay Edigaryev <edigaryev@gmail.com>
2021-02-18 11:00:04 -05:00
..
compat images/create: always pull image 2021-02-18 10:40:40 -05:00
libpod Implement Docker wait conditions 2021-02-08 14:29:24 -05:00
swagger Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
utils Fix superfluous response.WriteHeader call in WaitContainerLibpod() 2021-02-18 11:00:04 -05:00
decoder.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
types.go More docker compat API fixes 2020-12-04 15:58:46 +01:00