Fixes bug in PATCH method. Sets the method before setting the body.

Just look at PUT and POST methods some lines above. The method is set 
before calling to addBodyIfExists().

The method should be set before adding the body. Otherwise, some libraries will
try to establish a connection with the wrong method (GET by default). 

Change-Id: I993a62cdc5cbccbf54f9bae4f6b183e2edf4304d
1 file changed