chore: use HTTP status code constants (#29378)

This commit is contained in:
David Sanders 2021-05-31 18:47:53 -07:00 committed by GitHub
parent ba26580f23
commit 0208e4adad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 4 deletions

View file

@ -101,7 +101,7 @@ network::mojom::URLResponseHeadPtr ToResponseHead(
return head;
}
int status_code = 200;
int status_code = net::HTTP_OK;
dict.Get("statusCode", &status_code);
head->headers = new net::HttpResponseHeaders(base::StringPrintf(
"HTTP/1.1 %d %s", status_code,