Mercurial > hg > nginx-tests
comparison stub_status.t @ 1957:c544b7120a6d
Tests: removed dependencies on 405 error text.
It is going to be changed from "405 Not Allowed" to "405 Method Not Allowed"
to match RFC description.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Sat, 20 Apr 2024 20:58:42 +0300 |
parents | 882267679006 |
children |
comparison
equal
deleted
inserted
replaced
1956:fe80aebae728 | 1957:c544b7120a6d |
---|---|
119 $s->close(); | 119 $s->close(); |
120 | 120 |
121 # head and post requests | 121 # head and post requests |
122 | 122 |
123 like(http_head('/stub'), qr/200 OK/, 'head request'); | 123 like(http_head('/stub'), qr/200 OK/, 'head request'); |
124 like(http_post('/stub'), qr/405 Not Allowed/, 'post request'); | 124 like(http_post('/stub'), qr/ 405 /, 'post request'); |
125 | 125 |
126 # embedded variables in headers | 126 # embedded variables in headers |
127 | 127 |
128 my $r = http_get('/stub'); | 128 my $r = http_get('/stub'); |
129 like($r, qr/X-Active: 1/, 'get - var active'); | 129 like($r, qr/X-Active: 1/, 'get - var active'); |