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

Comparing Smersh/Daemon.cpp (file contents):
Revision 181 by Douglas Thrift, 2004-07-03T05:41:00-07:00 vs.
Revision 182 by Douglas Thrift, 2004-07-03T06:52:04-07:00

# Line 205 | Line 205 | int Daemon::handle(Client* client)
205                  ostringstream content;
206                  Smersh smersh(post, content, env);
207  
208 <                sio << "Content-Length: " << content.str().substr(40).length() << crlf
208 >                sio << "Content-Length: " << content.str().length() << crlf
209                          << "Content-Type: text/html; charset=UTF-8\r\n\r\n";
210  
211 <                sio.write(content.str().substr(40).data(), content.str().size() - 40);
211 >                sio.write(content.str().data(), content.str().size());
212  
213 <                sent = content.str().size() - 40;
213 >                sent = content.str().size();
214          }
215          else if (head) sio << "Content-Type: text/html; charset=UTF-8\r\n\r\n";
216          else sent = error(sio, code, env);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines