opscode/chef — pull request #534 by loicAG (2012-12-12 16:16:48+00:00)
Title: Chef-2682 Redirected API requests can result in confusing error messages

Added a warning when following a redirect with a different method than that of the original request; this solution:

1. preserves conformity with RFC 2616, which states the following:
"If the 301 status code is received in response to a request other than GET or HEAD, the user agent MUST NOT automatically redirect the request unless it can be confirmed by the user, since this might change the conditions under which the request was issued."

2. effectively fixes the bug by providing a non-confusing (or at least, less-confusing) log message.