|
a/src/internfile/myhtmlparse.cpp |
|
b/src/internfile/myhtmlparse.cpp |
|
... |
|
... |
148 |
} else if ((j = p.find("http-equiv")) != p.end()) {
|
148 |
} else if ((j = p.find("http-equiv")) != p.end()) {
|
149 |
string hequiv = j->second;
|
149 |
string hequiv = j->second;
|
150 |
lowercase_term(hequiv);
|
150 |
lowercase_term(hequiv);
|
151 |
if (hequiv == "content-type") {
|
151 |
if (hequiv == "content-type") {
|
152 |
string value = i->second;
|
152 |
string value = i->second;
|
|
|
153 |
MimeHeaderValue p;
|
153 |
MimeHeaderValue p = parseMimeHeaderValue(value);
|
154 |
parseMimeHeaderValue(value, p);
|
154 |
map<string, string>::const_iterator k;
|
155 |
map<string, string>::const_iterator k;
|
155 |
if ((k = p.params.find("charset")) !=
|
156 |
if ((k = p.params.find("charset")) !=
|
156 |
p.params.end()) {
|
157 |
p.params.end()) {
|
157 |
doccharset = k->second;
|
158 |
doccharset = k->second;
|
158 |
if (doccharset != ocharset) {
|
159 |
if (doccharset != ocharset) {
|