File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -932,6 +932,7 @@ export class PassThroughHandler extends PassThroughHandlerDefinition {
932932 id : clientReq . id ,
933933 protocol : protocol ?. replace ( ':' , '' ) ?? '' ,
934934 method : method ,
935+ httpVersion : serverRes . httpVersion ,
935936 url : reqUrl ,
936937 destination : {
937938 hostname : hostname || 'localhost' ,
Original file line number Diff line number Diff line change @@ -1069,7 +1069,7 @@ ${await this.suggestRule(request)}`
10691069
10701070 const request : ClientError [ 'request' ] = {
10711071 ...commonParams ,
1072- httpVersion : parsedRequest . httpVersion ,
1072+ httpVersion : parsedRequest . httpVersion || '1.1' ,
10731073 method : parsedRequest . method ,
10741074 protocol : parsedRequest . protocol ,
10751075 url : parsedRequest . url ,
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ export interface Request {
5959 matchedRuleId ?: string ;
6060
6161 protocol : string ;
62- httpVersion ? : string ; // Like timingEvents - not set remotely with older servers
62+ httpVersion : string ;
6363 method : string ;
6464 url : string ;
6565 path : string ;
@@ -434,7 +434,7 @@ export interface ClientError {
434434
435435 // All of these are best guess, depending on what's parseable:
436436 protocol ?: string ;
437- httpVersion ? : string ;
437+ httpVersion : string ;
438438 method ?: string ;
439439 url ?: string ;
440440 path ?: string ;
You can’t perform that action at this time.
0 commit comments