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:
Jeff Kaufman
2012-11-19 11:05:07 -05:00
parent f22401af41
commit e6bd7b7213
+2
View File
@@ -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(