comparison http-error-page.t @ 147:fd865ada95c8

Tests: error_page status code change fixed in 0.9.5.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 21 Feb 2011 14:26:27 +0300
parents 1e1975cd25ef
children
comparison
equal deleted inserted replaced
146:afa07ae9def6 147:fd865ada95c8
98 98
99 $t->run(); 99 $t->run();
100 100
101 ############################################################################### 101 ###############################################################################
102 102
103 TODO: {
104 local $TODO = 'not yet';
105
106 # tests for error_page status code change for redirects. problems 103 # tests for error_page status code change for redirects. problems
107 # introduced in 0.8.53. 104 # introduced in 0.8.53 and fixed in 0.9.5.
108 105
109 like(http_get('/redirect200'), qr!HTTP!, 'redirect 200'); 106 like(http_get('/redirect200'), qr!HTTP!, 'redirect 200');
110 like(http_get('/redirect497'), qr!HTTP/1.1 302!, 'redirect 497'); 107 like(http_get('/redirect497'), qr!HTTP/1.1 302!, 'redirect 497');
108
109 TODO: {
110 local $TODO = 'not yet';
111 111
112 # various tests to see if old location cleared if we happen to redirect 112 # various tests to see if old location cleared if we happen to redirect
113 # again in error_page 302 113 # again in error_page 302
114 114
115 like(http_get('/error302redirect'), 115 like(http_get('/error302redirect'),