diff --git a/src/handler/interfaces.cpp b/src/handler/interfaces.cpp index ecd6530a4..38b11975c 100644 --- a/src/handler/interfaces.cpp +++ b/src/handler/interfaces.cpp @@ -1362,10 +1362,10 @@ int simpleGenerator() string_multimap allItems; std::string proxy = parseProxy(global.proxySubscription); - Request request; - Response response; for(std::string &x : sections) { + Request request; + Response response; response.status_code = 200; //std::cerr<<"Generating artifact '"<second.content; + } + else if (request.get_header_value("Content-Type") == "application/x-www-form-urlencoded") + { + req.postdata = urlDecode(request.body); + } + else + { + req.postdata = request.body; + } } auto result = rr.rc(req, resp); response.status = resp.status_code;