Skip Menu |

This queue is for tickets about the POE-Component-Client-HTTP CPAN distribution.

Report information
The Basics
Id: 14630
Status: resolved
Priority: 0/
Queue: POE-Component-Client-HTTP

Owner: RCAPUTO [...]
Requestors: YKAR [...]

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)

Subject: FollowRedirects interpreted incorrectly
Download (untitled) / with headers
text/plain 300b
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: =================================================================== --- (revision 217) +++ (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"; }
Applied. Thank you, and apologies for the wait.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to