diff options
Diffstat (limited to 'net-misc/aria2/files/aria2-0.6.0_p1-http_header.patch')
-rw-r--r-- | net-misc/aria2/files/aria2-0.6.0_p1-http_header.patch | 92 |
1 files changed, 0 insertions, 92 deletions
diff --git a/net-misc/aria2/files/aria2-0.6.0_p1-http_header.patch b/net-misc/aria2/files/aria2-0.6.0_p1-http_header.patch deleted file mode 100644 index cb03dda40..000000000 --- a/net-misc/aria2/files/aria2-0.6.0_p1-http_header.patch +++ /dev/null @@ -1,92 +0,0 @@ -*** HttpHeader.cc 2006-03-23 01:21:11.000000000 +0900 ---- HttpHeader.cc 2006-08-02 00:51:31.000000000 +0900 -*************** -*** 20,37 **** - */ - /* copyright --> */ - #include "HttpHeader.h" - - void HttpHeader::put(const string& name, const string& value) { -! multimap<string, string>::value_type vt(name, value); - table.insert(vt); - } - - bool HttpHeader::defined(const string& name) const { -! return table.count(name) == 1; - } - - string HttpHeader::getFirst(const string& name) const { -! multimap<string, string>::const_iterator itr = table.find(name); - if(itr == table.end()) { - return ""; - } else { ---- 20,38 ---- - */ - /* copyright --> */ - #include "HttpHeader.h" -+ #include "Util.h" - - void HttpHeader::put(const string& name, const string& value) { -! multimap<string, string>::value_type vt(Util::toLower(name), value); - table.insert(vt); - } - - bool HttpHeader::defined(const string& name) const { -! return table.count(Util::toLower(name)) >= 1; - } - - string HttpHeader::getFirst(const string& name) const { -! multimap<string, string>::const_iterator itr = table.find(Util::toLower(name)); - if(itr == table.end()) { - return ""; - } else { -*************** -*** 41,66 **** - - Strings HttpHeader::get(const string& name) const { - Strings v; -! for(multimap<string, string>::const_iterator itr = table.find(name); itr != table.end(); itr++) { - v.push_back((*itr).second); - } - return v; - } - - int HttpHeader::getFirstAsInt(const string& name) const { -! multimap<string, string>::const_iterator itr = table.find(name); -! if(itr == table.end()) { -! return 0; -! } else { -! return (int)strtol((*itr).second.c_str(), NULL, 10); -! } - } - - long long int HttpHeader::getFirstAsLLInt(const string& name) const { -! multimap<string, string>::const_iterator itr = table.find(name); -! if(itr == table.end()) { - return 0; - } else { -! return strtoll((*itr).second.c_str(), NULL, 10); - } - } ---- 42,62 ---- - - Strings HttpHeader::get(const string& name) const { - Strings v; -! for(multimap<string, string>::const_iterator itr = table.find(Util::toLower(name)); itr != table.end(); itr++) { - v.push_back((*itr).second); - } - return v; - } - - int HttpHeader::getFirstAsInt(const string& name) const { -! return (int)getFirstAsLLInt(name); - } - - long long int HttpHeader::getFirstAsLLInt(const string& name) const { -! string value = getFirst(name); -! if(value == "") { - return 0; - } else { -! return strtoll(value.c_str(), NULL, 10); - } - } |