diff options
author | Jaime Martinez <jmartinez@gitlab.com> | 2022-01-31 02:01:51 +0300 |
---|---|---|
committer | feistel <6742251-feistel@users.noreply.gitlab.com> | 2022-01-31 02:01:51 +0300 |
commit | 60f5b3459ee09c1439f1ee31938e6ee4b88f5ec5 (patch) | |
tree | 60873156d357dbfdef06584a3d9e595caedaa777 /internal/vfs | |
parent | 4f047b8fdfa87cc80b7f5d33c03c97206d855765 (diff) |
chore: return early for head requests
Diffstat (limited to 'internal/vfs')
-rw-r--r-- | internal/vfs/serving/serving.go | 1 |
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 { |