Skip to content

Commit a834ac9

Browse files
author
YangSen-qn
committed
version to 7.25.3
1 parent 64dfef8 commit a834ac9

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# Changelog
2+
## 7.25.3
3+
4+
* 修复
5+
* 分片上传请求头增加 Content-Length
6+
27

38
## 7.25.2
49

conf/conf.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"github.com/qiniu/go-sdk/v7/internal/env"
55
)
66

7-
const Version = "7.25.1"
7+
const Version = "7.25.3"
88

99
const (
1010
CONTENT_TYPE_JSON = "application/json"

internal/clientv2/request.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func NewRequest(options RequestParams) (req *http.Request, err error) {
100100
if contentLengthHeaderValue := options.Header.Get("Content-Length"); contentLengthHeaderValue != "" {
101101
contentLength, err = strconv.ParseInt(contentLengthHeaderValue, 10, 64)
102102
if err != nil {
103-
return nil, fmt.Errorf("invalid Content-Length header value: %s, %w", contentLengthHeaderValue, err)
103+
return nil, fmt.Errorf("invalid Content-Length header value: %s, %s", contentLengthHeaderValue, err)
104104
}
105105
}
106106
if options.OnRequestProgress != nil {

0 commit comments

Comments
 (0)