From 72663b44179f4c6f3ec2e4ec25d8df3c4590b222 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Fri, 11 Jan 2013 09:51:00 +0100 Subject: * 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) --- methods/http.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'methods') 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 -- cgit v1.2.3