summaryrefslogtreecommitdiff
path: root/src/Request.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-05-08 13:20:15 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-05-08 13:20:15 +0000
commit5ea933fed14e6722cff0759c01a9ab496bfeeb9a (patch)
tree5a2e999e87cc4ba12ba8df97eec8478face89bdc /src/Request.cc
parent2c54667beb2b05fe20a51f5e89fa3cb5e7d515f6 (diff)
2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Set _supportsPersistentConnection to true by default. * src/Request.cc * src/RequestGroup.cc * test/HttpRequestTest.cc * test/RequestTest.cc
Diffstat (limited to 'src/Request.cc')
-rw-r--r--src/Request.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Request.cc b/src/Request.cc
index cc9c7c94..c34e7855 100644
--- a/src/Request.cc
+++ b/src/Request.cc
@@ -49,7 +49,7 @@ const std::string Request::METHOD_HEAD = "HEAD";
Request::Request():
port(0), tryCount(0),
- _supportsPersistentConnection(false),
+ _supportsPersistentConnection(true),
_keepAliveHint(false),
_pipeliningHint(false),
method(METHOD_GET),
@@ -70,7 +70,7 @@ bool Request::resetUrl() {
bool Request::redirectUrl(const std::string& url) {
previousUrl = "";
- _supportsPersistentConnection = false;
+ _supportsPersistentConnection = true;
return parseUrl(url);
}