From 0c96e9f84525442d557ae47fccf355c8d1ed1d31 Mon Sep 17 00:00:00 2001 From: eidheim Date: Fri, 9 Jan 2015 12:27:16 +0100 Subject: [PATCH] Added all_resources.clear() to ServerBase::start in case server is restarted. --- server_http.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/server_http.hpp b/server_http.hpp index 5168784..3a20469 100644 --- a/server_http.hpp +++ b/server_http.hpp @@ -38,6 +38,7 @@ namespace SimpleWeb { void start() { //All resources with default_resource at the end of vector //Used in the respond-method + all_resources.clear(); for(auto it=resource.begin(); it!=resource.end();it++) { all_resources.push_back(it); }