summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2013-01-27 00:02:16 +0000
committerrandomdan <randomdan@localhost>2013-01-27 00:02:16 +0000
commit67520c7d5119442f8208a498d6ae8ae1670a3f4d (patch)
tree9f6d647508e586c05c542c0d3683897059be459a
parentAllow reading URL list from a file for bulk testing (diff)
downloadproject2-67520c7d5119442f8208a498d6ae8ae1670a3f4d.tar.bz2
project2-67520c7d5119442f8208a498d6ae8ae1670a3f4d.tar.xz
project2-67520c7d5119442f8208a498d6ae8ae1670a3f4d.zip
Fix issues with PQ connection errors not being handled correctly
-rw-r--r--project2/cgi/cgiCommon.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/project2/cgi/cgiCommon.cpp b/project2/cgi/cgiCommon.cpp
index 60a9abf..ea4694e 100644
--- a/project2/cgi/cgiCommon.cpp
+++ b/project2/cgi/cgiCommon.cpp
@@ -39,10 +39,10 @@ doExceptionReporting(const E & e, std::ostream & IO)
void
cgiServe(cgicc::CgiInput * i, CgiEnvironment * env, std::ostream & IO, const CgiEnvInput * e)
{
- cgicc::Cgicc cgi(i);
- env->setCGICC(&cgi, e);
- env->init();
try {
+ cgicc::Cgicc cgi(i);
+ env->setCGICC(&cgi, e);
+ env->init();
CgiApplicationEngine app(env, IO);
LoaderBase::onAllComponents(boost::bind(&ComponentLoader::onBefore, _1));