Skip to content

Commit 7f61346

Browse files
committed
1 parent 324a275 commit 7f61346

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/chunk/driver.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"errors"
66
"fmt"
77
"io"
8-
"net/http"
98
stdpath "path"
109
"regexp"
1110
"strings"
@@ -14,7 +13,6 @@ import (
1413
"github.com/OpenListTeam/OpenList/v4/internal/errs"
1514
"github.com/OpenListTeam/OpenList/v4/internal/fs"
1615
"github.com/OpenListTeam/OpenList/v4/internal/model"
17-
"github.com/OpenListTeam/OpenList/v4/internal/net"
1816
"github.com/OpenListTeam/OpenList/v4/internal/op"
1917
"github.com/OpenListTeam/OpenList/v4/internal/stream"
2018
"github.com/OpenListTeam/OpenList/v4/pkg/http_range"
@@ -225,7 +223,7 @@ func (d *Chunk) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (
225223
readFrom = true
226224
}
227225
}
228-
return nil, fmt.Errorf("invalid range: start=%d,length=%d,totalLength=%d, status: %w", httpRange.Start, httpRange.Length, totalLength, net.HttpStatusCodeError(http.StatusRequestedRangeNotSatisfiable))
226+
return nil, fmt.Errorf("invalid range: start=%d,length=%d,totalLength=%d", httpRange.Start, httpRange.Length, totalLength)
229227
}
230228
linkClosers := make([]io.Closer, 0, len(links))
231229
for _, l := range links {

0 commit comments

Comments
 (0)