Correct html error
This commit is contained in:
parent
11e59f31b6
commit
a53c3b814b
4
main.go
4
main.go
|
@ -167,9 +167,9 @@ func saveHandler(w http.ResponseWriter, r *http.Request) {
|
|||
case "html":
|
||||
w.Header().Set("Content-Type", "text/html")
|
||||
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>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>")
|
||||
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue