Maybe fix this
This commit is contained in:
parent
9652a2630e
commit
41119b5966
4
asset.go
4
asset.go
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user