diff --git a/pom.xml b/pom.xml index 8e032ec..7fd74c1 100644 --- a/pom.xml +++ b/pom.xml @@ -42,14 +42,6 @@ org.gcube.information-system information-system-model - - org.gcube.common - authorization-client - - - org.gcube.common - gxHTTP - org.slf4j slf4j-api diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/api/rest/httputils/HTTPUtility.java b/src/main/java/org/gcube/informationsystem/resourceregistry/api/rest/httputils/HTTPUtility.java index 6a27071..603fa2d 100644 --- a/src/main/java/org/gcube/informationsystem/resourceregistry/api/rest/httputils/HTTPUtility.java +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/api/rest/httputils/HTTPUtility.java @@ -6,7 +6,6 @@ import java.io.InputStream; import java.io.InputStreamReader; import java.net.HttpURLConnection; -import org.gcube.common.gxhttp.reference.GXConnection.HTTPMETHOD; import org.gcube.informationsystem.base.reference.Element; import org.gcube.informationsystem.model.reference.entities.Facet; import org.gcube.informationsystem.model.reference.entities.Resource; @@ -74,7 +73,7 @@ public class HTTPUtility { int responseCode = connection.getResponseCode(); String responseMessage = connection.getResponseMessage(); - if(connection.getRequestMethod().compareTo(HTTPMETHOD.HEAD.toString())==0) { + if(connection.getRequestMethod().compareTo("HEAD")==0) { if(responseCode == HttpURLConnection.HTTP_NO_CONTENT) { return null; }