80 |
|
Smersh::Smersh(istream& sin, ostream& sout, const Environment& env) |
81 |
|
{ |
82 |
|
parse(sin, env); |
83 |
< |
smersh(sout); |
83 |
> |
smersh(sout, env); |
84 |
|
} |
85 |
|
|
86 |
|
Environment Smersh::env; |
113 |
|
while (query.good()); |
114 |
|
} |
115 |
|
|
116 |
< |
void Smersh::smersh(ostream& sout) |
116 |
> |
void Smersh::smersh(ostream& sout, const Environment& env) |
117 |
|
{ |
118 |
< |
sout << "Content-Type: text/html; charset=UTF-8\n\n"; |
118 |
> |
if (&env == &Smersh::env) sout << "Content-Type: text/html; charset=UTF-8\r" |
119 |
> |
<< "\n\r\n"; |
120 |
|
|
121 |
|
vector<Person> people(1); |
122 |
|
|
179 |
|
|
180 |
|
output(sout, people); |
181 |
|
|
182 |
< |
sout << "!</font></strong></p></body></html>\n"; |
182 |
> |
sout << "!</font></strong></p></body></html>\r\n"; |
183 |
|
} |
184 |
|
|
185 |
|
void Smersh::output(ostream& sout, const vector<Person>& people) |