aboutsummaryrefslogtreecommitdiff
path: root/handlers.go
diff options
context:
space:
mode:
Diffstat (limited to 'handlers.go')
-rw-r--r--handlers.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/handlers.go b/handlers.go
index 77fdeed..99ef718 100644
--- a/handlers.go
+++ b/handlers.go
@@ -12,6 +12,9 @@ import (
)
func Index(w http.ResponseWriter, r *http.Request) {
+ w.Header().Set("Content-Type", "text/plain; charset=UTF-8")
+ w.WriteHeader(http.StatusOK)
+
fmt.Fprintln(w, "Welcome!")
}