From 41119b5966c76b2826769b21db683c5a4ebb0b7c Mon Sep 17 00:00:00 2001 From: itzaname Date: Wed, 17 Mar 2021 08:41:51 -0400 Subject: [PATCH] Maybe fix this --- asset.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/asset.go b/asset.go index 95d30d2..fd5e1ff 100644 --- a/asset.go +++ b/asset.go @@ -58,7 +58,9 @@ func (s *Session) CreateAsset(options *AssetUploadOptions, f io.Reader) (AssetUp endpoint.RawQuery = query.Encode() req, err := http.NewRequest("POST", endpoint.String(), f) - req.Header.Set("user-agent", "Roblox") + req.Header.Set("user-agent", "Roblox/WinInet") + req.Header.Set("content-type", "application/xml") + req.Header.Set("accept", "application/json") // Perform request resp, err := s.client.Do(req)