From 994f926350e6d41c763a568dc189859cd346e44d Mon Sep 17 00:00:00 2001 From: Marcel Nellesen Date: Wed, 20 Nov 2019 08:27:19 +0100 Subject: [PATCH] Fix: update/deletion of Files is possible (coscine/issues#464) --- src/Project/Controllers/DataSourceController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Project/Controllers/DataSourceController.cs b/src/Project/Controllers/DataSourceController.cs index ff42b05..3e3a1ed 100644 --- a/src/Project/Controllers/DataSourceController.cs +++ b/src/Project/Controllers/DataSourceController.cs @@ -230,7 +230,7 @@ namespace Coscine.Api.Project.Controllers else { // If the path is null, an empty string is added. - string url = $"{_configuration.GetString("coscine/global/waterbutler_url")}{resource.Type.DisplayName.ToLower()}/{path}"; + string url = $"{_configuration.GetString("coscine/global/waterbutler_url")}{resource.Type.DisplayName.ToLower()}{path}"; var request = new HttpRequestMessage(HttpMethod.Delete, url); request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", authHeader); -- GitLab