Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix wrong solution.discuss header
  • Loading branch information
woung717 committed Mar 10, 2024
commit 5b60fbeaa295e71d9427235c7b8c5a360faa415f
6 changes: 3 additions & 3 deletions lib/plugins/solution.discuss.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ function setupHeaders(opts, user) {
opts.headers['X-Requested-With'] = 'XMLHttpRequest';

opts.headers['User-Agent'] = 'Mozilla/5.0 (X11; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0';
opts.headers['Referer'] = 'https://leetcode.cn';
opts.headers['Origin'] = 'https://leetcode.cn/';
opts.headers['Host'] = 'leetcode.cn';
opts.headers['Referer'] = 'https://leetcode.com';
opts.headers['Origin'] = 'https://leetcode.com/';
opts.headers['Host'] = 'leetcode.com';
opts.headers['Content-Type'] = 'application/json';
opts.headers['Accept'] = 'application/json';
}
Expand Down