Skip to content

Commit 6ae9b15

Browse files
committed
fix: fix issue that csrf token cannot be retrieved when directly land on problem list page
1 parent 70bfc16 commit 6ae9b15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/handler.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def get_question_of_today():
2020
client = requests.session()
2121

2222
# Visit leetcode webpage to retrieve a CSRF token first
23-
client.get(LEETCODE_ALL_PROBLEM_URL)
23+
client.get(LEETCODE_DOMAIN)
2424

2525
if 'csrftoken' in client.cookies:
2626
csrftoken = client.cookies['csrftoken']

0 commit comments

Comments
 (0)