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 {
932
932
id : clientReq . id ,
933
933
protocol : protocol ?. replace ( ':' , '' ) ?? '' ,
934
934
method : method ,
935
+ httpVersion : serverRes . httpVersion ,
935
936
url : reqUrl ,
936
937
destination : {
937
938
hostname : hostname || 'localhost' ,
Original file line number Diff line number Diff line change @@ -1069,7 +1069,7 @@ ${await this.suggestRule(request)}`
1069
1069
1070
1070
const request : ClientError [ 'request' ] = {
1071
1071
...commonParams ,
1072
- httpVersion : parsedRequest . httpVersion ,
1072
+ httpVersion : parsedRequest . httpVersion || '1.1' ,
1073
1073
method : parsedRequest . method ,
1074
1074
protocol : parsedRequest . protocol ,
1075
1075
url : parsedRequest . url ,
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ export interface Request {
59
59
matchedRuleId ?: string ;
60
60
61
61
protocol : string ;
62
- httpVersion ? : string ; // Like timingEvents - not set remotely with older servers
62
+ httpVersion : string ;
63
63
method : string ;
64
64
url : string ;
65
65
path : string ;
@@ -434,7 +434,7 @@ export interface ClientError {
434
434
435
435
// All of these are best guess, depending on what's parseable:
436
436
protocol ?: string ;
437
- httpVersion ? : string ;
437
+ httpVersion : string ;
438
438
method ?: string ;
439
439
url ?: string ;
440
440
path ?: string ;
You can’t perform that action at this time.
0 commit comments