Replacing stringstream based int->string conversion with boost karma
based generator
This commit is contained in:
parent
c39314c643
commit
f057054172
@ -143,9 +143,9 @@ Reply Reply::stockReply(Reply::status_type status) {
|
|||||||
rep.headers[0].name = "Access-Control-Allow-Origin";
|
rep.headers[0].name = "Access-Control-Allow-Origin";
|
||||||
rep.headers[0].value = "*";
|
rep.headers[0].value = "*";
|
||||||
rep.headers[1].name = "Content-Length";
|
rep.headers[1].name = "Content-Length";
|
||||||
std::ostringstream s;
|
std::string s;
|
||||||
s << rep.content.size();
|
intToString(rep.content.size(), s);
|
||||||
rep.headers[1].value = s.str();
|
rep.headers[1].value = s;
|
||||||
rep.headers[2].name = "Content-Type";
|
rep.headers[2].name = "Content-Type";
|
||||||
rep.headers[2].value = "text/html";
|
rep.headers[2].value = "text/html";
|
||||||
return rep;
|
return rep;
|
||||||
|
Loading…
Reference in New Issue
Block a user