Promoted isSecure.
authorScott Cantor <cantor.2@osu.edu>
Fri, 12 Jan 2007 05:20:50 +0000 (05:20 +0000)
committerScott Cantor <cantor.2@osu.edu>
Fri, 12 Jan 2007 05:20:50 +0000 (05:20 +0000)
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