X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/b92547a5de3a3fb4f14a2bea4a4e776b8da3cb5c..2f5c973fdf3f7fb25b13996b66d566c58066f6a0:/Server/src/httprequest.cpp?ds=sidebyside diff --git a/Server/src/httprequest.cpp b/Server/src/httprequest.cpp index 2fb8661..aa5d9cc 100644 --- a/Server/src/httprequest.cpp +++ b/Server/src/httprequest.cpp @@ -43,7 +43,7 @@ HTTPRequest::~HTTPRequest(void) { #endif // DEBUG } -HTTPRequest::HTTPRequest(const string& uri, const HTTPMethod& method, +HTTPRequest::HTTPRequest(const string& uri, const HTTPMethod& method, const string& query, const string& version): HTTPMessage(version), method(method), uri(uri), query(query) { #ifdef DEBUG @@ -155,7 +155,7 @@ ostream& operator<<(ostream& os, const HTTPRequest& req) { os << "?" << req.query; } // TODO ver que este bien el \r\l - os << " HTTP/" << req.version << "\r\n" << static_cast(req); + os << " HTTP/" << req.version << "\n\r" << static_cast(req); return os; }