diff options
author | Alex Vakulenko <avakulenko@chromium.org> | 2015-04-09 15:17:17 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-04-13 21:31:55 +0000 |
commit | ba08992d1e8fce01ebc37518efecfea92d8f44cf (patch) | |
tree | e4bc4aea4f44743c695e566308e2741cabfb68fd /metrics | |
parent | eba8a014cf779d5f57846b7d4a7edb794d0d97ca (diff) | |
download | core-ba08992d1e8fce01ebc37518efecfea92d8f44cf.tar.gz core-ba08992d1e8fce01ebc37518efecfea92d8f44cf.tar.bz2 core-ba08992d1e8fce01ebc37518efecfea92d8f44cf.zip |
libchromeos: Switch http Response to use streams
Make the response data of an HTTP request to use stream interface.
BUG=None
TEST=`FEATURES=test emerge-link libchromeos`
Change-Id: I4d0e427e90f154a83ffd75973b4c211a989c1993
Reviewed-on: https://chromium-review.googlesource.com/265068
Trybot-Ready: Alex Vakulenko <avakulenko@chromium.org>
Tested-by: Alex Vakulenko <avakulenko@chromium.org>
Reviewed-by: Christopher Wiley <wiley@chromium.org>
Commit-Queue: Alex Vakulenko <avakulenko@chromium.org>
Diffstat (limited to 'metrics')
-rw-r--r-- | metrics/uploader/sender_http.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/metrics/uploader/sender_http.cc b/metrics/uploader/sender_http.cc index 8e89b6eb5..8488b6666 100644 --- a/metrics/uploader/sender_http.cc +++ b/metrics/uploader/sender_http.cc @@ -28,7 +28,7 @@ bool HttpSender::Send(const std::string& content, headers, chromeos::http::Transport::CreateDefault(), &error); - if (!response || response->GetDataAsString() != "OK") { + if (!response || response->ExtractDataAsString() != "OK") { if (error) { DLOG(ERROR) << "Failed to send data: " << error->GetMessage(); } |