File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -237,7 +237,6 @@ public static function getServerHealth()
237
237
238
238
// try to get a response from the server
239
239
$ url = self ::createRequestUrl ('health ' );
240
-
241
240
$ response = $ httpClient ->send ($ url );
242
241
243
242
$ errorCode = $ httpClient ->getErrorCode ();
Original file line number Diff line number Diff line change @@ -37,6 +37,9 @@ public function tearDown() : void
37
37
38
38
// unset CA file
39
39
ParseClient::setCAFile (null );
40
+
41
+ // unset http options
42
+ ParseClient::setHttpOptions (null );
40
43
}
41
44
42
45
/**
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ const parseServer = new ParseServer({
15
15
restKey : "rest-api-key-here" ,
16
16
databaseURI : "mongodb://localhost/test" ,
17
17
cloud : __dirname + "/tests/cloud-code.js" ,
18
- publicServerURL : "https ://localhost:1337/parse" ,
18
+ publicServerURL : "http ://localhost:1337/parse" ,
19
19
logsFolder : path . resolve ( process . cwd ( ) , 'logs' ) ,
20
20
verbose : true ,
21
21
silent : true ,
@@ -83,10 +83,13 @@ const serverOptions = {
83
83
}
84
84
85
85
function onRequest ( req ) {
86
- console . log ( new Date ( ) + ' ' +
87
- req . connection . remoteAddress + ' ' +
88
- req . socket . getPeerCertificate ( ) . subject . CN + ' ' +
89
- req . method + ' ' + req . baseUrl ) ;
86
+ console . log (
87
+ new Date ( ) ,
88
+ req . connection . remoteAddress ,
89
+ req . socket . getPeerCertificate ( ) . subject . CN ,
90
+ req . method ,
91
+ req . baseUrl ,
92
+ ) ;
90
93
}
91
94
92
95
// Create TLS enabled server
You can’t perform that action at this time.
0 commit comments