diff options
| author | Antonin Kral <a.kral@bobek.cz> | 2013-07-17 16:21:49 +0200 |
|---|---|---|
| committer | Antonin Kral <a.kral@bobek.cz> | 2013-07-17 16:21:49 +0200 |
| commit | e3904bf97e74cbbe5dde6b3abc3e797ad7d26b5d (patch) | |
| tree | f2d76fa86bfce0e897a616e02551bdd7d9913682 /src/mongo/client/examples/httpClientTest.cpp | |
| parent | bef4346b845150d5318fd7a0acb43554f0d40a06 (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.cpp | 8 |
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 ) { |
