From 34e85b00413ebf0eba1744252eb47b5cccd28cc1 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Wed, 2 Nov 2016 00:14:54 +0900 Subject: [PATCH] examples/_server: Don't return map files to make it easier to debug JS --- examples/_server/main.go | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/examples/_server/main.go b/examples/_server/main.go index acdb56920..68ea6a1bb 100644 --- a/examples/_server/main.go +++ b/examples/_server/main.go @@ -122,21 +122,7 @@ window.onload = function() { } func serveMainJSMap(w http.ResponseWriter, r *http.Request) { - name, err := appName(r) - if err != nil { - http.Error(w, err.Error(), http.StatusInternalServerError) - return - } - out, err := createJSIfNeeded(name) - if err != nil { - http.Error(w, err.Error(), http.StatusInternalServerError) - return - } - out += ".map" - if err := serveFile(w, out, "application/octet-stream"); err != nil { - http.Error(w, err.Error(), http.StatusInternalServerError) - return - } + http.NotFound(w, r) } func main() {