mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-23 14:15:24 +00:00
Remove Requester header to handle API change
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
# Rojo Changelog
|
# Rojo Changelog
|
||||||
|
|
||||||
## Unreleased Changes
|
## Unreleased Changes
|
||||||
|
* Fixed `rojo upload` requests being rejected by Roblox
|
||||||
|
|
||||||
## [6.0.0](https://github.com/rojo-rbx/rojo/releases/tag/v6.0.0) (January 16, 2021)
|
## [6.0.0](https://github.com/rojo-rbx/rojo/releases/tag/v6.0.0) (January 16, 2021)
|
||||||
* Improved server error messages
|
* Improved server error messages
|
||||||
|
|||||||
@@ -53,13 +53,16 @@ pub fn upload(options: UploadCommand) -> Result<(), anyhow::Error> {
|
|||||||
.post(&url)
|
.post(&url)
|
||||||
.header(COOKIE, format!(".ROBLOSECURITY={}", &cookie))
|
.header(COOKIE, format!(".ROBLOSECURITY={}", &cookie))
|
||||||
.header(USER_AGENT, "Roblox/WinInet")
|
.header(USER_AGENT, "Roblox/WinInet")
|
||||||
.header("Requester", "Client")
|
|
||||||
.header(CONTENT_TYPE, "application/xml")
|
.header(CONTENT_TYPE, "application/xml")
|
||||||
.header(ACCEPT, "application/json")
|
.header(ACCEPT, "application/json")
|
||||||
.body(buffer)
|
.body(buffer)
|
||||||
.send()?;
|
.send()?;
|
||||||
|
|
||||||
if !response.status().is_success() {
|
let status = response.status();
|
||||||
|
|
||||||
|
if !status.is_success() {
|
||||||
|
log::error!("Error uploading, status: {}", status);
|
||||||
|
|
||||||
return Err(Error::RobloxApi {
|
return Err(Error::RobloxApi {
|
||||||
body: response.text()?,
|
body: response.text()?,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user