]> git.saurik.com Git - apt.git/commitdiff
* methods/http.cc:
authorMichael Vogt <michael.vogt@ubuntu.com>
Fri, 11 Jan 2013 08:51:00 +0000 (09:51 +0100)
committerMichael Vogt <michael.vogt@ubuntu.com>
Fri, 11 Jan 2013 08:51:00 +0000 (09:51 +0100)
  - 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)

debian/changelog
methods/http.cc

index ec77904e7492dd767c4b4b353ba69b24220181f3..c956f57d34b81a601d64b11c8be10223e8720caf 100644 (file)
@@ -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
 
index acf25a42a06b4eb11c222ea4e3d4fa1c99bc6fc0..b7e7660048273948fc9ab3381680dcd556fba853 100644 (file)
@@ -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