diff options
author | Nathan Lasseter <Nathan Lasseter nathan@bytemark.co.uk> | 2015-09-25 19:36:19 +0100 |
---|---|---|
committer | Nathan Lasseter <Nathan Lasseter nathan@bytemark.co.uk> | 2015-09-25 19:36:19 +0100 |
commit | e13c16a261b71b7e590dda6c9ef826385b7b5b02 (patch) | |
tree | 57a75e5d44362b07da88d44f437983128e52a9ab /handlers.go | |
parent | d167a89638b4eecad852c66385737ef89354ec99 (diff) |
Made config variable.
Diffstat (limited to 'handlers.go')
-rw-r--r-- | handlers.go | 3 |
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!") } |