Add name to errors from v2ray HTTP transports

This commit is contained in:
世界
2024-07-02 14:08:17 +08:00
parent 8a17043502
commit 94707dfcdd
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ func (c *HTTPConn) Read(b []byte) (n int, err error) {
return 0, E.Cause(err, "read response")
}
if response.StatusCode != 200 {
return 0, E.New("unexpected status: ", response.Status)
return 0, E.New("v2ray-http: unexpected status: ", response.Status)
}
if cacheLen := reader.Buffered(); cacheLen > 0 {
c.responseCache = buf.NewSize(cacheLen)