Skip to content

Commit

Permalink
just use a regex
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed May 7, 2015
1 parent 162016b commit ef4fcea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Mojo/Server/Daemon.pm
Expand Up @@ -149,8 +149,7 @@ sub _listen {

my $url = Mojo::URL->new($listen);
my $proto = $url->protocol;
croak qq{Invalid listen location "$listen"}
unless $proto eq 'http' || $proto eq 'https';
croak qq{Invalid listen location "$listen"} unless $proto =~ /^https?$/;

my $query = $url->query;
my $options = {
Expand Down

0 comments on commit ef4fcea

Please sign in to comment.