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,7 @@
#include <string>
#include "atom/common/atom_constants.h"
#include "net/base/net_errors.h"
namespace atom {
@ -32,7 +33,7 @@ void URLRequestStringJob::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);
if (!mime_type_.empty()) {
std::string content_type_header(net::HttpRequestHeaders::kContentType);