Skip to content

Commit 77e662a

Browse files
committed
Add comments
1 parent 9e52090 commit 77e662a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

java/src/org/openqa/selenium/remote/RemoteNetwork.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,14 @@ private void interceptRequest() {
101101

102102
if (requestHandler.isPresent()) {
103103
RequestData interceptedRequest = beforeRequestSent.getRequest();
104+
105+
// Build the originalRequest object from the intercepted request details.
104106
HttpRequest originalRequest =
105107
new HttpRequest(
106108
HttpMethod.getHttpMethod(interceptedRequest.getMethod()),
107109
interceptedRequest.getUrl());
108110

111+
// Populate the headers of the original request.
109112
interceptedRequest
110113
.getHeaders()
111114
.forEach(

0 commit comments

Comments
 (0)