Skip to content

Commit

Permalink
Update proxy.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Super12138 authored Oct 5, 2023
1 parent 83440e5 commit a7acec0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ func NewSingleHostReverseProxy(target *url.URL) *httputil.ReverseProxy {

// m pc 画图大小不一样
if isMobile {
req.Header.Set("User-Agent", "Mozilla/5.0 (iPhone; CPU iPhone OS 15_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.7 Mobile/15E148 Safari/605.1.15 BingSapphire/1.0.410427012")
req.Header.Set("User-Agent", "Mozilla/5.0 (iPhone; CPU iPhone OS 15_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.7 Mobile/15E148 Safari/605.1.15 BingSapphire/1.0.410529013")
} else {
req.Header.Set("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36 Edg/113.0.1774.35")
req.Header.Set("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.55")
}

for hKey := range req.Header {
Expand Down

0 comments on commit a7acec0

Please sign in to comment.