Skip to content

Commit

Permalink
兼容性考虑
Browse files Browse the repository at this point in the history
  • Loading branch information
steve02081504 committed Jul 8, 2024
1 parent 6627e54 commit c081e86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WebServer/main.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit c081e86

Please sign in to comment.