From c081e862a574327a44f81c3687453f86f3dda612 Mon Sep 17 00:00:00 2001 From: steve02081504 Date: Mon, 8 Jul 2024 18:21:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BC=E5=AE=B9=E6=80=A7=E8=80=83=E8=99=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/WebServer/main.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WebServer/main.ps1 b/src/WebServer/main.ps1 index bb1bf2ca..472e9e99 100644 --- a/src/WebServer/main.ps1 +++ b/src/WebServer/main.ps1 @@ -178,7 +178,7 @@ function HandleRequest($context) { } $RequestUrl = $RequestUrl.Substring($HostSubUrl.Length) switch ($RequestUrl) { - '/api/compile' { + { $_ -in ('/compile', '/api/compile', '/api/compile/v1') } { $Reader = New-Object System.IO.StreamReader($context.Request.InputStream) $userInput = $Reader.ReadToEnd() $Reader.Close()