I was playing around with HTTP::Server::Simple in pugs and I noticed
that the port number reported at startup isn't correct if a
non-default port is used. Teeny little patch attached!

Regards,

-zack
Index: ext/HTTP-Server-Simple/lib/HTTP/Server/Simple.pm
===================================================================
--- ext/HTTP-Server-Simple/lib/HTTP/Server/Simple.pm	(revision 13245)
+++ ext/HTTP-Server-Simple/lib/HTTP/Server/Simple.pm	(working copy)
@@ -113,7 +113,7 @@
 
 method run {
     $.socket = $.port.listen;
-    say "You can connect to http://localhost:8080";;
+    say "You can connect to http://localhost:$.port";;
     loop {
         my %env = %*ENV;
         $.remote = $.socket.accept;

Reply via email to