summaryrefslogtreecommitdiff
path: root/src/mongo/client/examples/httpClientTest.cpp
diff options
context:
space:
mode:
authorAntonin Kral <a.kral@bobek.cz>2013-07-17 16:21:49 +0200
committerAntonin Kral <a.kral@bobek.cz>2013-07-17 16:21:49 +0200
commite3904bf97e74cbbe5dde6b3abc3e797ad7d26b5d (patch)
treef2d76fa86bfce0e897a616e02551bdd7d9913682 /src/mongo/client/examples/httpClientTest.cpp
parentbef4346b845150d5318fd7a0acb43554f0d40a06 (diff)
Imported Upstream version 2.4.5upstream/2.4.5
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 ) {