Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 93256 Details for
Bug 134540
new ebuild: net-misc/aria2
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
header.patch
header.patch (text/plain), 2.52 KB, created by
Bjoern Olausson
on 2006-08-02 04:55:11 UTC
(
hide
)
Description:
header.patch
Filename:
MIME Type:
Creator:
Bjoern Olausson
Created:
2006-08-02 04:55:11 UTC
Size:
2.52 KB
patch
obsolete
>*** 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); > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 134540
:
88835
|
91225
|
93255
|
93256
|
94305
|
95392