File tree 2 files changed +10
-7
lines changed
2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -98,12 +98,15 @@ export class HttpClient implements Server.IHttpClient {
98
98
99
99
this . $logger . trace ( "httpRequest: %s" , util . inspect ( options ) ) ;
100
100
101
- const agent = tunnel . httpsOverHttp ( {
102
- proxy : {
103
- host : cliProxySettings . hostname ,
104
- port : parseInt ( cliProxySettings . port ) ,
105
- } ,
106
- } ) ;
101
+ let agent ;
102
+ if ( cliProxySettings ) {
103
+ agent = tunnel . httpsOverHttp ( {
104
+ proxy : {
105
+ host : cliProxySettings . hostname ,
106
+ port : parseInt ( cliProxySettings . port ) ,
107
+ } ,
108
+ } ) ;
109
+ }
107
110
const result = await axios ( {
108
111
url : options . url ,
109
112
headers : options . headers ,
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ export class TestExecutionService implements ITestExecutionService {
81
81
liveSyncInfo . projectDir ,
82
82
TestExecutionService . SOCKETIO_JS_FILE_NAME
83
83
) ,
84
- socketIoJs
84
+ JSON . parse ( socketIoJs )
85
85
) ;
86
86
}
87
87
You can’t perform that action at this time.
0 commit comments