mirror of
https://github.com/Syping/dtranslatebot.git
synced 2026-04-01 05:20:22 +02:00
[skip ci] deepl: remove unused http_headers
This commit is contained in:
parent
ec1294a960
commit
f12e13ed28
1 changed files with 0 additions and 5 deletions
|
|
@ -82,11 +82,6 @@ const std::vector<language> deepl::get_languages()
|
|||
|
||||
const std::string deepl::translate(const std::string &text, const std::string &source, const std::string &target)
|
||||
{
|
||||
const dpp::http_headers http_headers = {
|
||||
{"Authorization", "DeepL-Auth-Key " + m_apiKey},
|
||||
{"Content-Type", "application/json"}
|
||||
};
|
||||
|
||||
dpp::json json_body = {
|
||||
{"text", { text } },
|
||||
{"target_lang", target}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue