summaryrefslogtreecommitdiff
path: root/icespider/testing/testRequest.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2020-01-18 15:24:20 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2020-01-18 15:24:20 +0000
commita2231b799729238636e4c47100d7771ae50d6195 (patch)
treefca9304a48ac0d8b16331026d320083c5b46f061 /icespider/testing/testRequest.cpp
parentPerformance fixes (diff)
downloadicespider-a2231b799729238636e4c47100d7771ae50d6195.tar.bz2
icespider-a2231b799729238636e4c47100d7771ae50d6195.tar.xz
icespider-a2231b799729238636e4c47100d7771ae50d6195.zip
Helper for testing for HTTPS
Diffstat (limited to 'icespider/testing/testRequest.cpp')
-rw-r--r--icespider/testing/testRequest.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/icespider/testing/testRequest.cpp b/icespider/testing/testRequest.cpp
index 080c07e..fea77f2 100644
--- a/icespider/testing/testRequest.cpp
+++ b/icespider/testing/testRequest.cpp
@@ -42,6 +42,12 @@ namespace IceSpider {
return get(key, env);
}
+ bool
+ TestRequest::isSecure() const
+ {
+ return env.find("HTTPS") != env.end();
+ }
+
OptionalString
TestRequest::getQueryStringParam(const std::string_view & key) const
{