Skip to content

Commit

Permalink
Also fix User-Agent string on MacOS (Darwin) (#394)
Browse files Browse the repository at this point in the history
Fixes #393

Co-authored-by: Patrick Decat <[email protected]>
  • Loading branch information
Leglaw and pdecat authored Jun 27, 2023
1 parent 04cd952 commit 8a0ab19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws_adfs/_duo_universal_prompt_authenticator.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
_headers = {
"Accept-Language": "en",
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64) like Gecko"
if platform.system() == "Linux"
if platform.system() in ("Linux", "Darwin")
else "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko",
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
"Accept": "text/plain, */*; q=0.01",
Expand Down

0 comments on commit 8a0ab19

Please sign in to comment.