http::request::raw should be const

This commit is contained in:
Peter Thorson committed 2014-11-08 08:18:02 -05:00
1 parent 5fe6f8338d
commit dc7431c37f
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -131,7 +131,7 @@ inline size_t request::consume(const char *buf, size_t len) {
}
}
inline std::string request::raw() {
inline std::string request::raw() const {
// TODO: validation. Make sure all required fields have been set?
std::stringstream ret;
+1 -1
View File
@@ -85,7 +85,7 @@ public:
}
/// Returns the full raw request
std::string raw();
std::string raw() const;
/// Set the HTTP method. Must be a valid HTTP token
void set_method(const std::string& method);