Update fix for submitted route

This commit is contained in:
Matthew Esposito 2024-05-29 20:02:56 -04:00
parent 6102b08894
commit 1715b36ae9

View File

@ -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");
}