feat: configure OpenFeign client timeouts and trim URL in MangaChapterService

This commit is contained in:
Rodrigo Verdiani 2025-10-26 14:52:07 -03:00
parent bd59f3e925
commit 28e71403c1
2 changed files with 9 additions and 1 deletions

View File

@ -56,7 +56,8 @@ public class MangaChapterService {
try {
var inputStream =
new BufferedInputStream(
new URL(new URI(entry.getValue()).toASCIIString()).openStream());
new URL(new URI(entry.getValue().trim()).toASCIIString().trim())
.openStream());
var bytes = inputStream.readAllBytes();

View File

@ -18,6 +18,13 @@ spring:
multipart:
max-file-size: 800MB
max-request-size: 4GB
cloud:
openfeign:
client:
config:
default:
connect-timeout: 120000
read-timeout: 120000
springdoc:
api-docs: