Browse Source

fix: remove duplicated status code (#15707)

Removed the hardcoded status code from the protocol response as the real status code is appended immediately after.
malern 6 years ago
parent
commit
a68e3371f3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      atom/browser/net/url_request_buffer_job.cc

+ 1 - 1
atom/browser/net/url_request_buffer_job.cc

@@ -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_));