From fad2e030d47c569eccc289a760931596b8e60de8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ken-H=C3=A5vard=20Lieng?= Date: Fri, 1 Feb 2019 06:39:38 +0100 Subject: [PATCH] Fix h2 push hash check --- server/serve_files.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/serve_files.go b/server/serve_files.go index af02634d..e29c4880 100644 --- a/server/serve_files.go +++ b/server/serve_files.go @@ -278,10 +278,10 @@ func (d *Dispatch) serveIndex(w http.ResponseWriter, r *http.Request) { for _, asset := range h2PushAssets { if len(cookie.Value) >= i+len(asset.hash) && asset.hash != cookie.Value[i:i+len(asset.hash)] { - i += len(asset.hash) pusher.Push(asset.path, options) pushed = true } + i += len(asset.hash) } if pushed {