diff --git a/lua/pantran/engines/deepl.lua b/lua/pantran/engines/deepl.lua index 916a5a3..f794503 100644 --- a/lua/pantran/engines/deepl.lua +++ b/lua/pantran/engines/deepl.lua @@ -76,7 +76,9 @@ function deepl.setup() deepl._api = curl.new{ url = deepl.url_template:format(deepl.config.free_api and "-free" or ""), fmt_error = function(response) return response.message end, - data = {auth_key = deepl.config.auth_key}, + headers = { + Authorization = 'DeepL-Auth-Key ' .. deepl.config.auth_key, + }, static_paths = {"languages"} } if not deepl.config.auth_key then