From 761fbdc944311c57c6f932da94f148eefe4320fe Mon Sep 17 00:00:00 2001 From: Thulinma Date: Sun, 22 Oct 2017 23:58:45 +0200 Subject: [PATCH] HTTP lib no longer returns empty variables in allVars() --- lib/http_parser.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/http_parser.cpp b/lib/http_parser.cpp index 2a339d85..2e034d91 100644 --- a/lib/http_parser.cpp +++ b/lib/http_parser.cpp @@ -613,6 +613,7 @@ std::string HTTP::Parser::allVars(){ std::string ret; if (!vars.size()){return ret;} for (std::map::iterator it = vars.begin(); it != vars.end(); ++it){ + if (!it->second.size()){continue;} if (ret.size() > 1){ ret += "&"; }else{