From 3b151d569d8ea980f6bf1ccb710c135ae1fbfa52 Mon Sep 17 00:00:00 2001 From: rittelle <33598633+rittelle@users.noreply.github.com> Date: Fri, 12 Feb 2021 13:21:59 +0100 Subject: [PATCH] Properly clear responses Closes #104. --- include/crow/http_response.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/crow/http_response.h b/include/crow/http_response.h index e4d37d2c5..4421d83d2 100644 --- a/include/crow/http_response.h +++ b/include/crow/http_response.h @@ -97,6 +97,7 @@ namespace crow code = 200; headers.clear(); completed_ = false; + file_info = static_file_info{}; } /// Return a "Temporary Redirect" response.