Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (10 sloc) 0.32 kB
use strict;
use warnings;
use Test::More;
use Plack::Test;
use Plack::Request;
plan tests => 2;
my $req = Plack::Request->new({ REMOTE_HOST => "foo.example.com" });
is $req->remote_host, "foo.example.com";
$req = Plack::Request->new({ REMOTE_HOST => '', REMOTE_ADDR => '127.0.0.1' });
is $req->address, "127.0.0.1";
Jump to Line
Something went wrong with that request. Please try again.