aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/http_response.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/http_response.h b/include/http_response.h
index 69c6d72..7288cc3 100644
--- a/include/http_response.h
+++ b/include/http_response.h
@@ -84,11 +84,12 @@ namespace crow
{
if (!completed_)
{
+ completed_ = true;
+
if (complete_request_handler_)
{
complete_request_handler_();
}
- completed_ = true;
}
}