Skip to content

Commit 9a6397c

Browse files
committed
refactor: change user-agent to macos (#74)
1 parent 05d4153 commit 9a6397c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/leetcode/api/headers.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ function headers.get()
77
local cookie = Cookie.get()
88

99
return vim.tbl_extend("force", {
10-
["User-Agent"] = "Mozilla/5.0 (X11; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0",
10+
-- ["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",
1112
["Referer"] = ("https://leetcode.%s"):format(config.domain),
1213
["Origin"] = ("https://leetcode.%s/"):format(config.domain),
1314
["Content-Type"] = "application/json",

0 commit comments

Comments
 (0)