X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/7e74b790d290cd7d776349503bb361c47933c01f..ea3d0f30b8e44952b1b9ac3e2f5b2a08cd65ca48:/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; }