Update TGBeta.ps1

This commit is contained in:
2025-01-25 18:13:23 -05:00
parent 49808de08b
commit 6616e034a0

View File

@@ -1538,14 +1538,14 @@ 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)
$response.ContentType = "text/plain" $response.ContentType = "text/plain"
$response.ContentLength64 = $buffer.Length $response.ContentLength64 = $buffer.Length
$response.OutputStream.Write($buffer, 0, $buffer.Length) $response.OutputStream.Write($buffer, 0, $buffer.Length)
$response.OutputStream.Close() $response.OutputStream.Close()
}