You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$buffer= [System.Text.Encoding]::UTF8.GetBytes("<html><body>Good Job! Successfully authorized PSBlogger. You can close this browser window now.</body></html>")
30
-
$response=$HttpContext.Response
31
-
$response.ContentLength64=$buffer.Length
32
-
$output=$response.OutputStream;
33
-
$output.Write($buffer,0,$buffer.Length)
34
-
$output.Close() |Write-Verbose
35
-
}
52
+
# Send "Thanks!"
53
+
$buffer= [System.Text.Encoding]::UTF8.GetBytes("<html><body>Good Job! Successfully authorized PSBlogger. You can close this browser window now.</body></html>")
54
+
$response=$HttpContext.Response
55
+
$response.ContentLength64=$buffer.Length
56
+
$output=$response.OutputStream;
57
+
$output.Write($buffer,0,$buffer.Length)
58
+
$output.Close() |Write-Verbose
59
+
}
60
+
}
36
61
}
37
-
38
62
Write-Verbose"Stopping HttpListener."
39
63
$HttpListener.Stop()
40
64
Write-Verbose"Stopped HttpListener."
41
65
}
42
66
catch {
43
67
# TODO: Catch Permission denied error and warn about running from an elevated prompt
0 commit comments