Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e812249c authored by Nathan Bullock's avatar Nathan Bullock Committed by chrome-internal-fetch
Browse files

metrics: protobufs need to be uploaded as binary

TEST=manually tested on panther_embedded
BUG=none

Change-Id: Id07952d2b015c4199344556686218a78b8d79193
Reviewed-on: https://chromium-review.googlesource.com/221060


Reviewed-by: default avatarBertrand Simonnet <bsimonnet@chromium.org>
Commit-Queue: Nathan Bullock <nathanbullock@google.com>
Tested-by: default avatarNathan Bullock <nathanbullock@google.com>
parent 52d9edb5
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -21,9 +21,10 @@ bool HttpSender::Send(const std::string& content,

  chromeos::http::HeaderList headers = {{"X-Chrome-UMA-Log-SHA1", hash}};
  chromeos::ErrorPtr error;
  auto response = chromeos::http::PostText(
  auto response = chromeos::http::PostBinary(
      server_url_,
      content.c_str(),
      content.size(),
      chromeos::mime::application::kWwwFormUrlEncoded,
      headers,
      chromeos::http::Transport::CreateDefault(),