diff options
Diffstat (limited to 'icespider/fcgi/cgiRequestBase.cpp')
-rw-r--r-- | icespider/fcgi/cgiRequestBase.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/icespider/fcgi/cgiRequestBase.cpp b/icespider/fcgi/cgiRequestBase.cpp index b6d5a77..8e04c07 100644 --- a/icespider/fcgi/cgiRequestBase.cpp +++ b/icespider/fcgi/cgiRequestBase.cpp @@ -19,6 +19,7 @@ namespace IceSpider { constexpr std::string_view amp("&"); constexpr std::string_view semi("; "); constexpr std::string_view HEADER_PREFIX("HTTP_"); + constexpr std::string_view HTTPS("HTTPS"); CGI_CONST(REDIRECT_URL); CGI_CONST(SCRIPT_NAME); CGI_CONST(QUERY_STRING); @@ -165,6 +166,12 @@ namespace IceSpider { return optionalLookup(key, envmap); } + bool + CgiRequestBase::isSecure() const + { + return envmap.find(HTTPS) != envmap.end(); + } + OptionalString CgiRequestBase::getHeaderParam(const std::string_view & key) const { |