From 0dc10a1d823107547874839be068a12d47dccf35 Mon Sep 17 00:00:00 2001 From: Suraj Patil Date: Thu, 7 Jan 2016 20:25:56 +0530 Subject: [PATCH] Update views.go --- views/views.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/views.go b/views/views.go index a0a0802..1cca6d7 100644 --- a/views/views.go +++ b/views/views.go @@ -269,7 +269,7 @@ func ServeStaticFunc(w http.ResponseWriter, r *http.Request) { contentType = "text/css" } else if strings.HasSuffix(path, ".png") { contentType = "image/png" - } else if strings.HasSuffix(path, ".png") { + } else if strings.HasSuffix(path, ".js") { contentType = "application/javascript" } else { contentType = "plain/text"