From e9afdb1c6c312024c4c95dd971c43b6f8adcda96 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Tue, 16 Oct 2018 12:53:22 -0700 Subject: [PATCH] Revert "add patch to google http client (#486)" This reverts commit 1f067daec8ab7871e9fce53398220e621c7642ae. --- .../com/google/api/client/http/apache/ApacheHttpTransport.java | 3 --- .../google/api/client/http/apache/ApacheHttpTransportTest.java | 2 -- 2 files changed, 5 deletions(-) diff --git a/google-http-client/src/main/java/com/google/api/client/http/apache/ApacheHttpTransport.java b/google-http-client/src/main/java/com/google/api/client/http/apache/ApacheHttpTransport.java index 0b55a4ed0..50e74dc87 100644 --- a/google-http-client/src/main/java/com/google/api/client/http/apache/ApacheHttpTransport.java +++ b/google-http-client/src/main/java/com/google/api/client/http/apache/ApacheHttpTransport.java @@ -35,7 +35,6 @@ import org.apache.http.client.methods.HttpGet; import org.apache.http.client.methods.HttpHead; import org.apache.http.client.methods.HttpOptions; -import org.apache.http.client.methods.HttpPatch; import org.apache.http.client.methods.HttpPost; import org.apache.http.client.methods.HttpPut; import org.apache.http.client.methods.HttpRequestBase; @@ -210,8 +209,6 @@ protected ApacheHttpRequest buildRequest(String method, String url) { requestBase = new HttpGet(url); } else if (method.equals(HttpMethods.HEAD)) { requestBase = new HttpHead(url); - } else if (method.equals(HttpMethods.PATCH)) { - requestBase = new HttpPatch(url); } else if (method.equals(HttpMethods.POST)) { requestBase = new HttpPost(url); } else if (method.equals(HttpMethods.PUT)) { diff --git a/google-http-client/src/test/java/com/google/api/client/http/apache/ApacheHttpTransportTest.java b/google-http-client/src/test/java/com/google/api/client/http/apache/ApacheHttpTransportTest.java index 07f6c29c7..21aa27357 100644 --- a/google-http-client/src/test/java/com/google/api/client/http/apache/ApacheHttpTransportTest.java +++ b/google-http-client/src/test/java/com/google/api/client/http/apache/ApacheHttpTransportTest.java @@ -73,8 +73,6 @@ public void testRequestsWithContent() throws Exception { subtestUnsupportedRequestsWithContent( transport.buildRequest("HEAD", "http://www.test.url"), "HEAD"); - // Test PATCH. - execute(transport.buildRequest("PATCH", "http://www.test.url")); // Test PUT. execute(transport.buildRequest("PUT", "http://www.test.url")); // Test POST.