]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/carp.cc
SourceFormat Enforcement
[thirdparty/squid.git] / src / carp.cc
index 0c463e56596441445a5054473af975e957710cc5..fd2b24c1547c727aa5d617ce5a1b75d8dd24d882 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1996-2016 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
  *
  * Squid software is distributed under GPLv2+ license and includes
  * contributions from numerous individuals and organizations.
@@ -167,7 +167,7 @@ carpSelectParent(HttpRequest * request)
             // this code follows URI syntax pattern.
             // corner cases should use the full effective request URI
             if (tp->options.carp_key.scheme) {
-                key.append(request->url.getScheme().c_str());
+                key.append(request->url.getScheme().image());
                 if (key.length()) //if the scheme is not empty
                     key.append("://");
             }