]> source.dussan.org Git - gitea.git/commit
Prevent superfluous response.WriteHeader (#15456)
authorzeripath <art27@cantab.net>
Wed, 14 Apr 2021 12:57:18 +0000 (13:57 +0100)
committerGitHub <noreply@github.com>
Wed, 14 Apr 2021 12:57:18 +0000 (14:57 +0200)
commit8e2a8efd84bf39c4dd38f7f4acdc2d7f499f610a
treeda6dc18b28bc1de4fb72822c2df6a136932b5522
parent55eb1745bd5427c6f84f77703a580d580ac379b3
Prevent superfluous response.WriteHeader (#15456)

This PR simply checks the status before writing the header.

Signed-off-by: Andrew Thornton <art27@cantab.net>
modules/context/response.go