Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime Martinez <jmartinez@gitlab.com>2022-01-31 02:01:51 +0300
committerfeistel <6742251-feistel@users.noreply.gitlab.com>2022-01-31 02:01:51 +0300
commit60f5b3459ee09c1439f1ee31938e6ee4b88f5ec5 (patch)
tree60873156d357dbfdef06584a3d9e595caedaa777 /internal/vfs
parent4f047b8fdfa87cc80b7f5d33c03c97206d855765 (diff)
chore: return early for head requests
Diffstat (limited to 'internal/vfs')
-rw-r--r--internal/vfs/serving/serving.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/vfs/serving/serving.go b/internal/vfs/serving/serving.go
index 8f86d476..57b0228f 100644
--- a/internal/vfs/serving/serving.go
+++ b/internal/vfs/serving/serving.go
@@ -49,6 +49,7 @@ func serveContent(w http.ResponseWriter, r *http.Request, modtime time.Time, con
if r.Method == http.MethodHead {
w.WriteHeader(code)
+ return
}
if r.Method != http.MethodHead {