73 |
|
return 0; |
74 |
|
} |
75 |
|
|
76 |
< |
Smersh::Smersh(istream& sin, ostream& sout, Environment env) |
76 |
> |
Smersh::Smersh(istream& sin, ostream& sout, const Environment& env) |
77 |
|
{ |
78 |
|
parse(sin, env); |
79 |
|
smersh(sout); |
81 |
|
|
82 |
|
Environment Smersh::env; |
83 |
|
|
84 |
< |
void Smersh::parse(istream& sin, Environment env) |
84 |
> |
void Smersh::parse(istream& sin, const Environment& env) |
85 |
|
{ |
86 |
|
stringstream query(env.get("QUERY_STRING")); |
87 |
|
|
111 |
|
|
112 |
|
void Smersh::smersh(ostream& sout) |
113 |
|
{ |
114 |
< |
sout << "Content-Type: text/html\n\n"; |
114 |
> |
sout << "Content-Type: text/html; charset=UTF-8\n\n"; |
115 |
|
|
116 |
|
vector<Person> people(1); |
117 |
|
|