diff options
author | FuXiaoHei <fuxiaohei@hexiaz.com> | 2014-03-25 18:45:41 +0800 |
---|---|---|
committer | FuXiaoHei <fuxiaohei@hexiaz.com> | 2014-03-25 18:45:41 +0800 |
commit | 94ac5ebb9f100c77da02b56961119a25cd9e6d20 (patch) | |
tree | 1b67abeea6373984c5af64e3e819ccebc6c8b2c2 /modules | |
parent | 2a2f025388b2f47cff4162adc207af2ba68d64d9 (diff) | |
parent | f0352789cd1e5c3ee35ed685e29421f0bc02f336 (diff) |
Merge branch 'master' of https://github.com/gogits/gogs
Diffstat (limited to 'modules')
-rw-r--r-- | modules/avatar/avatar.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/avatar/avatar.go b/modules/avatar/avatar.go index 0ba20294..3b423a6d 100644 --- a/modules/avatar/avatar.go +++ b/modules/avatar/avatar.go @@ -251,8 +251,8 @@ var client = &http.Client{} func (this *thunderTask) fetch() error { req, _ := http.NewRequest("GET", this.Url, nil) - req.Header.Set("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8") - req.Header.Set("Accept-Encoding", "gzip,deflate,sdch") + req.Header.Set("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,image/jpeg,image/png,*/*;q=0.8") + req.Header.Set("Accept-Encoding", "deflate,sdch") req.Header.Set("Accept-Language", "zh-CN,zh;q=0.8") req.Header.Set("Cache-Control", "no-cache") req.Header.Set("User-Agent", "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36") |