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:
parent
e666ee4366
commit
56cd898098
|
@ -422,6 +422,7 @@ public class Utils {
|
||||||
postRequest.setEntity(input);
|
postRequest.setEntity(input);
|
||||||
HttpResponse response = client.execute(postRequest);
|
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);
|
logger.debug("Url is " + basePath + SOCIAL_SERVICE_APPLICATION_TOKEN + "?gcube-token=" + tokenUser);
|
||||||
|
|
||||||
if (response.getStatusLine().getStatusCode() != 201) {
|
if (response.getStatusLine().getStatusCode() != 201) {
|
||||||
|
|
Loading…
Reference in New Issue