Mercurial > hg > nginx-tests
comparison http_method.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 | 2a0a6035a1af |
children |
comparison
equal
deleted
inserted
replaced
1956:fe80aebae728 | 1957:c544b7120a6d |
---|---|
47 | 47 |
48 EOF | 48 EOF |
49 | 49 |
50 ############################################################################### | 50 ############################################################################### |
51 | 51 |
52 like(http(<<EOF), qr/405 Not Allowed(?!.*200 OK)/s, 'trace'); | 52 like(http(<<EOF), qr/ 405 (?!.*200 OK)/s, 'trace'); |
53 TRACE / HTTP/1.1 | 53 TRACE / HTTP/1.1 |
54 Host: localhost | 54 Host: localhost |
55 | 55 |
56 GET / HTTP/1.1 | 56 GET / HTTP/1.1 |
57 Host: localhost | 57 Host: localhost |
58 Connection: close | 58 Connection: close |
59 | 59 |
60 EOF | 60 EOF |
61 | 61 |
62 like(http(<<EOF), qr/405 Not Allowed(?!.*200 OK)/s, 'connect'); | 62 like(http(<<EOF), qr/ 405 (?!.*200 OK)/s, 'connect'); |
63 CONNECT / HTTP/1.1 | 63 CONNECT / HTTP/1.1 |
64 Host: localhost | 64 Host: localhost |
65 | 65 |
66 GET / HTTP/1.1 | 66 GET / HTTP/1.1 |
67 Host: localhost | 67 Host: localhost |