http-server-simple icon indicating copy to clipboard operation
http-server-simple copied to clipboard

removed redundant(?) methods hash. gave warnings

Open dnmfarrell opened this issue 10 years ago • 1 comments

Hey,

This line was emitting a warning:

Code object coerced to string (please use .gist or .perl to do that)  in method new at lib/HTTP/Server/Simple.pm6:24

I couldn't see %methods being used anywhere so I removed the line.

Thanks

dnmfarrell avatar Nov 22 '14 01:11 dnmfarrell

Or if it is being used, maybe change it to:

 my %methods = self.^methods.map({.gist}) Z 1..*;

(untested)

dnmfarrell avatar Nov 22 '14 02:11 dnmfarrell