mirror of
https://github.com/amigan/rustypaste-pretty.git
synced 2024-11-21 11:59:48 -05:00
Set MIME type when pretty
This commit is contained in:
parent
7ec53f3806
commit
773932dd85
1 changed files with 1 additions and 1 deletions
|
@ -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)?
|
||||
|
|
Loading…
Reference in a new issue