fix: remove duplicated status code (#15707)

Removed the hardcoded status code from the protocol response as the real status code is appended immediately after.
This commit is contained in:
malern 2018-11-21 16:47:05 +00:00 committed by Charles Kerr
parent 47bf8e1bb3
commit a68e3371f3

View file

@ -120,7 +120,7 @@ void URLRequestBufferJob::Kill() {
}
void URLRequestBufferJob::GetResponseInfo(net::HttpResponseInfo* info) {
std::string status("HTTP/1.1 200 OK");
std::string status("HTTP/1.1 ");
status.append(base::IntToString(status_code_));
status.append(" ");
status.append(net::GetHttpReasonPhrase(status_code_));