104 |
|
|
105 |
|
if (transformer.transform(path.c_str(), output) == 0) |
106 |
|
{ |
107 |
< |
string type = "text/html; charset=ISO-8859-1"; |
108 |
< |
Matcher matcher("<META http-equiv=\"Content-Type\" content=\"(.*)\">"); |
107 |
> |
string type = "text/xml"; |
108 |
> |
Matcher matcher("http-equiv=\"Content-Type\" content=\"(.*)\""); |
109 |
|
|
110 |
|
if (matcher == output.str()) |
111 |
|
{ |
122 |
|
|
123 |
|
void Bender::pass(const string& path) |
124 |
|
{ |
125 |
< |
cout << "Content-Type: text/xml; charset=ISO-8859-1\n\n"; |
125 |
> |
cout << "Content-Type: text/xml\n\n"; |
126 |
|
|
127 |
|
ifstream fin(path.c_str()); |
128 |
|
string line; |