Skip to content

Commit a898f9d

Browse files
committed
applied format.sh
1 parent b1f4ca5 commit a898f9d

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

java/src/org/openqa/selenium/devtools/v134/v134Network.java

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -191,17 +191,21 @@ protected Command<Void> continueRequest(RequestPaused pausedReq, HttpRequest req
191191
}
192192

193193
List<HeaderEntry> headers = new ArrayList<>();
194-
194+
195195
// First add the original headers from the paused request to preserve them
196-
pausedReq.getRequest().getHeaders().forEach(
197-
(name, value) -> headers.add(new HeaderEntry(name, String.valueOf(value))));
198-
199-
// Then add any new headers from the modified request, which will override existing ones if present
200-
req.forEachHeader((name, value) -> {
201-
// Remove any existing header with the same name
202-
headers.removeIf(h -> h.getName().equalsIgnoreCase(name));
203-
headers.add(new HeaderEntry(name, value));
204-
});
196+
pausedReq
197+
.getRequest()
198+
.getHeaders()
199+
.forEach((name, value) -> headers.add(new HeaderEntry(name, String.valueOf(value))));
200+
201+
// Then add any new headers from the modified request, which will override existing ones if
202+
// present
203+
req.forEachHeader(
204+
(name, value) -> {
205+
// Remove any existing header with the same name
206+
headers.removeIf(h -> h.getName().equalsIgnoreCase(name));
207+
headers.add(new HeaderEntry(name, value));
208+
});
205209

206210
return Fetch.continueRequest(
207211
pausedReq.getRequestId(),

0 commit comments

Comments
 (0)