forked from alemi/upub
fix: should be overkill but better safe??
This commit is contained in:
parent
4290011ce3
commit
702248348c
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ pub async fn view(
|
|||
) -> crate::Result<Response> {
|
||||
if let Some(accept) = headers.get("Accept") {
|
||||
if let Ok(accept) = accept.to_str() {
|
||||
if accept.contains("text/html") {
|
||||
if accept.contains("text/html") && !accept.contains("application/ld+json") {
|
||||
return Ok(Redirect::to("/web").into_response());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue