Skip to content

Commit

Permalink
Merge branch 'main' into fix/47
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanThatOneKid authored Jun 14, 2024
2 parents 35d1218 + 77a207a commit 4c598ba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/lc/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ export class LCClient implements LCClientInterface {
* verifyUser verifies the user by username.
*/
public async verifyUser(username: string): Promise<boolean> {
const response = await this.fetch(`https://leetcode.com/${username}/`);
const response = await this.fetch(
`https://leetcode.com/${username}/`,
{ headers: { "priority": "u=0, i" } },
);
return response.status === 200;
}

Expand Down

0 comments on commit 4c598ba

Please sign in to comment.