summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2013-01-11 09:51:00 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2013-01-11 09:51:00 +0100
commit72663b44179f4c6f3ec2e4ec25d8df3c4590b222 (patch)
tree06f9976e3c16c5c6dc986c6e9af2b188b2533dc0
parente646142d11fe5d1368ab879bb87922b462a0cf83 (diff)
* methods/http.cc:
- quote spaces in filenames to ensure as the http method is also (potentially) used for non deb,dsc content that may contain spaces, thanks to Daniel Hartwig and Thomas Bushnell (LP: #1086997)
-rw-r--r--debian/changelog5
-rw-r--r--methods/http.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index ec77904e7..c956f57d3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -21,6 +21,11 @@ apt (0.9.7.8) UNRELEASED; urgency=low
- reuse connection in https, thanks to Thomas Bushnell, BSG for the
patch. LP: #1087543, Closes: #695359
- add missing curl_easy_cleanup()
+ * methods/http.cc:
+ - quote spaces in filenames to ensure as the http method is also
+ (potentially) used for non deb,dsc content that may contain
+ spaces, thanks to Daniel Hartwig and Thomas Bushnell
+ (LP: #1086997)
-- Christian Perrier <bubulle@debian.org> Mon, 24 Dec 2012 07:01:20 +0100
diff --git a/methods/http.cc b/methods/http.cc
index acf25a42a..b7e766004 100644
--- a/methods/http.cc
+++ b/methods/http.cc
@@ -686,7 +686,7 @@ void HttpMethod::SendReq(FetchItem *Itm,CircleBuf &Out)
and we expect the proxy to do this */
if (Proxy.empty() == true || Proxy.Host.empty())
sprintf(Buf,"GET %s HTTP/1.1\r\nHost: %s\r\nConnection: keep-alive\r\n",
- QuoteString(Uri.Path,"~").c_str(),ProperHost.c_str());
+ QuoteString(Uri.Path,"~ ").c_str(),ProperHost.c_str());
else
{
/* Generate a cache control header if necessary. We place a max