Compare commits

...

2 Commits

Author SHA1 Message Date
刘祥超
4d634d8fa5 修复一处HTTPS错误提示 2022-08-15 18:26:23 +08:00
刘祥超
a538282e4f 版本修改为0.5.1 2022-08-15 18:26:10 +08:00
2 changed files with 2 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
package teaconst
const (
Version = "0.5.0"
Version = "0.5.1"
ProductName = "Edge Node"
ProcessName = "edge-node"

View File

@@ -253,7 +253,7 @@ func (this *HTTPRequest) doOriginRequest(failedOriginIds []int64, failedLnNodeId
}
// 在HTTP/2下需要防止因为requestBody而导致Content-Length为空的问题
if this.RawReq.ProtoMajor == 2 && this.RawReq.ContentLength == 0 {
if this.RawReq.ProtoMajor == 2 && this.RawReq.ContentLength == 0 && this.RawReq.Body != nil {
_ = this.RawReq.Body.Close()
this.RawReq.Body = nil
}