Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
401 for start pos
Browse files Browse the repository at this point in the history
  • Loading branch information
MalinAhlberg committed Feb 14, 2024
1 parent bb7c57c commit c09dc8e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions api/sda/sda.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit c09dc8e

Please sign in to comment.