This repository was archived by the owner on Apr 10, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 35
35
OUT=$( $WGET_DUMP $URL )
36
36
check_from " $OUT " fgrep -qi " .eot"
37
37
check_not_from " $OUT " fgrep -qi " .ttf"
38
+
39
+ # And now IE11.
40
+ export WGETRC=$TESTTMP /wgetrc-ie11
41
+ cat > $WGETRC << EOF
42
+ user_agent = Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko
43
+ EOF
44
+ # This should get a woff font. (We used to confuse things so that it would
45
+ # produce ttf).
46
+ fetch_until $URL ' grep -c @font-face' 1
47
+ OUT=$( $WGET_DUMP $URL )
48
+ check_from " $OUT " fgrep -qi " .woff"
49
+ check_not_from " $OUT " fgrep -qi " .ttf"
50
+
38
51
export WGETRC=$WGETRC_OLD
39
52
fi
40
53
Original file line number Diff line number Diff line change @@ -595,8 +595,8 @@ void SerfFetch::FixUserAgent() {
595
595
user_agent += " Serf/" SERF_VERSION_STRING;
596
596
}
597
597
GoogleString version = StrCat (
598
- " " , kModPagespeedSubrequestUserAgent ,
599
- " /" MOD_PAGESPEED_VERSION_STRING " -" LASTCHANGE_STRING);
598
+ " ( " , kModPagespeedSubrequestUserAgent ,
599
+ " /" MOD_PAGESPEED_VERSION_STRING " -" LASTCHANGE_STRING " ) " );
600
600
if (!StringPiece (user_agent).ends_with (version)) {
601
601
user_agent += version;
602
602
}
You can’t perform that action at this time.
0 commit comments