HomePhorge

(PUP-744) Fix off-by-one redirect limit error
278edfc1ca02Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(PUP-744) Fix off-by-one redirect limit error

Previously, the redirect_limit specified the maximum number of HTTP
requests that the connection would make, not the maximum number of
redirects that it would follow. As a result, a limit of 0 would prevent
any HTTP requests from being made. This was introduced in 60f22eb1 when
the redirect logic was added.

This commit changes the limit so that 0 means don't follow redirects,
1 means follow one redirect, etc.

Details

Provenance
Josh Cooper <josh@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU993d26ca4bf8: (PUP-744) Don't modify site information when following redirects
Branches
Unknown
Tags
Unknown

Event Timeline

Josh Cooper <josh@puppetlabs.com> committed rPU278edfc1ca02: (PUP-744) Fix off-by-one redirect limit error (authored by Josh Cooper <josh@puppetlabs.com>).Jul 25 2014, 6:36 PM