comparison empty_gif.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
60 ############################################################################### 60 ###############################################################################
61 61
62 is(http_get_body('/'), $gif, 'empty gif'); 62 is(http_get_body('/'), $gif, 'empty gif');
63 like(http_get('/'), qr!Content-Type: image/gif!i, 'get content type'); 63 like(http_get('/'), qr!Content-Type: image/gif!i, 'get content type');
64 like(http_head('/'), qr!Content-Type: image/gif!i, 'head content type'); 64 like(http_head('/'), qr!Content-Type: image/gif!i, 'head content type');
65 like(http('PUT / HTTP/1.0' . CRLF . CRLF), qr!405 Not Allowed!i, 'put'); 65 like(http('PUT / HTTP/1.0' . CRLF . CRLF), qr! 405 !i, 'put');
66 66
67 ############################################################################### 67 ###############################################################################
68 68
69 sub unhex { 69 sub unhex {
70 my ($input) = @_; 70 my ($input) = @_;