summaryrefslogtreecommitdiff
path: root/icespider/testing/testRequest.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2018-05-16 08:20:09 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2019-01-14 21:08:02 +0000
commit23f95e1c99b3983596048a65d0fef5b02c91e8ba (patch)
tree4da42956a129ce0ea57748c0c1fb3dc0f818e9a3 /icespider/testing/testRequest.cpp
parentCut 3 string_view (accept parser) (diff)
downloadicespider-23f95e1c99b3983596048a65d0fef5b02c91e8ba.tar.bz2
icespider-23f95e1c99b3983596048a65d0fef5b02c91e8ba.tar.xz
icespider-23f95e1c99b3983596048a65d0fef5b02c91e8ba.zip
Cut 4 string_view everything else
Use std::optional and std::string_view throughout the CGI parser and core. Removes some of the hacks and tidies up some of the error handling.
Diffstat (limited to 'icespider/testing/testRequest.cpp')
-rw-r--r--icespider/testing/testRequest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/icespider/testing/testRequest.cpp b/icespider/testing/testRequest.cpp
index 11fd721..1c0d9cb 100644
--- a/icespider/testing/testRequest.cpp
+++ b/icespider/testing/testRequest.cpp
@@ -62,7 +62,7 @@ namespace IceSpider {
{
auto i = vars.find(key);
if (i == vars.end()) {
- return IceUtil::None;
+ return {};
}
return i->second;
}