mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-12-02 09:36:47 +00:00
fix: missing error return
This commit is contained in:
1 parent
31f0060b30
commit
6cfaf15cbf
1 file changed
+1
-1
@@ -129,7 +129,7 @@ func (c *httpConn) Write(b []byte) (int, error) {
|
||||
buf.Write(b)
|
||||
_, err := c.Conn.Write(buf.Bytes())
|
||||
if err != nil {
|
||||
return 0, nil
|
||||
return 0, err
|
||||
}
|
||||
c.hasSentHeader = true
|
||||
return bLength, nil
|
||||
|
||||
Reference in new issue
Block a user