ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/Smersh/Smersh.cpp
(Generate patch)

Comparing Smersh/Smersh.cpp (file contents):
Revision 177 by Douglas Thrift, 2004-06-26T01:26:41-07:00 vs.
Revision 182 by Douglas Thrift, 2004-07-03T06:52:04-07:00

# Line 80 | Line 80 | int main(int argc, char* argv[])
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;
# Line 113 | Line 113 | void Smersh::parse(istream& sin, const E
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  
# Line 178 | Line 179 | void Smersh::smersh(ostream& sout)
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)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines