mirror of
https://github.com/electron/electron.git
synced 2026-01-29 01:08:18 -05:00
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:
@@ -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_));
|
||||
|
||||
Reference in New Issue
Block a user