User-Agent

This commit is contained in:
jiangyong 2023-08-27 16:40:12 +08:00
parent a0c9011d1c
commit e105d85938
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,4 @@
{ {
"token": "50ce0f30643185a4d0662c61245ea4a1", "token": "711ed95e483af1e8d61705c9c894a5b2",
"syncInterval": 10 "syncInterval": 10
} }

View File

@ -147,6 +147,7 @@ func (s *SyncOrder) httpPost(requestUrl string) ([]byte, error) {
return nil, err return nil, err
} }
req.Header.Set("token", s.token) req.Header.Set("token", s.token)
req.Header.Set("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36")
resp, err := client.Do(req) resp, err := client.Do(req)
if err != nil { if err != nil {