|
|
@ -262,7 +262,7 @@ const serverRequest = async (endpoint, options = {}) => {
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
mode = 'sendToProxy';
|
|
|
|
mode = 'sendToProxy';
|
|
|
|
// url.search automatically includes the ? part
|
|
|
|
// url.search automatically includes the ? part
|
|
|
|
const search = url.search ? `${url.search}` : '';
|
|
|
|
const search = url.search || '';
|
|
|
|
// strip first slash
|
|
|
|
// strip first slash
|
|
|
|
const endpointWithQS = `${url.pathname}${search}`.replace(/^\//, '');
|
|
|
|
const endpointWithQS = `${url.pathname}${search}`.replace(/^\//, '');
|
|
|
|
({ response, txtResponse, result } = await sendToProxy(
|
|
|
|
({ response, txtResponse, result } = await sendToProxy(
|
|
|
|