Quick patch:
- Changed 302 responses to 200 where needed - Fixed a bug where expiring pastas cause MicroBin to crahs - Fixed a bug where water.css didn't have the correct MIME type - Fixed a bug where missing doctype declaration caused styling issues in Firefox
This commit is contained in:
parent
35d4df2cb8
commit
be3ac27920
10 changed files with 32 additions and 25 deletions
|
@ -31,7 +31,7 @@ pub async fn get_edit(data: web::Data<AppState>, id: web::Path<String>) -> HttpR
|
|||
.append_header(("Location", "/"))
|
||||
.finish();
|
||||
}
|
||||
return HttpResponse::Found().content_type("text/html").body(
|
||||
return HttpResponse::Ok().content_type("text/html").body(
|
||||
EditTemplate {
|
||||
pasta: &pasta,
|
||||
args: &ARGS,
|
||||
|
@ -42,7 +42,7 @@ pub async fn get_edit(data: web::Data<AppState>, id: web::Path<String>) -> HttpR
|
|||
}
|
||||
}
|
||||
|
||||
HttpResponse::Found()
|
||||
HttpResponse::Ok()
|
||||
.content_type("text/html")
|
||||
.body(ErrorTemplate { args: &ARGS }.render().unwrap())
|
||||
}
|
||||
|
@ -93,7 +93,7 @@ pub async fn post_edit(
|
|||
}
|
||||
}
|
||||
|
||||
Ok(HttpResponse::Found()
|
||||
Ok(HttpResponse::Ok()
|
||||
.content_type("text/html")
|
||||
.body(ErrorTemplate { args: &ARGS }.render().unwrap()))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue