Skip to content
This repository was archived by the owner on Mar 11, 2022. It is now read-only.

Commit 31caaae

Browse files
authored
Update register.py
1 parent 16bbb8e commit 31caaae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Basic/register.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ def register(server, nick, password, lan, countryId):
1616
agent = "Dalvik/2.1.0 (Linux; U; Android 5.1.1; AFTM Build/LVY48F) CTV"
1717
headers = {"User-Agent": agent, "Referer": "https://e-sim.org"}
1818
session = requests.session()
19-
session.get(URL + "index.html?lan=" + lan.replace(f"{URL}lan.", ""), headers=headers)
19+
session.headers.update(headers)
20+
session.get(URL + "index.html?lan=" + lan.replace(f"{URL}lan.", ""))
2021
login_params = {"preview": "USA_MODERN", "login": nick, "password": password,
2122
"mail": f'{nick.replace(" ", "")}@gmail.com', "countryId": countryId, "checkHuman": "Human"}
2223
registration = session.post(URL + "registration.html", data=login_params)

0 commit comments

Comments
 (0)