]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix build broken by 6c880a1 (#473)
authorEduard Bagdasaryan <eduard.bagdasaryan@measurement-factory.com>
Sat, 14 Sep 2019 14:53:27 +0000 (14:53 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sun, 15 Sep 2019 10:23:56 +0000 (10:23 +0000)
src/adaptation/ecap/MessageRep.cc

index 6fc9aa2ed10c9beebca0cbe5fb5d5ed6ef916c8b..946f2081ccd6a0052a5b308028b2c6600b31c412 100644 (file)
@@ -204,7 +204,7 @@ Adaptation::Ecap::RequestLineRep::uri(const Area &aUri)
 {
     // TODO: if method is not set, AnyP::Uri::parse will assume it is not connect;
     // Can we change AnyP::Uri::parse API to remove the method parameter?
-    const auto ok = theMessage.url.parse(theMessage.method, aUri.toString().c_str());
+    const auto ok = theMessage.url.parse(theMessage.method, SBuf(aUri.toString()));
     Must(ok);
 }