Sha256: 4b9963d539ec65097ddbb4ddb20bfd47041357d9c805407b70ae0364a05647d2

Contents?: true

Size: 405 Bytes

Versions: 2

Compression:

Stored size: 405 Bytes

Contents

package URI::http;

require URI::_server;
@ISA=qw(URI::_server);

use strict;

sub default_port { 80 }

sub canonical
{
    my $self = shift;
    my $other = $self->SUPER::canonical;

    my $slash_path = defined($other->authority) &&
        !length($other->path) && !defined($other->query);

    if ($slash_path) {
	$other = $other->clone if $other == $self;
	$other->path("/");
    }
    $other;
}

1;

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
STLExtract-1.0.1 Slic3r/Linux/lib/std/URI/http.pm
STLExtract-1.0.0 Slic3r/Linux/lib/std/URI/http.pm