silverstripe/silverstripe-framework — pull request #2423 by wilr (2013-09-16 08:15:49+00:00)
Title: FIX: Follow internal redirections for cli operations.

Raised as part of https://github.com/silverstripe-labs/silverstripe-staticpublisher/issues/23.

Previously any redirection operations when called via sake returned a blank result. This patch alters the behaviour to automatically follow redirects. Alternatively we could output a warning to the user that the page has moved, however this approach would be favoured since it won't break any cron jobs or other scripted operations which is the highest risk.