irongit

A Neovim plugin enabling you to solve LeetCode problems.

fix(#69): change http version to `HTTP/2`

kawreauthored
parent 05d4153commit 765cc76df77072e3ff4c3fdc256b9a244af73b6dBrowse files

1 file changed, +1 -0

+1-0lua/leetcode/api/utils.lua
@@ -60,6 +60,7 @@ function utils.curl(method, params)
6060 compressed = false,
6161 retry = 5,
6262 endpoint = urls.base,
63+ http_version = "HTTP/2",
6364 }, params or {})
6465 local url = ("https://leetcode.%s%s"):format(config.domain, params.endpoint)
6566