removed unnecessary move (this is done automatically in c++11)
This commit is contained in:
parent
f2e03847cb
commit
1f4ed9d4a3
1 changed files with 2 additions and 2 deletions
4
main.cpp
4
main.cpp
|
|
@ -18,7 +18,7 @@ int main() {
|
||||||
//Retrieve string from istream (*request.content)
|
//Retrieve string from istream (*request.content)
|
||||||
stringstream ss;
|
stringstream ss;
|
||||||
*request.content >> ss.rdbuf();
|
*request.content >> ss.rdbuf();
|
||||||
string content=move(ss.str());
|
string content=ss.str();
|
||||||
|
|
||||||
response << "HTTP/1.1 200 OK\r\nContent-Length: " << content.length() << "\r\n\r\n" << content;
|
response << "HTTP/1.1 200 OK\r\nContent-Length: " << content.length() << "\r\n\r\n" << content;
|
||||||
};
|
};
|
||||||
|
|
@ -72,4 +72,4 @@ int main() {
|
||||||
httpserver.start();
|
httpserver.start();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue