//
#include "plaqui/server/httpheaders.h"
+#include "plaqui/server/string.h"
//#include <cstdlib>
#ifdef DEBUG
# include <iostream>
#endif // DEBUG
using namespace std;
-using namespace PlaQui::Server;
+
+namespace PlaQui {
+
+namespace Server {
HTTPHeaders::~HTTPHeaders(void) {
#ifdef DEBUG
// FIXME poner mejores excepciones.
throw "Wrong header";
}
- h[sbuf.substr(0, pos)] = sbuf.substr(pos + 1);
+ h[sbuf.substr(0, pos)] = String(sbuf.substr(pos + 1)).trim();
return is;
}
return os;
}
+} // namespace Server
+
+} // namespace PlaQui
+