Skip to content

Commit 4089314

Browse files
authored
[js] Using status from response (#11742)
Fixes #11648
1 parent 91daa27 commit 4089314

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/node/selenium-webdriver/lib/webdriver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1405,7 +1405,7 @@ class WebDriver {
14051405
if (requestPausedParams.request.url == httpResponse.urlToIntercept) {
14061406
connection.execute('Fetch.fulfillRequest', {
14071407
requestId: requestPausedParams['requestId'],
1408-
responseCode: 200,
1408+
responseCode: httpResponse.status,
14091409
responseHeaders: httpResponse.headers,
14101410
body: httpResponse.body,
14111411
})

0 commit comments

Comments
 (0)