Mercurial > hg > nginx-tests
diff http_host.t @ 1612:8659123d2d37
Tests: made http_content() exportable.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 17 Nov 2020 17:39:09 +0300 |
parents | 27237569776f |
children | 5ac6efbe5552 |
line wrap: on
line diff
--- a/http_host.t +++ b/http_host.t @@ -15,7 +15,7 @@ use Test::More; BEGIN { use FindBin; chdir($FindBin::Bin); } use lib 'lib'; -use Test::Nginx; +use Test::Nginx qw/ :DEFAULT http_content /; ############################################################################### @@ -185,7 +185,7 @@ GET / HTTP/1.0 Host: $host EOF - return ($all ? $r : Test::Nginx::http_content($r)); + return ($all ? $r : http_content($r)); } sub http_absolute_path { @@ -195,7 +195,7 @@ GET http://$host/ HTTP/1.0 Host: localhost EOF - return ($all ? $r : Test::Nginx::http_content($r)); + return ($all ? $r : http_content($r)); } ###############################################################################