feat: configure OpenFeign client timeouts and trim URL in MangaChapterService
This commit is contained in:
parent
bd59f3e925
commit
28e71403c1
@ -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();
|
||||
|
||||
|
||||
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user