]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/url.cc
SSL->HTTP gatewaying support by Benno Rice
[thirdparty/squid.git] / src / url.cc
index b5fb1a8d7afb6b93261116b39b0cf70aa840cbf5..d5645d4a1705bef3a3a5879491edf317f9ade987 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: url.cc,v 1.129 2001/01/12 00:37:23 wessels Exp $
+ * $Id: url.cc,v 1.130 2001/04/14 00:03:24 hno Exp $
  *
  * DEBUG: section 23    URL Parsing
  * AUTHOR: Duane Wessels
@@ -550,12 +550,17 @@ urlCheckRequest(const request_t * r)
            rc = 1;
        break;
     case PROTO_HTTPS:
+#ifdef USE_SSL
+       rc = 1;
+       break;
+#else
        /*
         * Squid can't originate an SSL connection, so it should
         * never receive an "https:" URL.  It should always be
         * CONNECT instead.
         */
        rc = 0;
+#endif
     default:
        break;
     }