OSDN Git Service
(root)
/
hmh
/
hhml.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3b380d
)
bug fix.
author
visor
<visor@users.sourceforge.jp>
Tue, 10 Sep 2013 13:43:43 +0000
(22:43 +0900)
committer
visor
<visor@users.sourceforge.jp>
Tue, 10 Sep 2013 13:43:43 +0000
(22:43 +0900)
lib/http.cc
patch
|
blob
|
history
diff --git
a/lib/http.cc
b/lib/http.cc
index
e02ae96
..
0f89fe3
100644
(file)
--- a/
lib/http.cc
+++ b/
lib/http.cc
@@
-859,12
+859,12
@@
void HTTPSend::readReplyBody (TcpClient& client, TcpBuf& buf, ustring& ans) {
ans = fixUTF8 (rcv (ostr.str ()));
}
-const ustring* HTTPSend::findHeader (const ustring& name) {
+const ustring* HTTPSend::findHeader (const ustring& name) {
// nameは小文字に変換すること
std::vector<mapelem>::const_iterator b = header_reply.begin ();
std::vector<mapelem>::const_iterator e = header_reply.end ();
for (; b < e; b ++) {
- if (
b->first
== name) {
+ if (
toLower (b->first)
== name) {
return &b->second;
}
}