Overriden the setRequestMethod of HttpUrlConnection in order to allow PATCH
Merge pull request #498 from zeebox/patchAsUserPermittedMethod

Allow PATCH method with HttpURLConnection interface.