This commit is contained in:
Lucio Lelii 2016-09-08 15:42:02 +00:00
parent 8fd89e4942
commit 8564f62cf2
1 changed files with 2 additions and 4 deletions

View File

@ -164,8 +164,6 @@ public class DefaultAuthorizationProxy implements AuthorizationProxy {
StringBuilder callUrl = new StringBuilder(getInternalEnpoint(infrastructureHash)).append(methodPath); StringBuilder callUrl = new StringBuilder(getInternalEnpoint(infrastructureHash)).append(methodPath);
System.out.println(callUrl);
URL url = new URL(callUrl.toString()); URL url = new URL(callUrl.toString());
HttpURLConnection connection = makeRequest(url, "GET", true); HttpURLConnection connection = makeRequest(url, "GET", true);
connection.setDoInput(true); connection.setDoInput(true);
@ -186,7 +184,7 @@ public class DefaultAuthorizationProxy implements AuthorizationProxy {
String infrastructure = context.split("/")[1]; String infrastructure = context.split("/")[1];
return infrastructure.hashCode(); return infrastructure.hashCode();
}catch(Exception e){ }catch(Exception e){
throw new RuntimeException("invalid contex"); throw new RuntimeException("invalid context");
} }
} }