Skip to content

Commit

Permalink
[java] Fix v*Network.java conditions (#14585)
Browse files Browse the repository at this point in the history
Co-authored-by: Puja Jagani <[email protected]>
  • Loading branch information
mk868 and pujagani authored Oct 14, 2024
1 parent f9ffaa2 commit 274f43f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public Either<HttpRequest, HttpResponse> createSeMessages(RequestPaused pausedRe
} catch (DevToolsException e) {
// Redirects don't seem to have bodies
int code = pausedReq.getResponseStatusCode().orElse(HTTP_OK);
if (code < 300 && code > 399) {
if (code >= 300 && code <= 399) {
LOG.warning("Unable to get body for request id " + pausedReq.getRequestId());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public Either<HttpRequest, HttpResponse> createSeMessages(RequestPaused pausedRe
} catch (DevToolsException e) {
// Redirects don't seem to have bodies
int code = pausedReq.getResponseStatusCode().orElse(HTTP_OK);
if (code < 300 && code > 399) {
if (code >= 300 && code <= 399) {
LOG.warning("Unable to get body for request id " + pausedReq.getRequestId());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public Either<HttpRequest, HttpResponse> createSeMessages(RequestPaused pausedRe
} catch (DevToolsException e) {
// Redirects don't seem to have bodies
int code = pausedReq.getResponseStatusCode().orElse(HTTP_OK);
if (code < 300 && code > 399) {
if (code >= 300 && code <= 399) {
LOG.warning("Unable to get body for request id " + pausedReq.getRequestId());
}

Expand Down
2 changes: 1 addition & 1 deletion java/src/org/openqa/selenium/devtools/v85/V85Network.java
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public Either<HttpRequest, HttpResponse> createSeMessages(RequestPaused pausedRe
} catch (DevToolsException e) {
// Redirects don't seem to have bodies
int code = pausedReq.getResponseStatusCode().orElse(HTTP_OK);
if (code < 300 && code > 399) {
if (code >= 300 && code <= 399) {
LOG.warning("Unable to get body for request id " + pausedReq.getRequestId());
}

Expand Down

0 comments on commit 274f43f

Please sign in to comment.