Mercurial > hg > nginx-tests
comparison http_error_page.t @ 177:89d3041856b3
Tests: old location header is cleared in 1.1.6, remove TODO.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 01 Nov 2011 21:10:21 +0300 |
parents | c0ae29632905 |
children | 6a0d934950bc |
comparison
equal
deleted
inserted
replaced
176:847811d5192c | 177:89d3041856b3 |
---|---|
103 # introduced in 0.8.53 and fixed in 0.9.5. | 103 # introduced in 0.8.53 and fixed in 0.9.5. |
104 | 104 |
105 like(http_get('/redirect200'), qr!HTTP!, 'redirect 200'); | 105 like(http_get('/redirect200'), qr!HTTP!, 'redirect 200'); |
106 like(http_get('/redirect497'), qr!HTTP/1.1 302!, 'redirect 497'); | 106 like(http_get('/redirect497'), qr!HTTP/1.1 302!, 'redirect 497'); |
107 | 107 |
108 TODO: { | |
109 local $TODO = 'not yet'; | |
110 | |
111 # various tests to see if old location cleared if we happen to redirect | 108 # various tests to see if old location cleared if we happen to redirect |
112 # again in error_page 302 | 109 # again in error_page 302 |
113 | 110 |
114 like(http_get('/error302redirect'), | 111 like(http_get('/error302redirect'), |
115 qr{HTTP/1.1 302(?!.*Location: first).*Location: http://example.com/}ms, | 112 qr{HTTP/1.1 302(?!.*Location: first).*Location: http://example.com/}ms, |
129 | 126 |
130 like(http_get('/error302auto'), | 127 like(http_get('/error302auto'), |
131 qr{HTTP/1.1 301(?!.*Location: first).*Location: http://}ms, | 128 qr{HTTP/1.1 301(?!.*Location: first).*Location: http://}ms, |
132 'error 302 auto redirect - old location cleared'); | 129 'error 302 auto redirect - old location cleared'); |
133 | 130 |
134 } | |
135 | |
136 ############################################################################### | 131 ############################################################################### |