mirror of
https://github.com/HChaZZY/NodeSeek-Signin.git
synced 2025-12-06 11:33:49 +08:00
fix: Add Content-Type header to request
The NodeSeek check-in API has been updated to require a 'Content-Type' header on POST requests. This change adds the 'Content-Type: application/json' header to fix the resulting check-in failures.
This commit is contained in:
@@ -225,6 +225,7 @@ def sign(ns_cookie, ns_random):
|
|||||||
'User-Agent': "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36 Edg/125.0.0.0",
|
'User-Agent': "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36 Edg/125.0.0.0",
|
||||||
'origin': "https://www.nodeseek.com",
|
'origin': "https://www.nodeseek.com",
|
||||||
'referer': "https://www.nodeseek.com/board",
|
'referer': "https://www.nodeseek.com/board",
|
||||||
|
'Content-Type': 'application/json',
|
||||||
'Cookie': ns_cookie
|
'Cookie': ns_cookie
|
||||||
}
|
}
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user