We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65f2d1e commit 6ac0f12Copy full SHA for 6ac0f12
lua/leetcode/api/headers.lua
@@ -7,6 +7,7 @@ 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",
11
["Referer"] = ("https://leetcode.%s"):format(config.domain),
12
["Origin"] = ("https://leetcode.%s/"):format(config.domain),
13
["Content-Type"] = "application/json",
0 commit comments