diff options
author | Amin Hassani <ahassani@google.com> | 2018-03-06 13:25:40 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-03-19 14:18:54 -0700 |
commit | 71818c8409812c5a08124627c19aa8ea0625a72e (patch) | |
tree | 346f408afac059a6f89375656246ee060c8977ad /test_http_server.cc | |
parent | e79eab633e42036e5aab62a69f31347127f136d1 (diff) |
Partially Revert 2b9d241
2b9d2417722cd4052b0e22494886f93c5b4ef042 update_engine: Update libchrome APIS to r456626.
The above commit changes the libchrome API used in update_engine to r456626. But
the libchrome has not been upreved fully in the CrOS yet with the exception of
some changes represented in UE like CL:882543. So, now we need to revert the
changes partially untill the libchrome is updated.
BUG=chromium:815356
TEST=unittests, precq
Change-Id: If2207f0672c7b9f6dab84e676d9fb8423a047372
Reviewed-on: https://chromium-review.googlesource.com/965266
Commit-Ready: Amin Hassani <ahassani@chromium.org>
Tested-by: Amin Hassani <ahassani@chromium.org>
Reviewed-by: Ben Chan <benchan@chromium.org>
Reviewed-by: Sen Jiang <senj@chromium.org>
Diffstat (limited to 'test_http_server.cc')
-rw-r--r-- | test_http_server.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test_http_server.cc b/test_http_server.cc index cf156720..39a12ed5 100644 --- a/test_http_server.cc +++ b/test_http_server.cc @@ -98,11 +98,9 @@ bool ParseRequest(int fd, HttpRequest* request) { request->raw_headers = headers; // Break header into lines. - vector<string> lines = base::SplitStringUsingSubstr( - headers.substr(0, headers.length() - strlen(EOL EOL)), - EOL, - base::TRIM_WHITESPACE, - base::SPLIT_WANT_ALL); + vector<string> lines; + base::SplitStringUsingSubstr( + headers.substr(0, headers.length() - strlen(EOL EOL)), EOL, &lines); // Decode URL line. vector<string> terms = base::SplitString(lines[0], base::kWhitespaceASCII, |