fix: dl session format

This commit is contained in:
Vincent Yang 2024-04-23 00:56:52 -04:00
parent a0b110681d
commit 9ce414d6a2
No known key found for this signature in database
GPG Key ID: 55F1635E821BF0E8

View File

@ -307,7 +307,7 @@ func translateByDeepLXPro(sourceLang string, targetLang string, translateText st
request.Header.Set("Origin", "https://www.deepl.com")
request.Header.Set("Referer", "https://www.deepl.com")
request.Header.Set("Connection", "keep-alive")
request.Header.Set("Cookie", "dlsession="+dlSession)
request.Header.Set("Cookie", "dl_session="+dlSession)
// Making the HTTP request to the DeepL API
client := &http.Client{}