Skip to content

Commit

Permalink
Added comments around code where we are setting request http version
Browse files Browse the repository at this point in the history
  • Loading branch information
parthverma1 committed Jul 21, 2024
1 parent 5d931f6 commit 20929d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions request.js
Original file line number Diff line number Diff line change
Expand Up @@ -1309,6 +1309,7 @@ Request.prototype.onRequestResponse = function (response) {
httpVersion: response.httpVersion
}

// Setting this again since the actual request version that was used is found only after ALPN negotiation in case of protocolVersion: auto
self._reqResInfo.request.httpVersion = response.httpVersion

if (self.timing) {
Expand Down

0 comments on commit 20929d3

Please sign in to comment.