Allow PATCH method with HttpURLConnection interface.

Moved the check of Http Methods to okHttp maintaining the same logic but with the addition of PATCH in the allowed methods.