Skip to content

Commit

Permalink
去掉虎牙的iphone useragent,防止被服务器重定向到已失效的手机端页面
Browse files Browse the repository at this point in the history
  • Loading branch information
kira1928 committed May 30, 2024
1 parent 7a2e5b3 commit 99d841f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/live/huya/huya.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
const (
domain = "www.huya.com"
cnName = "虎牙"
userAgent = "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1"
userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36"
)

func init() {
Expand Down

0 comments on commit 99d841f

Please sign in to comment.