diff options
author | Nikolay Edigaryev <edigaryev@gmail.com> | 2021-02-12 23:02:58 +0300 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2021-02-18 11:00:04 -0500 |
commit | 0e3a3efee50aea4d811b3bacf5ffa9569f950f68 (patch) | |
tree | 081091e3f72d9746db4b7adbfd7342845055ff34 /.cirrus.yml | |
parent | 94ff3b583e6774f115e811d10ca75245e9957f4e (diff) | |
download | podman-0e3a3efee50aea4d811b3bacf5ffa9569f950f68.tar.gz podman-0e3a3efee50aea4d811b3bacf5ffa9569f950f68.tar.bz2 podman-0e3a3efee50aea4d811b3bacf5ffa9569f950f68.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 '.cirrus.yml')
0 files changed, 0 insertions, 0 deletions