Rework the http header parsing.

This commit is contained in:
Adam Gu
2018-07-10 16:27:10 +08:00
parent cbf3efbcba
commit 9b35d0f06c
7 changed files with 87 additions and 37 deletions
+1 -2
View File
@@ -151,8 +151,7 @@ std::vector<std::string> Url::SplitPath(const std::string& path) {
}
static bool SplitKeyValue(const std::string& kv,
std::string* key,
std::string* value) {
std::string* key, std::string* value) {
std::size_t i = kv.find_first_of('=');
if (i == std::string::npos || i == 0) {
return false;