X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/7e74b790d290cd7d776349503bb361c47933c01f..9322e49b932d824e5664aa8c0e0f9a41464537b1:/Server/src/httpresponse.cpp 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; }