mirror of
https://github.com/AlistGo/alist.git
synced 2025-06-05 18:04:39 +08:00
perf(copy): use multi-thread downloader (close #5000)
This commit is contained in:
@ -120,10 +120,10 @@ func (r Range) contentRange(size int64) string {
|
||||
}
|
||||
|
||||
// ApplyRangeToHttpHeader for http request header
|
||||
func ApplyRangeToHttpHeader(p Range, headerRef *http.Header) *http.Header {
|
||||
func ApplyRangeToHttpHeader(p Range, headerRef http.Header) http.Header {
|
||||
header := headerRef
|
||||
if header == nil {
|
||||
header = &http.Header{}
|
||||
header = http.Header{}
|
||||
}
|
||||
if p.Start == 0 && p.Length < 0 {
|
||||
header.Del("Range")
|
||||
|
Reference in New Issue
Block a user