File tree 2 files changed +2
-1
lines changed
deepl-java/src/main/java/com/deepl/api
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
## Unreleased
8
8
### Fixed
9
9
* Changed document translation to poll the server every 5 seconds. This should greatly reduce observed document translation processing time.
10
+ * Fix getUsage request to be a HTTP GET request, not POST.
10
11
11
12
12
13
## [ 1.2.0] - 2023-03-22
Original file line number Diff line number Diff line change @@ -247,7 +247,7 @@ public List<TextResult> translateText(
247
247
* @throws DeepLException If any error occurs while communicating with the DeepL API.
248
248
*/
249
249
public Usage getUsage () throws DeepLException , InterruptedException {
250
- HttpResponse response = httpClientWrapper .sendRequestWithBackoff ("/v2/usage" );
250
+ HttpResponse response = httpClientWrapper .sendGetRequestWithBackoff ("/v2/usage" );
251
251
checkResponse (response , false , false );
252
252
return jsonParser .parseUsage (response .getBody ());
253
253
}
You can’t perform that action at this time.
0 commit comments