Cast url.openConnection() to HttpURLConnection instead of HttpsURLConnec...

...tion. Useful for enterprise githubs which does not have https set up.

Hi Koshuke,

Please accept this pull request if this makes sense to you.

Thanks
Prasanna