Update TGBeta.ps1
This commit is contained in:
@@ -1498,10 +1498,6 @@ try {
|
|||||||
$response.OutputStream.Close()
|
$response.OutputStream.Close()
|
||||||
}
|
}
|
||||||
|
|
||||||
while ($listener.IsListening) {
|
|
||||||
$context = $listener.GetContext()
|
|
||||||
$request = $context.Request
|
|
||||||
$response = $context.Response
|
|
||||||
switch ($request.Url.AbsolutePath) {
|
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)
|
||||||
|
|||||||
Reference in New Issue
Block a user