diff --git a/src/main/java/org/sasanlabs/service/vulnerability/ssrf/SSRFVulnerability.java b/src/main/java/org/sasanlabs/service/vulnerability/ssrf/SSRFVulnerability.java index 85313a93..aaf92b56 100644 --- a/src/main/java/org/sasanlabs/service/vulnerability/ssrf/SSRFVulnerability.java +++ b/src/main/java/org/sasanlabs/service/vulnerability/ssrf/SSRFVulnerability.java @@ -69,9 +69,9 @@ private ResponseEntity> invalidUrlRespo HttpStatus.OK); } else { return new ResponseEntity<>( - new GenericVulnerabilityResponseBean<>( - getResponseForURLConnection(u), true), - HttpStatus.OK); + new GenericVulnerabilityResponseBean<>( + getResponseForURLConnection(u), true), + HttpStatus.OK); } } else { return invalidUrlResponse(); diff --git a/src/test/java/org/sasanlabs/service/vulnerability/ssrf/SSRFVulnerabilityTest.java b/src/test/java/org/sasanlabs/service/vulnerability/ssrf/SSRFVulnerabilityTest.java index 8da34771..4aa6a0ad 100644 --- a/src/test/java/org/sasanlabs/service/vulnerability/ssrf/SSRFVulnerabilityTest.java +++ b/src/test/java/org/sasanlabs/service/vulnerability/ssrf/SSRFVulnerabilityTest.java @@ -48,7 +48,9 @@ void each() throws IOException { SSRFVulnerability ssrfSpy = spy(new SSRFVulnerability(GIST_ID)); // mocks network calls doReturn(GIST_URL_CONTENT).when(ssrfSpy).getResponseForURLConnection(eq(new URL(GIST_URL))); - doReturn(OTHER_URL_CONTENT).when(ssrfSpy).getResponseForURLConnection(eq(new URL(OTHER_URL))); + doReturn(OTHER_URL_CONTENT) + .when(ssrfSpy) + .getResponseForURLConnection(eq(new URL(OTHER_URL))); ssrfVulnerability = ssrfSpy; }