We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
user-agent
1 parent 05d4153 commit 9a6397cCopy full SHA for 9a6397c
lua/leetcode/api/headers.lua
@@ -7,7 +7,8 @@ function headers.get()
7
local cookie = Cookie.get()
8
9
return vim.tbl_extend("force", {
10
- ["User-Agent"] = "Mozilla/5.0 (X11; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0",
+ -- ["User-Agent"] = "Mozilla/5.0 (X11; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0",
11
+ ["User-Agent"] = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36",
12
["Referer"] = ("https://leetcode.%s"):format(config.domain),
13
["Origin"] = ("https://leetcode.%s/"):format(config.domain),
14
["Content-Type"] = "application/json",
0 commit comments