Remove Requester header to handle API change

This commit is contained in:
Lucien Greathouse
2021-01-22 13:41:55 -07:00
parent 4992c36f08
commit 804fd3de8e
2 changed files with 6 additions and 2 deletions

View File

@@ -53,13 +53,16 @@ pub fn upload(options: UploadCommand) -> Result<(), anyhow::Error> {
.post(&url)
.header(COOKIE, format!(".ROBLOSECURITY={}", &cookie))
.header(USER_AGENT, "Roblox/WinInet")
.header("Requester", "Client")
.header(CONTENT_TYPE, "application/xml")
.header(ACCEPT, "application/json")
.body(buffer)
.send()?;
if !response.status().is_success() {
let status = response.status();
if !status.is_success() {
log::error!("Error uploading, status: {}", status);
return Err(Error::RobloxApi {
body: response.text()?,
}