From 10da41b71d313f13d8af2e51e24c4f0b434146e0 Mon Sep 17 00:00:00 2001 From: Eliot Whalan Date: Thu, 23 Jun 2016 13:51:07 +1000 Subject: [PATCH] remove pointless information in html response --- main.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/main.go b/main.go index 0530e76..6caa5a3 100644 --- a/main.go +++ b/main.go @@ -166,11 +166,8 @@ func saveHandler(w http.ResponseWriter, r *http.Request) { w.Write(x) case "html": w.Header().Set("Content-Type", "text/html") - io.WriteString(w, "

ID: "+b.ID+"


") - io.WriteString(w, "

Hash"+string(b.HASH)+"


") - io.WriteString(w, "

URL"+b.URL+"


") - io.WriteString(w, "

Size"+string(b.SIZE)+"


") - io.WriteString(w, "

Delete Key"+b.DELKEY+"

") + io.WriteString(w, "

URL: "+b.URL+"


") + io.WriteString(w, "

Delete Key: "+b.DELKEY+"

") default: io.WriteString(w, b.URL+"\n")