修改Partial Content的Bounary值长度(从60字节修改为16字节)

This commit is contained in:
GoEdgeLab
2022-02-25 19:09:09 +08:00
parent 260dcbeeff
commit c6c74523db
3 changed files with 10 additions and 3 deletions

View File

@@ -122,7 +122,7 @@ func httpRequestReadRange(reader io.Reader, buf []byte, start int64, end int64,
// 生成boundary
// 仿照Golang自带的函数multipart包
func httpRequestGenBoundary() string {
var buf [30]byte
var buf [8]byte
_, err := io.ReadFull(rand.Reader, buf[:])
if err != nil {
panic(err)