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); |