Skip to content

Commit 80ad00d

Browse files
authored
Merge pull request #25 from VamatoHD/main
Fix header compression & Roblox case sensitivity
2 parents b814db2 + 9330b6a commit 80ad00d

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

user_scanner/gaming/chess_com.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def validate_chess_com(user):
88
headers = {
99
'User-Agent': "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36",
1010
'Accept': "application/json, text/plain, */*",
11-
'Accept-Encoding': "gzip, deflate, br",
11+
'Accept-Encoding': "identity",
1212
'Accept-Language': "en-US,en;q=0.9",
1313
}
1414

user_scanner/gaming/monkeytype.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def validate_monkeytype(user: str) -> int:
1313
"Chrome/128.0.0.0 Safari/537.36"
1414
),
1515
"Accept": "application/json, text/plain, */*",
16-
"Accept-Encoding": "gzip, deflate, br",
16+
"Accept-Encoding": "identity",
1717
"Accept-Language": "en-US,en;q=0.9",
1818
}
1919

user_scanner/gaming/roblox.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ def validate_roblox(user):
2626
return 2
2727

2828
for entry in search_results["data"]: # iterates through the entries in the search results
29-
if entry["name"] == user: # if a username matches the user
29+
# .lower() so casing from the API doesn't matter
30+
if entry["name"].lower() == user.lower(): # if a username matches the user
3031
return 0
3132
return 1
3233

0 commit comments

Comments
 (0)