aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpg9182 <96569817+pg9182@users.noreply.github.com>2022-10-12 13:13:41 -0400
committerpg9182 <96569817+pg9182@users.noreply.github.com>2022-10-12 13:13:41 -0400
commitc442881bed7951348ca1c0ac041320ee38b380e5 (patch)
treef6c2c807061879a0d30f98517d26ace6279ded09
parentc60d1d4d82481c5946a47cb7fb84a2b00659abee (diff)
downloadAtlas-c442881bed7951348ca1c0ac041320ee38b380e5.tar.gz
Atlas-c442881bed7951348ca1c0ac041320ee38b380e5.zip
pkg/origin: Add more request headers
-rw-r--r--pkg/origin/origin.go2
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 {