From 2a2be5f7def050798399fbe4abb850f5aadd9d75 Mon Sep 17 00:00:00 2001 From: filoxenace Date: Sat, 7 Mar 2026 12:37:35 -0500 Subject: [PATCH] fix: skip proxy for itemconfiguration.roblox.com (not supported by roproxy) --- pyproject.toml | 2 +- src/rbx_upload/client.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 087a3d0..a61f8d2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "rbx-upload" -version = "0.2.0" +version = "0.2.1" description = "Roblox asset upload client" requires-python = ">=3.13" dependencies = [ diff --git a/src/rbx_upload/client.py b/src/rbx_upload/client.py index 10600ee..1535cdb 100644 --- a/src/rbx_upload/client.py +++ b/src/rbx_upload/client.py @@ -42,8 +42,8 @@ class RobloxClient: } self._csrf_cookies = {".ROBLOSECURITY": roblosecurity} - def _proxy_url(self, url: str) -> str: - if not self._proxy: + def _proxy_url(self, url: str, force_direct: bool = False) -> str: + if not self._proxy or force_direct: return url return url.replace("roblox.com", self._proxy) @@ -282,7 +282,7 @@ class RobloxClient: "targetType": 0, } response = await self._http.post( - self._proxy_url("https://itemconfiguration.roblox.com/v1/collectibles"), + self._proxy_url("https://itemconfiguration.roblox.com/v1/collectibles", force_direct=True), json=data, headers={ "X-CSRF-TOKEN": csrf,