minor fix when writing items posts

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/widgets/ckan-metadata-publisher-widget@144369 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2017-02-27 15:51:05 +00:00
parent e666ee4366
commit 56cd898098
1 changed files with 1 additions and 0 deletions

View File

@ -422,6 +422,7 @@ public class Utils {
postRequest.setEntity(input);
HttpResponse response = client.execute(postRequest);
basePath = basePath.startsWith("https") ? basePath : basePath.replace("http", "https").replace(":80", "");
logger.debug("Url is " + basePath + SOCIAL_SERVICE_APPLICATION_TOKEN + "?gcube-token=" + tokenUser);
if (response.getStatusLine().getStatusCode() != 201) {