Skip to content

Commit 3eea166

Browse files
committed
Add comments
1 parent e3a9878 commit 3eea166

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

+3
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)