Skip to content

Commit be20f09

Browse files
authored
Fix bug with url length (#303)
1 parent 0f16f99 commit be20f09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

screenshot/app/src/main/java/dev/findfirst/screenshot/controller/ScreenshotController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public static boolean isValid(String url) {
5454
}
5555

5656
@GetMapping("/screenshot")
57-
public String takeScreenshot(@RequestParam @NotBlank @Size(min = 4, max = 50) String url)
57+
public String takeScreenshot(@RequestParam @NotBlank @Size(min = 4, max = 512) String url)
5858
throws BadRequestException, MalformedURLException, URISyntaxException {
5959

6060
if (!isValid(url)) {

0 commit comments

Comments
 (0)