Promoted isSecure.
authorcantor <cantor@fb386ef7-a10c-0410-8ebf-fd3f8e989ab0>
Fri, 12 Jan 2007 05:20:50 +0000 (05:20 +0000)
committercantor <cantor@fb386ef7-a10c-0410-8ebf-fd3f8e989ab0>
Fri, 12 Jan 2007 05:20:50 +0000 (05:20 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-opensaml2/trunk@160 fb386ef7-a10c-0410-8ebf-fd3f8e989ab0

saml/binding/HTTPRequest.h
samltest/binding.h

index 5f17c1d..177aa56 100644 (file)
@@ -42,7 +42,11 @@ namespace opensaml {
         HTTPRequest() {}
     public:
         virtual ~HTTPRequest() {}
-        
+
+        bool isSecure() const {
+            return strcmp(getScheme(),"https")==0;
+        }
+          
         /**
          * Returns the HTTP method of the request (GET, POST, etc.)
          * 
index fdbe990..a1c6d19 100644 (file)
@@ -126,10 +126,6 @@ public:
         return "https";\r
     }\r
 \r
-    bool isSecure() const {\r
-        return true;\r
-    }\r
-\r
     const char* getHostname() const {\r
         return "localhost";\r
     }\r