You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 10, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 10, 2025. It is now read-only.
A user has this in his .conf file:
Header set ServerID "XXXX"
he reports that the ServerID is stripped by mod_pagespeed on serving. Looking
at the code I think this is correct.
in apache/mod_instaweb.cc, function rewrite_html, we have this block of code:
if (!context->sent_headers()) {
ResponseHeaders* headers = context->response_headers();
apr_table_clear(request->headers_out);
AddResponseHeadersToRequest(*headers, request);
headers->Clear();
context->set_sent_headers(true);
}
That call to apr_table_clear is the culprit. I think instead we need to
rewrite the existing headers, replacing only the ones that we need to override.
Original issue reported on code.google.com by jmara...@google.com on 4 Jan 2012 at 3:57
Activity