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 }