diff --git a/assets/paste.html b/assets/paste.html index ad38ee7..44eaa1d 100644 --- a/assets/paste.html +++ b/assets/paste.html @@ -31,7 +31,7 @@
- {{printf "%s" .Body}} +
diff --git a/main.go b/main.go index ece7de4..4c48685 100644 --- a/main.go +++ b/main.go @@ -212,13 +212,7 @@ func getPaste(paste string, lang string) string { if err == sql.ErrNoRows { return "Error invalid paste" } else { - if lang == "" { - return html.UnescapeString(s) - } else { - lang, err := highlight(s, lang) - check(err) - return lang - } + return html.UnescapeString(s) } }