comparison http_absolute_redirect.t @ 1718:672018971a62

Tests: skip Location header escaping test on win32. On win32, the backslash character ("\") is a path separator.
author Sergey Kandaurov <pluknet@nginx.com>
date Wed, 30 Jun 2021 10:39:32 +0300
parents 77a9e393ed46
children 14b5ee6eee6c
comparison
equal deleted inserted replaced
1717:3052d6ea8ff3 1718:672018971a62
165 165
166 # per RFC 3986, these charaters are not allowed unescaped: 166 # per RFC 3986, these charaters are not allowed unescaped:
167 # %00-%1F, %7F-%FF, " ", """, "<", ">", "\", "^", "`", "{", "|", "}" 167 # %00-%1F, %7F-%FF, " ", """, "<", ">", "\", "^", "`", "{", "|", "}"
168 # additionally, all characters in ESCAPE_URI: "?", "%", "#" 168 # additionally, all characters in ESCAPE_URI: "?", "%", "#"
169 169
170 SKIP: {
171 skip 'win32', 1 if $^O eq 'MSWin32';
172
170 TODO: { 173 TODO: {
171 local $TODO = 'not yet' unless $t->has_version('1.21.1'); 174 local $TODO = 'not yet' unless $t->has_version('1.21.1');
172 175
173 like(get('off', '/auto%20%22%23%25%3C%3E%3F%5C%5E%60%7B%7C%7D'), 176 like(get('off', '/auto%20%22%23%25%3C%3E%3F%5C%5E%60%7B%7C%7D'),
174 qr!Location: /auto%20%22%23%25%3C%3E%3F%5C%5E%60%7B%7C%7D/\x0d?$!m, 177 qr!Location: /auto%20%22%23%25%3C%3E%3F%5C%5E%60%7B%7C%7D/\x0d?$!m,
175 'auto escaped strict'); 178 'auto escaped strict');
179
180 }
176 181
177 } 182 }
178 183
179 ############################################################################### 184 ###############################################################################
180 185