mirror of
https://github.com/syncthing/syncthing.git
synced 2026-10-19 09:52:11 -04:00
cmd/stupgrades: Cache should apply to HEAD as well as GET
This commit is contained in:
1 parent
8991ecf444
commit
cbec697e5f
1 file changed
+1
-1
@@ -79,7 +79,7 @@ func (r *responseRecorder) Header() http.Header {
|
||||
}
|
||||
|
||||
func (s *SinglePathCache) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
if r.Method != http.MethodGet {
|
||||
if r.Method != http.MethodGet && r.Method != http.MethodHead {
|
||||
s.next.ServeHTTP(w, r)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user