Put common constants in atom_constants

This commit is contained in:
Cheng Zhao 2015-12-01 16:21:15 +08:00
parent a2f1390b0d
commit 0f17a0163d
8 changed files with 35 additions and 9 deletions

View file

@ -6,6 +6,8 @@
#include <string>
#include "atom/common/atom_constants.h"
namespace atom {
URLRequestAsyncAsarJob::URLRequestAsyncAsarJob(
@ -36,12 +38,11 @@ void URLRequestAsyncAsarJob::StartAsync(scoped_ptr<base::Value> options) {
}
}
void URLRequestAsyncAsarJob::GetResponseInfo(net::HttpResponseInfo* info) {
std::string status("HTTP/1.1 200 OK");
net::HttpResponseHeaders* headers = new net::HttpResponseHeaders(status);
headers->AddHeader(kCorsHeader);
headers->AddHeader(kCORSHeader);
info->headers = headers;
}