Skip to content

Commit

Permalink
Switch to IE8 UA for WOF download
Browse files Browse the repository at this point in the history
  • Loading branch information
neverpanic committed Jun 13, 2015
1 parent 9af28e3 commit 5553e98
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion google-font-download
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
# - Robert, github.com/rotx.
#
# Changelog:
# Version 1.1.1, 2015-04-09
# - Switch user agent to IE 8 for WOF to fix problems
# Version 1.1, 2014-06-21
# - Remove colons and spaces from file names for Windows compatibility
# - Add check for Bash version, 4.x is required
Expand Down Expand Up @@ -88,7 +90,7 @@ fi

# Store the useragents we're going to use to trick Google's servers into serving us the correct CSS file.
declare -A useragent
useragent[eot]='Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)'
useragent[eot]='Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0)'
useragent[woff]='Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0'
useragent[svg]='Mozilla/4.0 (iPad; CPU OS 4_0_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/4.1 Mobile/9A405 Safari/7534.48.3'
useragent[ttf]='Mozilla/5.0 (Windows NT 6.1) AppleWebKit/534.54.16 (KHTML, like Gecko) Version/5.1.4 Safari/534.54.16'
Expand Down

0 comments on commit 5553e98

Please sign in to comment.