#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
os << "?" << req.query;
}
// TODO ver que este bien el \r\l
- os << " HTTP/" << req.version << "\r\n" << static_cast<const HTTPMessage&>(req);
+ os << " HTTP/" << req.version << "\n\r" << static_cast<const HTTPMessage&>(req);
return os;
}