File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1771,7 +1771,8 @@ sub feature_list_web_redirects
1771
1771
}
1772
1772
my $m = $r -> {' words' }-> [2];
1773
1773
$redirect -> {' code' } = $m eq ' permanent' ? 301 :
1774
- $m eq ' redirect' ? 302 : undef ;
1774
+ $m eq ' redirect' ? 302 :
1775
+ $m eq ' break' ? 302 : undef ;
1775
1776
}
1776
1777
elsif ($r -> {' words' }-> [0] =~ / \^\/\(\?\!\. well\- known\) (\$ )?/ ) {
1777
1778
# Special case for / which excludes .well-known
@@ -1793,8 +1794,9 @@ sub feature_list_web_redirects
1793
1794
$redirect -> {' dest' }, 0);
1794
1795
$redirect -> {' alias' } = 0;
1795
1796
}
1796
- elsif ($r -> {' words' }-> [2] eq ' redirect' ||
1797
- $r -> {' words' }-> [2] eq ' permanent' ) {
1797
+ elsif ($r -> {' words' }-> [2] eq ' permanent' ||
1798
+ $r -> {' words' }-> [2] eq ' redirect' ||
1799
+ $r -> {' words' }-> [2] eq ' break' ) {
1798
1800
# Redirect to a URL path, which is taken as relative
1799
1801
# to the original URL
1800
1802
$redirect -> {' alias' } = 0;
You can’t perform that action at this time.
0 commit comments