mirror of
https://github.com/jwdeveloper/TikTokLiveJava.git
synced 2026-02-27 16:59:39 -05:00
Removal of blank spaces and unused imports/dependencies
Optimize picture download memory usage and add option to convert to unsigned url Convert response data classes to final and add toString with `@Data` Made sending requests dynamic by allowing passing of BodyHandler to class
This commit is contained in:
@@ -225,7 +225,7 @@ public class TikTokLiveHttpClient implements LiveHttpClient
|
||||
if (clientSettings.getApiKey() != null)
|
||||
builder.withParam("apiKey", clientSettings.getApiKey());
|
||||
|
||||
var result = builder.build().toResponse();
|
||||
var result = builder.build().toHttpResponse(HttpResponse.BodyHandlers.ofByteArray());
|
||||
|
||||
if (result.isFailure())
|
||||
throw new TikTokSignServerException("Unable to get websocket connection credentials - "+result);
|
||||
|
||||
Reference in New Issue
Block a user