Minor cleanups
This commit is contained in:
parent
1ae9f69b1f
commit
f39f21b56f
3 changed files with 15 additions and 17 deletions
|
|
@ -228,7 +228,6 @@ namespace SimpleWeb {
|
|||
public:
|
||||
/// Parse request line and header fields
|
||||
static bool parse(std::istream &stream, std::string &method, std::string &path, std::string &query_string, std::string &version, CaseInsensitiveMultimap &header) noexcept {
|
||||
header.clear();
|
||||
std::string line;
|
||||
std::size_t method_end;
|
||||
if(getline(stream, line) && (method_end = line.find(' ')) != std::string::npos) {
|
||||
|
|
@ -276,7 +275,6 @@ namespace SimpleWeb {
|
|||
public:
|
||||
/// Parse status line and header fields
|
||||
static bool parse(std::istream &stream, std::string &version, std::string &status_code, CaseInsensitiveMultimap &header) noexcept {
|
||||
header.clear();
|
||||
std::string line;
|
||||
std::size_t version_end;
|
||||
if(getline(stream, line) && (version_end = line.find(' ')) != std::string::npos) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue