Mercurial > hg > nginx-tests
comparison lib/Test/Nginx/HTTP2.pm @ 943:0d4536093b39
Tests: changed default HTTP2 host header to localhost.
This simplification is consistent to the host headers used in other places.
author | Andrey Zelenkov <zelenkov@nginx.com> |
---|---|
date | Fri, 10 Jun 2016 16:15:55 +0300 |
parents | b1fa8e0cc27b |
children | d73bef563aea |
comparison
equal
deleted
inserted
replaced
942:8582afc64efa | 943:0d4536093b39 |
---|---|
164 my ($input, $buf); | 164 my ($input, $buf); |
165 my ($d, $status); | 165 my ($d, $status); |
166 | 166 |
167 $ctx->{headers} = ''; | 167 $ctx->{headers} = ''; |
168 | 168 |
169 my $host = $uri->{host} || '127.0.0.1:8080'; | 169 my $host = $uri->{host} || 'localhost'; |
170 my $method = $uri->{method} || 'GET'; | 170 my $method = $uri->{method} || 'GET'; |
171 my $scheme = $uri->{scheme} || 'http'; | 171 my $scheme = $uri->{scheme} || 'http'; |
172 my $path = $uri->{path} || '/'; | 172 my $path = $uri->{path} || '/'; |
173 my $headers = $uri->{headers}; | 173 my $headers = $uri->{headers}; |
174 my $body = $uri->{body}; | 174 my $body = $uri->{body}; |