diff --git a/src/server.rs b/src/server.rs index 3f99765..874bd6d 100644 --- a/src/server.rs +++ b/src/server.rs @@ -96,7 +96,7 @@ async fn serve( let overrides = &config.paste.highlight_override; values.insert("type", if overrides.contains_key(&mime_str) { overrides[&mime_str].as_str() } else { "" }); let rendered = tmpl.fill_in(&values); - return Ok(HttpResponse::Ok().body(rendered.to_string())) + return Ok(HttpResponse::Ok().content_type(mime::TEXT_HTML).body(rendered.to_string())) } let response = NamedFile::open(&path)?