From 3f0dfb00602ee06e7464eeec5e5534e1bc72c19d Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Fri, 30 Dec 2011 13:06:54 -0500 Subject: [PATCH] Serve indexHandler as text/html --- src/server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/server.go b/src/server.go index 2b6f500..5715610 100644 --- a/src/server.go +++ b/src/server.go @@ -34,6 +34,7 @@ func indexHandler(response http.ResponseWriter, request *http.Request) { fmt.Print("Error opening file ", err.String(), "\n") return } + response.Header().Set("Content-Type", "text/html") io.Copy(response, fd) } -- 2.43.5