]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Server/src/httpresponse.cpp
Mas msg lindos
[z.facultad/75.42/plaqui.git] / Server / src / httpresponse.cpp
index 0177ae35cf44c9b5aef2f0c0f687569af5b4d85e..2ae86a9b043890df97e37c45088ff4da9d7d6660 100644 (file)
@@ -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<HTTPMessage&>(resp);
        return is;
 }