]> source.dussan.org Git - gitea.git/commit
Stop calling WriteHeader in Write (#15862)
authorzeripath <art27@cantab.net>
Fri, 14 May 2021 08:05:50 +0000 (09:05 +0100)
committerGitHub <noreply@github.com>
Fri, 14 May 2021 08:05:50 +0000 (11:05 +0300)
commit2d87a84709cb0ee89b2fbafe65718bd61d9effef
tree1ce483afb63ba5e1d441631a6ef96777c1d4b10c
parent05fb1f61d56c29f5637dc7fba218e92a24145f92
Stop calling WriteHeader in Write (#15862)

Fixes http: superfluous response.WriteHeader call from code.gitea.io/gitea/modules/context.(*Response).WriteHeader (response.go:67)

* Looking again we don't need this writeHeader as all of our downstream
implementations will always do it for us

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Lauris BH <lauris@nix.lv>
modules/context/response.go