Maybe fix this

This commit is contained in:
itzaname 2021-03-17 08:41:51 -04:00
parent 9652a2630e
commit 41119b5966

View File

@ -58,7 +58,9 @@ func (s *Session) CreateAsset(options *AssetUploadOptions, f io.Reader) (AssetUp
endpoint.RawQuery = query.Encode() endpoint.RawQuery = query.Encode()
req, err := http.NewRequest("POST", endpoint.String(), f) 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 // Perform request
resp, err := s.client.Do(req) resp, err := s.client.Do(req)