Commit a3fef780 authored by mef's avatar mef Committed by Commit bot

[Cronet] Send request headers automatically in bidirectional stream on iOS.

BUG=599902

Review-Url: https://codereview.chromium.org/2039943002
Cr-Commit-Position: refs/heads/master@{#398045}
parent 6a260681
......@@ -113,7 +113,7 @@ void CronetBidirectionalStream::Destroy() {
base::Unretained(this)));
}
void CronetBidirectionalStream::OnStreamReady(bool /*request_headers_sent*/) {
void CronetBidirectionalStream::OnStreamReady(bool request_headers_sent) {
DCHECK(environment_->IsOnNetworkThread());
DCHECK(write_state_ == STARTED);
write_state_ = WAITING_FOR_WRITE;
......@@ -195,7 +195,7 @@ void CronetBidirectionalStream::StartOnNetworkThread(
std::move(request_info), environment_->GetURLRequestContext()
->http_transaction_factory()
->GetSession(),
/*disable_auto_flush=*/false, this));
/*send_request_headers_automatically=*/true, this));
DCHECK(read_state_ == NOT_STARTED && write_state_ == NOT_STARTED);
read_state_ = write_state_ = STARTED;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment