summary refs log tree commit diff stats
path: root/handlers.go
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-05-13 02:51:11 -0400
committerBen Morrison <ben@gbmor.dev>2019-05-13 02:51:11 -0400
commitd57295e38b8afd16982f3f6083122ab73f62ddf7 (patch)
tree80898ae519ffa913698e92c5f06b3ae2d8901201 /handlers.go
parentd437b8911857199e53bd6cc449e17e0f3a583d0b (diff)
downloadgetwtxt-d57295e38b8afd16982f3f6083122ab73f62ddf7.tar.gz
staticcheck warning fixed
Diffstat (limited to 'handlers.go')
-rw-r--r--handlers.go4
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)
 	}