mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-13 23:10:25 +08:00
修改Partial Content的Bounary值长度(从60字节修改为16字节)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user