diff options
author | pg9182 <96569817+pg9182@users.noreply.github.com> | 2022-10-12 13:13:41 -0400 |
---|---|---|
committer | pg9182 <96569817+pg9182@users.noreply.github.com> | 2022-10-12 13:13:41 -0400 |
commit | c442881bed7951348ca1c0ac041320ee38b380e5 (patch) | |
tree | f6c2c807061879a0d30f98517d26ace6279ded09 | |
parent | c60d1d4d82481c5946a47cb7fb84a2b00659abee (diff) | |
download | Atlas-c442881bed7951348ca1c0ac041320ee38b380e5.tar.gz Atlas-c442881bed7951348ca1c0ac041320ee38b380e5.zip |
pkg/origin: Add more request headers
-rw-r--r-- | pkg/origin/origin.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/origin/origin.go b/pkg/origin/origin.go index c354e27..1ada8a3 100644 --- a/pkg/origin/origin.go +++ b/pkg/origin/origin.go @@ -97,6 +97,8 @@ func (c *Client) getUserInfo(retry bool, ctx context.Context, uid ...int) ([]Use } req.Header.Set("AuthToken", sid) + req.Header.Set("X-Origin-Platform", "UnknownOS") + req.Header.Set("Referrer", "https://www.origin.com/") resp, err := c.do(req) if err != nil { |