Skip to content

Commit 7fed846

Browse files
authored
Merge pull request #7 from ViViDboarder/update-headers
Update headers
2 parents c7b4464 + 726172d commit 7fed846

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

py_nextbus/client.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,19 +65,17 @@ def __init__(
6565
self._session: requests.Session = requests.Session()
6666
self._session.headers.update(
6767
{
68-
"User-Agent": "PyNextBus",
6968
"Accept": "application/json",
70-
"Accept-Language": "en-US,en;q=0.5",
7169
"Accept-Encoding": "gzip, deflate, br, zstd",
70+
"Accept-Language": "en-US,en;q=0.5",
7271
"Compress": "true",
72+
"Connection": "keep-alive",
7373
"DNT": "1",
74+
"Origin": "https://rider.umoiq.com",
75+
"Referer": "https://rider.umoiq.com/",
7476
"Sec-Fetch-Dest": "empty",
7577
"Sec-Fetch-Mode": "cors",
76-
"Connection": "keep-alive",
77-
# Additional headers used in browser
78-
# "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:138.0) Gecko/20100101 Firefox/138.0",
79-
# "Referer": "https://rider.umoiq.com/",
80-
# "Origin": "https://rider.umoiq.com",
78+
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:138.0) Gecko/20100101 Firefox/138.0",
8179
}
8280
)
8381

0 commit comments

Comments
 (0)