add: ability to edit community title through ui
add: finish README
This commit is contained in:
parent
7c9d5de535
commit
53cf75b53c
11 changed files with 203 additions and 55 deletions
|
@ -66,7 +66,7 @@ pub async fn proxy_request(
|
|||
|
||||
if let Some(ct) = stream.headers().get("Content-Type") {
|
||||
let ct = ct.to_str().unwrap();
|
||||
let bad_ct = vec!["text/html", "text/plain"];
|
||||
let bad_ct = ["text/html", "text/plain"];
|
||||
if (!ct.starts_with("image/") && !ct.starts_with("font/")) | bad_ct.contains(&ct) {
|
||||
// if we got html, return default banner (likely an error page)
|
||||
return (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue