Skip to content
This repository was archived by the owner on May 16, 2024. It is now read-only.

Commit 46ec4c5

Browse files
fix: curl unsupported browser error #25
added "User-agent" header to the GET request
1 parent a26ba4f commit 46ec4c5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lua/nvim-devdocs/operations.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ M.fetch = function()
2020
notify.log("Fetching DevDocs registery...")
2121

2222
curl.get(devdocs_site_url .. "/docs.json", {
23+
headers = {
24+
["User-agent"] = "chrome",
25+
},
2326
callback = function(response)
2427
local dir_path = path:new(plugin_config.dir_path)
2528
local file_path = path:new(plugin_config.dir_path, "registery.json")

0 commit comments

Comments
 (0)