salimfadhley/jenkinsapi — pull request #153 by pkocandr (2013-07-25 12:13:51+00:00)
Title: Don't follow redirections in Jenkins responses

There is no need to follow redirections in Jenkins responses. For example when invoking a build, Jenkins redirects browser to job's page, but there is no need to read the page in jenkinsapi. The original response is obtainable via response.history[0], but it not very convenient to check whether a redirection happened or not and then pick the right response to be able to work with its headers.