From 566a612f83dc4f7d1f8cdc7ee0407d7e66734b4e Mon Sep 17 00:00:00 2001 From: Uiseop Eom Date: Mon, 16 Oct 2023 17:31:48 +0900 Subject: [PATCH] [refac] Extend custom endpoint length to 100 --- src/main/java/org/zaikorea/zaiclient/ZaiClient.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/zaikorea/zaiclient/ZaiClient.java b/src/main/java/org/zaikorea/zaiclient/ZaiClient.java index 2c9f475..cca725c 100644 --- a/src/main/java/org/zaikorea/zaiclient/ZaiClient.java +++ b/src/main/java/org/zaikorea/zaiclient/ZaiClient.java @@ -256,8 +256,8 @@ public Builder readTimeout(int seconds) { } public Builder customEndpoint(String endpoint) throws InvalidParameterException { - if (endpoint.length() > 10) - throw new InvalidParameterException("Custom endpoint should be less than or equal to 10."); + if (endpoint.length() > 100) + throw new InvalidParameterException("Custom endpoint should be less than or equal to 100."); if (Pattern.matches("^[a-zA-Z0-9-]+$", endpoint)) { this.eventsApiEndpoint = String.format(Config.eventsApiEndPoint, "-"+endpoint);