Correct html error

This commit is contained in:
Eliot Whalan 2016-06-23 13:46:36 +10:00
parent 11e59f31b6
commit a53c3b814b
1 changed files with 2 additions and 2 deletions

View File

@ -167,9 +167,9 @@ func saveHandler(w http.ResponseWriter, r *http.Request) {
case "html": case "html":
w.Header().Set("Content-Type", "text/html") w.Header().Set("Content-Type", "text/html")
io.WriteString(w, "<p>ID</p><p>"+b.ID+"</p><br/>") io.WriteString(w, "<p>ID</p><p>"+b.ID+"</p><br/>")
io.WriteString(w, "<p>hash</p><p>"+b.HASH+"</p><br/>") io.WriteString(w, "<p>hash</p><p>"+string(b.HASH)+"</p><br/>")
io.WriteString(w, "<p>URL</p><a href='"+b.URL+"'>"+b.URL+"</a><br/>") io.WriteString(w, "<p>URL</p><a href='"+b.URL+"'>"+b.URL+"</a><br/>")
io.WriteString(w, "<p>hash</p><p>"+b.SIZE+"</p><br/>") io.WriteString(w, "<p>hash</p><p>"+string(b.SIZE)+"</p><br/>")
io.WriteString(w, "<a href='"+b.URL+"/p/"+b.DELKEY+"'>"+b.DELKEY+"</a>") io.WriteString(w, "<a href='"+b.URL+"/p/"+b.DELKEY+"'>"+b.DELKEY+"</a>")
default: default: