diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-01-18 15:24:20 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-01-18 15:24:20 +0000 |
commit | a2231b799729238636e4c47100d7771ae50d6195 (patch) | |
tree | fca9304a48ac0d8b16331026d320083c5b46f061 /icespider/testing/testRequest.cpp | |
parent | Performance fixes (diff) | |
download | icespider-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.cpp | 6 |
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 { |