about summary refs log tree commit homepage
path: root/t/inbox.t
diff options
authorEric Wong <e@80x24.org>2020-01-02 03:09:30 +0000
committerEric Wong <e@80x24.org>2020-01-02 20:56:24 +0000
commit1988d730c0088e8b1f6193650c7ee929df8a2ed7 (patch)
tree91920176afd1fd05e2649204c530a68ca657b03a /t/inbox.t
parent78fe6a9e601fcf3ec2983c82edaeb825e61275cf (diff)
Since the beginning of this project, we've implicitly supported
inboxes with multiple URLs by relying on the Host: header sent
by the client ($env->{HTTP_HOST}).

We now offer the option to explicitly configure multiple URLs for
every inbox along with the ability to do a best-effort match for
matching hostnames.
Diffstat (limited to 't/inbox.t')
1 files changed, 2 insertions, 2 deletions
diff --git a/t/inbox.t b/t/inbox.t
index c9674290..a466dd13 100644
--- a/t/inbox.t
+++ b/t/inbox.t
@@ -4,9 +4,9 @@ use strict;
 use warnings;
 use Test::More;
 use_ok 'PublicInbox::Inbox';
-my $x = PublicInbox::Inbox->new({url => '//example.com/test/'});
+my $x = PublicInbox::Inbox->new({url => [ '//example.com/test/' ]});
 is($x->base_url, 'https://example.com/test/', 'expanded protocol-relative');
-$x = PublicInbox::Inbox->new({url => 'http://example.com/test'});
+$x = PublicInbox::Inbox->new({url => [ 'http://example.com/test' ]});
 is($x->base_url, 'http://example.com/test/', 'added trailing slash');
 $x = PublicInbox::Inbox->new({});