diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:54:49 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:54:49 +0000 |
commit | c98b1307f0e9c1712b8e36b825724966d9d40eec (patch) | |
tree | 43b74f157e7a3ccb1a525d5c5f6c3d4dca47bf16 /methods | |
parent | 4b1b89c5fe11c9977c55810cba26565e7ac66b36 (diff) |
Added clean install code
Author: jgg
Date: 1999-10-03 21:09:27 GMT
Added clean install code
Diffstat (limited to 'methods')
-rw-r--r-- | methods/http.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/methods/http.cc b/methods/http.cc index ae7646a76..c4a3f1629 100644 --- a/methods/http.cc +++ b/methods/http.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: http.cc,v 1.37 1999/08/03 06:08:23 jgg Exp $ +// $Id: http.cc,v 1.38 1999/10/03 21:09:27 jgg Exp $ /* ###################################################################### HTTP Aquire Method - This is the HTTP aquire method for APT. @@ -54,6 +54,7 @@ int HttpMethod::FailFd = -1; time_t HttpMethod::FailTime = 0; unsigned long PipelineDepth = 10; unsigned long TimeOut = 120; +bool Debug = false; // CircleBuf::CircleBuf - Circular input buffer /*{{{*/ // --------------------------------------------------------------------- @@ -631,7 +632,9 @@ void HttpMethod::SendReq(FetchItem *Itm,CircleBuf &Out) Base64Encode(Proxy.User + ":" + Proxy.Password) + "\r\n"; Req += "User-Agent: Debian APT-HTTP/1.2\r\n\r\n"; -// cerr << Req << endl; + + if (Debug == true) + cerr << Req << endl; Out.Read(Req); } @@ -939,6 +942,7 @@ bool HttpMethod::Configuration(string Message) TimeOut = _config->FindI("Acquire::http::Timeout",TimeOut); PipelineDepth = _config->FindI("Acquire::http::Pipeline-Depth", PipelineDepth); + Debug = _config->FindB("Debug::Acquire::http",false); return true; } |