automation-tests/pkg/api/handlers
Nikolay Edigaryev 2c31f38399 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-12 23:55:12 +03:00
..
compat Merge pull request #9311 from deadNightTiger/fix-pull-dockerjava 2021-02-12 12:52:58 -05:00
libpod Enable whitespace linter 2021-02-11 23:01:56 +01:00
swagger swagger.go: Fix compilation error 2021-01-24 17:31:29 -05:00
utils Fix superfluous response.WriteHeader call in WaitContainerLibpod() 2021-02-12 23:55:12 +03: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