A Neovim plugin enabling you to solve LeetCode problems.
fix(#69): change http version to `HTTP/2`
1 file changed, +1 -0
+1-0lua/leetcode/api/utils.lua
| @@ -60,6 +60,7 @@ function utils.curl(method, params) | ||
| 60 | 60 | compressed = false, |
| 61 | 61 | retry = 5, |
| 62 | 62 | endpoint = urls.base, |
| 63 | + http_version = "HTTP/2", | |
| 63 | 64 | }, params or {}) |
| 64 | 65 | local url = ("https://leetcode.%s%s"):format(config.domain, params.endpoint) |
| 65 | 66 |