From 138df627701b93ce8c0dc4c97be31b2c56c9bbf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=98=84=EC=84=B1=ED=95=84?= Date: Tue, 30 Jan 2024 12:04:04 +0900 Subject: [PATCH] =?UTF-8?q?context-path=20=EC=B2=98=EB=A6=AC=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ApiTestManager/src/APIClient.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ApiTestManager/src/APIClient.js b/ApiTestManager/src/APIClient.js index 8f503a0..84d5846 100644 --- a/ApiTestManager/src/APIClient.js +++ b/ApiTestManager/src/APIClient.js @@ -15,9 +15,14 @@ class APIClient { this.variables = {}; this.abortController = null; this.contextPath = document.querySelector('meta[name="context-path"]').getAttribute('content'); + if (!this.contextPath) { this.contextPath = '/'; } + + if (!this.contextPath.endsWith('/')) { + this.contextPath += '/'; + } } getClientUrl() {