mirror of
https://github.com/syncthing/syncthing.git
synced 2026-04-04 22:53:42 -04:00
cmd/stupgrades: Cache should apply to HEAD as well as GET
This commit is contained in:
@@ -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