mirror of
https://github.com/redlib-org/redlib.git
synced 2025-04-03 04:57:38 +03:00
Update fix for submitted route
This commit is contained in:
parent
6102b08894
commit
1715b36ae9
1 changed files with 3 additions and 2 deletions
|
@ -181,8 +181,9 @@ fn request(method: &'static Method, path: String, redirect: bool, quarantine: bo
|
|||
)
|
||||
};
|
||||
|
||||
// Check if multi sub requested. If so, replace "Android" with a tricky word.
|
||||
if path.contains('+') {
|
||||
// Check if multi sub requested, or if submitted was requested. If so, replace "Android" with a tricky word.
|
||||
// Issues: #78/#115, #116
|
||||
if path.contains('+') || path.contains("/submitted") {
|
||||
user_agent = user_agent.replace("Android", "Andr\u{200B}oid");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue