Added default param
This commit is contained in:
parent
7f257d173f
commit
64d11cc86d
1 changed files with 3 additions and 3 deletions
|
@ -51,11 +51,11 @@ class MockHttpRequest
|
||||||
String? protocolVersion,
|
String? protocolVersion,
|
||||||
String? sessionId,
|
String? sessionId,
|
||||||
this.certificate,
|
this.certificate,
|
||||||
required this.persistentConnection}) {
|
this.persistentConnection = true}) {
|
||||||
_buf = BytesBuilder(copy: copyBuffer != false);
|
_buf = BytesBuilder(copy: copyBuffer != false);
|
||||||
_session = MockHttpSession(id: sessionId ?? 'mock-http-session');
|
_session = MockHttpSession(id: sessionId ?? 'mock-http-session');
|
||||||
this.protocolVersion =
|
|
||||||
protocolVersion?.isNotEmpty == true ? protocolVersion! : '1.1';
|
this.protocolVersion = protocolVersion ?? '1.1';
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
Loading…
Reference in a new issue