diff options
author | Ben Morrison <ben@gbmor.dev> | 2019-05-13 02:51:11 -0400 |
---|---|---|
committer | Ben Morrison <ben@gbmor.dev> | 2019-05-13 02:51:11 -0400 |
commit | d57295e38b8afd16982f3f6083122ab73f62ddf7 (patch) | |
tree | 80898ae519ffa913698e92c5f06b3ae2d8901201 /handlers.go | |
parent | d437b8911857199e53bd6cc449e17e0f3a583d0b (diff) | |
download | getwtxt-d57295e38b8afd16982f3f6083122ab73f62ddf7.tar.gz |
staticcheck warning fixed
Diffstat (limited to 'handlers.go')
-rw-r--r-- | handlers.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/handlers.go b/handlers.go index 9722788..01049b0 100644 --- a/handlers.go +++ b/handlers.go @@ -11,9 +11,9 @@ import ( ) // handles "/" -func indexHandler(w http.ResponseWriter, r *http.Request) { +func indexHandler(w http.ResponseWriter, _ *http.Request) { w.Header().Set("Content-Type", htmlutf8) - n, err := w.Write([]byte(getwtxt)) + n, err := w.Write([]byte("getwtxt v" + getwtxt)) if err != nil || n == 0 { log.Printf("Error writing to HTTP stream: %v\n", err) } |