diff --git a/models/api/store.js b/models/api/store.js index 3055494..98e7340 100644 --- a/models/api/store.js +++ b/models/api/store.js @@ -5,7 +5,7 @@ import { Config } from '#components' const getBaseURL = () => { const url = 'https://store.steampowered.com' if (Config.steam.commonProxy) { - return Config.steam.commonProxy.replace('{{url}}', encodeURIComponent(url)) + return Config.steam.commonProxy.replace('{{url}}', url) } else if (Config.steam.storeProxy) { return Config.steam.storeProxy?.replace(/\/$/, '') } else { diff --git a/models/utils/request.js b/models/utils/request.js index 363c8c9..c9ceb49 100644 --- a/models/utils/request.js +++ b/models/utils/request.js @@ -13,7 +13,7 @@ export default async function request (url, options = {}) { const steamApi = (() => { const url = 'https://api.steampowered.com' if (Config.steam.commonProxy) { - return Config.steam.commonProxy.replace('{{url}}', encodeURIComponent(url)) + return Config.steam.commonProxy.replace('{{url}}', url) } else if (Config.steam.apiProxy) { return Config.steam.apiProxy.replace(/\/$/, '') } else {