Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4d634d8fa5 | ||
|
|
a538282e4f |
@@ -1,7 +1,7 @@
|
|||||||
package teaconst
|
package teaconst
|
||||||
|
|
||||||
const (
|
const (
|
||||||
Version = "0.5.0"
|
Version = "0.5.1"
|
||||||
|
|
||||||
ProductName = "Edge Node"
|
ProductName = "Edge Node"
|
||||||
ProcessName = "edge-node"
|
ProcessName = "edge-node"
|
||||||
|
|||||||
@@ -253,7 +253,7 @@ func (this *HTTPRequest) doOriginRequest(failedOriginIds []int64, failedLnNodeId
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 在HTTP/2下需要防止因为requestBody而导致Content-Length为空的问题
|
// 在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.Close()
|
||||||
this.RawReq.Body = nil
|
this.RawReq.Body = nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user