Skip to content

Commit

Permalink
fix: dl session format
Browse files Browse the repository at this point in the history
  • Loading branch information
missuo committed Apr 23, 2024
1 parent a0b1106 commit 9ce414d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion translate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down

0 comments on commit 9ce414d

Please sign in to comment.