summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cnhttp.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cnhttp.go b/cnhttp.go
index ab251af..3e3f431 100644
--- a/cnhttp.go
+++ b/cnhttp.go
@@ -199,6 +199,9 @@ func (srv *server) cnpToWeb(w http.ResponseWriter, r *http.Request, req *cnp.Req
if !raw && resp.Type() == "text/cnm" {
srv.cnpCNMToHTML(w, r, req, resp)
} else {
+ if resp.Type() == "text/cnm" {
+ w.Header().Set("Content-Type", "text/plain")
+ }
io.Copy(w, resp.Body)
}
case cnp.IntentNotModified: