aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--mpaste.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/mpaste.go b/mpaste.go
index ade4b8e..f105c2b 100644
--- a/mpaste.go
+++ b/mpaste.go
@@ -138,6 +138,7 @@ func syntax_highlighting(w http.ResponseWriter, r *http.Request) {
data, err := ioutil.ReadFile(file_prefix + remove_ext(r.URL.Path[1:]))
if err != nil {
+ w.Header().Set("Content-Type", "text/plain")
WRITE_HEADER(http.StatusNotFound, "404 page not found")
}