Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Commit

Permalink
Adjust our UA string to fix to make it compatible with fonts.google.c…
Browse files Browse the repository at this point in the history
…om parsing on IE11.

Counterpart of:
apache/incubator-pagespeed-mod@f3639e8
  • Loading branch information
morlovich committed Jan 27, 2016
1 parent 1926c78 commit 0a60e0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ngx_fetch.cc
Original file line number Diff line number Diff line change
Expand Up @@ -938,8 +938,8 @@ void NgxFetch::FixUserAgent() {
user_agent += "NgxNativeFetcher";
}
GoogleString version = StrCat(
" ", kModPagespeedSubrequestUserAgent,
"/" MOD_PAGESPEED_VERSION_STRING "-" LASTCHANGE_STRING);
" (", kModPagespeedSubrequestUserAgent,
"/" MOD_PAGESPEED_VERSION_STRING "-" LASTCHANGE_STRING ")");
if (!StringPiece(user_agent).ends_with(version)) {
user_agent += version;
}
Expand Down

0 comments on commit 0a60e0e

Please sign in to comment.