X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/7e74b790d290cd7d776349503bb361c47933c01f..b804b4bd1f222976f6a1fb3156fede8e26e32d3d:/Server/src/httpresponse.cpp?ds=inline diff --git a/Server/src/httpresponse.cpp b/Server/src/httpresponse.cpp index 0177ae3..2ae86a9 100644 --- a/Server/src/httpresponse.cpp +++ b/Server/src/httpresponse.cpp @@ -122,9 +122,7 @@ istream& operator>>(istream& is, HTTPResponse& resp) if (line.length() != 3) { throw HTTPResponse::INVALID_HTTP_RESPONSE_CODE; } - stringstream ss; - ss << line; // TODO ver forma mas linda de convertir - ss >> resp.status_code; + to(line, resp.status_code); is >> static_cast(resp); return is; }