aboutsummaryrefslogtreecommitdiff
path: root/src/zenhttp/httpasio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zenhttp/httpasio.cpp')
-rw-r--r--src/zenhttp/httpasio.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/zenhttp/httpasio.cpp b/src/zenhttp/httpasio.cpp
index 7149caf28..0056103cd 100644
--- a/src/zenhttp/httpasio.cpp
+++ b/src/zenhttp/httpasio.cpp
@@ -543,6 +543,9 @@ HttpServerConnection::HandleRequest()
{
ZEN_ERROR("Caught exception while handling request: '{}'", ex.what());
+ // Drop any partially formatted response
+ Request.m_Response.reset();
+
Request.WriteResponse(HttpResponseCode::InternalServerError, HttpContentType::kText, ex.what());
}
}