summaryrefslogtreecommitdiff
path: root/methods/http.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:52:12 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:52:12 +0000
commit30456e14d97be16516a5a84ce9bf9acba143da87 (patch)
tree77b6cb17344949223975e24d180b24e21b86f25c /methods/http.cc
parente7432370a1c503b0c6d30b501fa84406e3d1bef2 (diff)
Configuration fixes
Author: jgg Date: 1998-12-11 07:23:17 GMT Configuration fixes
Diffstat (limited to 'methods/http.cc')
-rw-r--r--methods/http.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/methods/http.cc b/methods/http.cc
index c906877a3..e947bcc95 100644
--- a/methods/http.cc
+++ b/methods/http.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: http.cc,v 1.15 1998/12/11 01:45:36 jgg Exp $
+// $Id: http.cc,v 1.16 1998/12/11 07:23:17 jgg Exp $
/* ######################################################################
HTTP Aquire Method - This is the HTTP aquire method for APT.
@@ -504,7 +504,7 @@ bool ServerState::HeaderLine(string Line)
{
if (Line.empty() == true)
return true;
-
+
// The http server might be trying to do something evil.
if (Line.length() >= MAXLEN)
return _error->Error("Got a single header line over %u chars",MAXLEN);
@@ -964,8 +964,9 @@ bool HttpMethod::Configuration(string Message)
if (pkgAcqMethod::Configuration(Message) == false)
return false;
- TimeOut = _config->FindI("Acquire::http::Timeout",120);
- PipelineDepth = _config->FindI("Acquire::http::Pipeline-Depth",5);
+ TimeOut = _config->FindI("Acquire::http::Timeout",TimeOut);
+ PipelineDepth = _config->FindI("Acquire::http::Pipeline-Depth",
+ PipelineDepth);
return true;
}