Unverified Commit 97ab680b authored by Igor [hyperxor]'s avatar Igor [hyperxor] Committed by GitHub

Fix issue #681 and small improvement (#736)

parent 96ee08ec
......@@ -146,7 +146,6 @@ void CacheControl::parseRaw(const char *str, size_t len) {
}
directives_.push_back(
CacheDirective(d.repr, std::chrono::seconds(secs)));
found = true;
break;
}
}
......@@ -406,10 +405,7 @@ void Authorization::setBasicUserPassword(const std::string &User,
}
void Authorization::parse(const std::string &data) {
try {
value_ = data;
} catch (const std::invalid_argument &e) {
}
}
void Authorization::write(std::ostream &os) const { os << value_; }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment