Added patch support based on serializer state in the android client

This commit is contained in:
fmantek
2009-07-22 12:58:57 +02:00
parent bc4aa5f693
commit 513d217988

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,