mirror of
https://github.com/ehang-io/nps.git
synced 2025-09-01 19:06:52 +00:00
配置更改
This commit is contained in:
4
http.go
4
http.go
@@ -69,7 +69,9 @@ func EncodeResponse(r *http.Response) ([]byte, error) {
|
||||
raw := bytes.NewBuffer([]byte{})
|
||||
binary.Write(raw, binary.LittleEndian, []byte("sign"))
|
||||
respBytes, err := httputil.DumpResponse(r, true)
|
||||
respBytes = replaceHost(respBytes)
|
||||
if config.Replace == 1 {
|
||||
respBytes = replaceHost(respBytes)
|
||||
}
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user