diff --git a/src/TestConsoleApp/Program.cs b/src/TestConsoleApp/Program.cs index 3c601b4..5c17d38 100644 --- a/src/TestConsoleApp/Program.cs +++ b/src/TestConsoleApp/Program.cs @@ -14,11 +14,10 @@ public static void Main(string[] args) listener.Request += HandleRequest; listener.Start(); - bool isListening = listener.IsListening; - Console.WriteLine("isListening = {0} at port {1}", isListening, port); + Console.WriteLine($"Start an internet browser and navigate to http://localhost:{port}"); Console.WriteLine("Press any key to stop listener"); - + Console.ReadKey(); listener.Close(); listener.Dispose(); @@ -29,7 +28,7 @@ private static async void HandleRequest(object sender, HttpListenerRequestEventA var request = e.Request; var response = e.Response; - if (request.Method == HttpMethods.Get) + if (request.HttpMethod == HttpMethods.Get) { string content = @"