Enable Mac network fetcher to handle binary data, and post additional headers to server.
1) Copy raw bytes from std::string to NSData when making request. 2) Copy raw bytes from NSMutableData to std::string when post response back to caller. 3) Forward additional post headers to NSMutableURLRequest so they can be actually sent. Bug: 1106820 Change-Id: I4517abea4ffb087f4bd433dcea85ff0e1a0427d2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2304994 Commit-Queue: Xiaoling Bao <xiaolingbao@chromium.org> Reviewed-by:Sorin Jianu <sorin@chromium.org> Cr-Commit-Position: refs/heads/master@{#789686}
Showing
Please register or sign in to comment