diff --git a/morty.go b/morty.go
index 1acabc4..9012cc9 100644
--- a/morty.go
+++ b/morty.go
@@ -109,13 +109,13 @@ var HTML_FORM_EXTENSION string = `
-
This is a proxified and sanitized view of the page,
visit original site.
+ This is a proxified and sanitized view of the page,
visit original site.
-
-
MortyProxy
-`))
+ MortyProxy
`))
if err != nil {
- ctx.SetStatusCode(404)
log.Println("error:", err)
ctx.Write([]byte("Error: "))
ctx.Write([]byte(html.EscapeString(err.Error())))
ctx.Write([]byte("
"))
- } else {
- ctx.SetStatusCode(200)
}
if p.Key == nil {
ctx.Write([]byte(`
- `))
+`))
} else {
ctx.Write([]byte(`Warning! This instance does not support direct URL opening.
`))
}
ctx.Write([]byte(`
-
-
+