Skip to content

Commit

Permalink
Update fix for submitted route
Browse files Browse the repository at this point in the history
  • Loading branch information
sigaloid committed May 30, 2024
1 parent 6102b08 commit 1715b36
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

Expand Down

0 comments on commit 1715b36

Please sign in to comment.