commit | e7cdf98078bc94a2e430d9edef7e9b01250765ac | [log] [tgz] |
---|---|---|
author | Miguel A. Martin <miguel@schibstediberica.es> | Mon May 19 16:04:55 2014 +0200 |
committer | Miguel M <miguel.a.martin@gmail.com> | Mon Jun 16 09:53:32 2014 +0000 |
tree | 3e67262e5057110f1757dd22ce12307bf99aa68a | |
parent | 04884d344043063aaff1bef567912e1be0f254ff [diff] |
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