In JDK I'm using (Java8), I get a delegating HttpURLConnection that breaks the hack to set the method.
In JDK I'm using (Java8), I get a delegating HttpURLConnection that breaks the hack to set the method.

This change makes this hack even worse, but this is the only way I can think of, since I cannot update HttpURLConnection.methods that is static final.

jeffnelson/github-api,recena/github-api,kohsuke/github-api,mmitche/github-api,Shredder121/github-api,stephenc/github-api,pomes/github-api