Make body string type

This commit is contained in:
Eliot Whalan 2016-06-23 19:58:29 +10:00
parent 51862f92b5
commit 6028e4c804
No known key found for this signature in database
GPG Key ID: C0A42175139840D6
1 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ type Response struct {
type Page struct {
Title string
Body []byte
Body string
Link string
}
@ -231,7 +231,7 @@ func pasteHandler(w http.ResponseWriter, r *http.Request) {
link := ADDRESS + "/raw/" + paste
p := &Page{
Title: paste,
Body: []byte(s),
Body: s,
Link: link,
}
t, err := template.ParseFiles("assets/paste.html")