Subject: | FollowRedirects interpreted incorrectly |
If to set FollowRedirects to 0, developer suppose to disable redirects
but actually 0 means allow 1 redirect (1 means allow 2 redirects and so on).
My patch will fix this (if FollowRedirects set to 0 no redirects will be
allowed (302 status will be returned), if set to 1 then one redirect
allowed).
Index: Request.pm
===================================================================
--- Request.pm (revision 217)
+++ Request.pm (working copy)
@@ -418,7 +418,7 @@
last if ($history > $max);
}
- if ($history > $max) {
+ if ($history >= $max) {
#$self->[REQ_STATE] |= RS_DONE;
DEBUG and warn "RED: Too much redirection";
}