summaryrefslogtreecommitdiff
path: root/methods/basehttp.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2026-04-08 10:26:06 +0000
committerJulian Andres Klode <jak@debian.org>2026-04-08 10:26:06 +0000
commita6873075dcac5115706e001bc9640c8da0805e35 (patch)
treee5d3d569e51d24207eb0228615f5eedd37e08296 /methods/basehttp.cc
parent04dcfd52355ca06143a8aaca4afd718a22fb0ded (diff)
parentaf5b9453a1908021cf75c348522c1a12eeb0dee4 (diff)
Merge branch 'str-to-chars' into 'main'
apt: funcs called with a string literal consisting of a single character See merge request apt-team/apt!563
Diffstat (limited to 'methods/basehttp.cc')
-rw-r--r--methods/basehttp.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/methods/basehttp.cc b/methods/basehttp.cc
index d335e6fa0..db0ed228f 100644
--- a/methods/basehttp.cc
+++ b/methods/basehttp.cc
@@ -330,7 +330,7 @@ static std::string fixURIEncoding(std::string const &part)
{
// if the server sends a space this is not an encoded URI
// so other clients seem to encode it and we do it as well
- if (part.find_first_of(" ") != std::string::npos)
+ if (part.find_first_of(' ') != std::string::npos)
return aptMethod::URIEncode(part);
return part;
}