salimfadhley/jenkinsapi — pull request #156 by pkocandr (2013-07-26 13:18:40+00:00)
Title: Use the same protocol in all requests

Keep the same scheme (protocol) as was used in Jenkins constructor in all requests

Some Jenkins instances are configured to allow reading the data over HTTP scheme and this is also specified in Jenkins configuration in Jenkins root URL, while for manipulating with data (e.g. create or delete job) HTTPS scheme is required. Allow user to specify preferred URL scheme (by specifying Jenkins URL) and use this scheme in all requests.

This feature was introduced in 4f29f6742410736016b568002d8569f19d786841 (version 0.1.13) but lost again in 79934f0b5ca44a1d4ecbaf534eb1add8e343193f.

(This PR follows #154 and contains its changes already.)