Correct html error

This commit is contained in:
Eliot Whalan 2016-06-23 13:46:36 +10:00
parent cdf50c04e7
commit f2dc9be3bd
No known key found for this signature in database
GPG Key ID: C0A42175139840D6
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: