diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-02-09 12:15:51 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-02-09 12:15:51 +0000 |
commit | 1aa81ace8caba31f6e635fd07da0235c9ac3411e (patch) | |
tree | 0b9898fae2d7817c0a98ea7c64b948f5b527c06f /icespider/fcgi | |
parent | Update requiredParameterNotFound type (diff) | |
download | icespider-1aa81ace8caba31f6e635fd07da0235c9ac3411e.tar.bz2 icespider-1aa81ace8caba31f6e635fd07da0235c9ac3411e.tar.xz icespider-1aa81ace8caba31f6e635fd07da0235c9ac3411e.zip |
Move result strings around when unencoding x-www-form data
Diffstat (limited to 'icespider/fcgi')
-rw-r--r-- | icespider/fcgi/cgiRequestBase.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/icespider/fcgi/cgiRequestBase.cpp b/icespider/fcgi/cgiRequestBase.cpp index 6acaa38..8735d87 100644 --- a/icespider/fcgi/cgiRequestBase.cpp +++ b/icespider/fcgi/cgiRequestBase.cpp @@ -46,8 +46,8 @@ namespace IceSpider { mapVars(const std::string_view & vn, const in & envmap, out & map, const std::string_view & sp) { auto qs = envmap.find(vn); if (qs != envmap.end()) { - XWwwFormUrlEncoded::iterateVars(qs->second, [&map](const auto & k, const auto & v) { - map.insert({ k, v }); + XWwwFormUrlEncoded::iterateVars(qs->second, [&map](const auto && k, const auto && v) { + map.emplace(std::move(k), std::move(v)); }, sp); } } |