Update TGBeta.ps1

This commit is contained in:
2025-01-25 18:28:20 -05:00
parent 60a6b48308
commit b0ebfc9bf8

View File

@@ -1498,11 +1498,7 @@ try {
$response.OutputStream.Close() $response.OutputStream.Close()
} }
while ($listener.IsListening) { switch ($request.Url.AbsolutePath) {
$context = $listener.GetContext()
$request = $context.Request
$response = $context.Response
switch ($request.Url.AbsolutePath) {
"/offboard/uninstallSVSMSPModule" { "/offboard/uninstallSVSMSPModule" {
try { try {
@@ -1542,7 +1538,7 @@ try {
$response.StatusCode = 404 $response.StatusCode = 404
$responseString = "Task not found." $responseString = "Task not found."
} }
}
# Send the response # Send the response
$buffer = [System.Text.Encoding]::UTF8.GetBytes($responseString) $buffer = [System.Text.Encoding]::UTF8.GetBytes($responseString)