From 68fb6aeebc9a129850df47991504856e1a36a280 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")