From e6ab3d55ae8352dfc3f0ea2af71c44a524a968ac Mon Sep 17 00:00:00 2001 From: Ryan Tharp Date: Mon, 3 Feb 2020 20:11:06 -0800 Subject: [PATCH] fix querystring in file-proxy --- js/modules/loki_app_dot_net_api.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/modules/loki_app_dot_net_api.js b/js/modules/loki_app_dot_net_api.js index 770979ba6..db5fcb6bf 100644 --- a/js/modules/loki_app_dot_net_api.js +++ b/js/modules/loki_app_dot_net_api.js @@ -485,8 +485,10 @@ class LokiAppDotNetServerAPI { this.baseServerUrl === 'https://file.lokinet.org') ) { mode = '_sendToProxy'; + + const endpointWithQS = url.toString().replace(this.baseServerUrl + '/', ''); ({ response, txtResponse, result } = await this._sendToProxy( - endpoint, + endpointWithQS, fetchOptions )); } else {