mirror of https://github.com/aria2/aria2
2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed compiler warning * src/Cookie.ccpull/1/head
parent
d046c89ea7
commit
53151f7e91
|
@ -1,3 +1,8 @@
|
|||
2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Fixed compiler warning
|
||||
* src/Cookie.cc
|
||||
|
||||
2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Fixed the cookie implementation based on RFC2965.
|
||||
|
|
|
@ -180,7 +180,7 @@ bool Cookie::validate(const std::string& requestHost,
|
|||
size_t dotCount = std::count(normReqHost.begin(),
|
||||
normReqHost.begin()+
|
||||
(normReqHost.size()-_domain.size()), '.');
|
||||
if(dotCount > 1 || dotCount == 1 && normReqHost[0] != '.') {
|
||||
if(dotCount > 1 || (dotCount == 1 && normReqHost[0] != '.')) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue