summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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));