diff options
author | Nikolay Edigaryev <edigaryev@gmail.com> | 2021-02-12 23:02:58 +0300 |
---|---|---|
committer | Nikolay Edigaryev <edigaryev@gmail.com> | 2021-02-12 23:55:12 +0300 |
commit | 2c31f383990c7288d63bec13a5a421e09a9386f0 (patch) | |
tree | c081632607dfbe83ad5eb12e4fcc81f8d93db0a7 /contrib/cirrus/logformatter.t | |
parent | 1d15ed708f2d7c6dab5ee90415acb156973ac1a4 (diff) | |
download | podman-2c31f383990c7288d63bec13a5a421e09a9386f0.tar.gz podman-2c31f383990c7288d63bec13a5a421e09a9386f0.tar.bz2 podman-2c31f383990c7288d63bec13a5a421e09a9386f0.zip |
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>
Diffstat (limited to 'contrib/cirrus/logformatter.t')
0 files changed, 0 insertions, 0 deletions