mirror of
https://github.com/eolinker/apinto
synced 2025-10-07 09:41:01 +08:00
重构 clone
This commit is contained in:
@@ -3,6 +3,7 @@ package http_context
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"github.com/eolinker/eosc/log"
|
||||
|
||||
http_service "github.com/eolinker/eosc/eocontext/http-context"
|
||||
"github.com/valyala/fasthttp"
|
||||
@@ -20,7 +21,10 @@ type ProxyRequest struct {
|
||||
|
||||
func (r *ProxyRequest) Finish() error {
|
||||
fasthttp.ReleaseRequest(r.req)
|
||||
r.RequestReader.Finish()
|
||||
err := r.RequestReader.Finish()
|
||||
if err != nil {
|
||||
log.Warn(err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
func (r *ProxyRequest) Header() http_service.IHeaderWriter {
|
||||
|
Reference in New Issue
Block a user