mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-04-22 07:25:47 +00:00
- In readRequest, removed redundant assignment of c.firstBuf after the Read operation. The slice is already limited to n bytes read. - Changed resp from a value to a pointer in readRequest to avoid copying the struct when only a pointer is needed. - Added error handling in the Read method to return an error if readRequest fails, which was previously ignored. - Optimized the condition in Read to check for equality (c.bufStart == len(c.firstBuf)) instead of greater than or equal, as bufStart should never exceed len(c.firstBuf). |
||
|---|---|---|
| .. | ||
| assets | ||
| controller | ||
| entity | ||
| global | ||
| html | ||
| job | ||
| locale | ||
| middleware | ||
| network | ||
| service | ||
| session | ||
| translation | ||
| web.go | ||