summaryrefslogtreecommitdiff
path: root/src/mongo/client/examples/httpClientTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/client/examples/httpClientTest.cpp')
-rw-r--r--src/mongo/client/examples/httpClientTest.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mongo/client/examples/httpClientTest.cpp b/src/mongo/client/examples/httpClientTest.cpp
index d7d0659faa3..43617b592de 100644
--- a/src/mongo/client/examples/httpClientTest.cpp
+++ b/src/mongo/client/examples/httpClientTest.cpp
@@ -17,6 +17,7 @@
#include <iostream>
+#include "mongo/base/init.h"
#include "mongo/client/dbclient.h"
#include "util/net/httpclient.h"
@@ -39,7 +40,12 @@ void play( string url ) {
}
-int main( int argc, const char **argv ) {
+int main( int argc, const char **argv, char **envp) {
+
+#ifdef MONGO_SSL
+ cmdLine.sslOnNormalPorts = true;
+ runGlobalInitializersOrDie(argc, argv, envp);
+#endif
int port = 27017;
if ( argc != 1 ) {