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:
2025-07-09 01:59:18 +08:00
parent af3c7503a4
commit 0eaf76dd6a

View File

@@ -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: