Merge change 8177

* changes:
  Added patch support based on serializer state in the android client
This commit is contained in:
Android (Google) Code Review
2009-07-27 10:33:43 -07:00

View File

@@ -464,8 +464,9 @@ public class AndroidGDataClient implements GDataClient {
GDataSerializer entry)
throws HttpException, IOException {
HttpEntity entity = createEntityForEntry(entry, GDataSerializer.FORMAT_UPDATE);
final String method = entry.doesSupportPartial() ? "PATCH" : "PUT";
InputStream in = createAndExecuteMethod(
new PostRequestCreator("PUT", entity),
new PostRequestCreator(method, entity),
editUri,
authToken,
eTag,