소스 검색

* 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)

Michael Vogt 13 년 전
부모
커밋
72663b4417
2개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 0
      debian/changelog
  2. 1 1
      methods/http.cc

+ 5 - 0
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
     - reuse connection in https, thanks to Thomas Bushnell, BSG for the
       patch. LP: #1087543, Closes: #695359
       patch. LP: #1087543, Closes: #695359
     - add missing curl_easy_cleanup()
     - 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
  -- Christian Perrier <bubulle@debian.org>  Mon, 24 Dec 2012 07:01:20 +0100
 
 

+ 1 - 1
methods/http.cc

@@ -686,7 +686,7 @@ void HttpMethod::SendReq(FetchItem *Itm,CircleBuf &Out)
       and we expect the proxy to do this */
       and we expect the proxy to do this */
    if (Proxy.empty() == true || Proxy.Host.empty())
    if (Proxy.empty() == true || Proxy.Host.empty())
       sprintf(Buf,"GET %s HTTP/1.1\r\nHost: %s\r\nConnection: keep-alive\r\n",
       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
    else
    {
    {
       /* Generate a cache control header if necessary. We place a max
       /* Generate a cache control header if necessary. We place a max