Skip to content

Commit 5b60fbe

Browse files
committed
fix wrong solution.discuss header
1 parent c3e45d8 commit 5b60fbe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/plugins/solution.discuss.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ function setupHeaders(opts, user) {
2424
opts.headers['X-Requested-With'] = 'XMLHttpRequest';
2525

2626
opts.headers['User-Agent'] = 'Mozilla/5.0 (X11; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0';
27-
opts.headers['Referer'] = 'https://leetcode.cn';
28-
opts.headers['Origin'] = 'https://leetcode.cn/';
29-
opts.headers['Host'] = 'leetcode.cn';
27+
opts.headers['Referer'] = 'https://leetcode.com';
28+
opts.headers['Origin'] = 'https://leetcode.com/';
29+
opts.headers['Host'] = 'leetcode.com';
3030
opts.headers['Content-Type'] = 'application/json';
3131
opts.headers['Accept'] = 'application/json';
3232
}

0 commit comments

Comments
 (0)