From 2724ebbd41bae0021ee8ca5bd04555b25daea58c Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Tue, 18 Jul 2017 16:16:52 +0100 Subject: [PATCH] Fix manifest and service worker 500 error Former-commit-id: 3349898a697415017f700057c22872214b34c05a [formerly 2cf9e28204960e7fc0d0f53f717623c9e342636a] [formerly 688f8e83ac92c85a1e151f485b2ead262c6263f8 [formerly 33ff14d42537b0fc62ec169a33f3b6cefd7bb26e]] Former-commit-id: 6805205a6844fc5be98b8592d2478aebbb19a92a [formerly 06de59aa7ab360da2a97d31d9d9dcb6c8a0c661a] Former-commit-id: 7fad0900cdbb2cc9395d9799d2e9c3e4217b2c01 --- http.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/http.go b/http.go index 4e41d245..0c422679 100644 --- a/http.go +++ b/http.go @@ -34,7 +34,7 @@ func serveHTTP(c *RequestContext, w http.ResponseWriter, r *http.Request) (int, if r.URL.Path == "/sw.js" { return renderFile( w, - c.FM.assets.MustString(r.URL.Path), + c.FM.assets.MustString("sw.js"), "application/javascript", c, ) @@ -80,7 +80,7 @@ func staticHandler(c *RequestContext, w http.ResponseWriter, r *http.Request) (i return renderFile( w, - c.FM.assets.MustString(r.URL.Path), + c.FM.assets.MustString("static/manifest.json"), "application/json", c, )