From c09dc8e272d05a6e5d8f4e5cce44bd39e233de2d Mon Sep 17 00:00:00 2001 From: MalinAhlberg Date: Wed, 14 Feb 2024 15:57:14 +0100 Subject: [PATCH] 401 for start pos --- api/sda/sda.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/api/sda/sda.go b/api/sda/sda.go index 1f05b00..307604f 100644 --- a/api/sda/sda.go +++ b/api/sda/sda.go @@ -256,10 +256,8 @@ func Download(c *gin.Context) { switch c.Param("type") { case "encrypted": if start > 0 { - // unset content-length - c.Header("Content-Length", "0") log.Errorf("Start coordinate for encrypted files not implemented! %v", start) - c.String(http.StatusInternalServerError, "an error occurred") + c.String(http.StatusBadRequest, "Start coordinate for encrypted files not implemented!") return }