base fetch: populate the response status code
Copy the response status code from nginx to pagespeed. Merge of Otto's pull request #60
This commit is contained in:
@@ -41,6 +41,8 @@ void NgxBaseFetch::PopulateResponseHeaders() {
|
||||
CopyHeadersFromTable<ResponseHeaders>(&request_->headers_out.headers,
|
||||
response_headers());
|
||||
|
||||
response_headers()->set_status_code(request_->headers_out.status);
|
||||
|
||||
// Manually copy over the content type because it's not included in
|
||||
// request_->headers_out.headers.
|
||||
response_headers()->Add(
|
||||
|
||||
Reference in New Issue
Block a user