Skip to content

Commit

Permalink
use protocol method consistently
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Nov 24, 2012
1 parent 95354dd commit da5145b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Mojo/URL.pm
Expand Up @@ -194,9 +194,9 @@ sub to_rel {
sub to_string {
my $self = shift;

# Scheme
# Protocol
my $url = '';
if (my $scheme = $self->scheme) { $url .= lc "$scheme://" }
if (my $proto = $self->protocol) { $url .= "$proto://" }

# Authority
my $authority = $self->authority;
Expand Down

0 comments on commit da5145b

Please sign in to comment.