(b []byte)
| 87 | } |
| 88 | |
| 89 | func (zc *zeroResponseConn) Write(b []byte) (n int, err error) { |
| 90 | n, err = zc.Conn.Write(b) |
| 91 | if n > 0 { |
| 92 | zc.bufHolderMux.Lock() |
| 93 | if zc.bufHolder != nil { |
| 94 | zc.returnPool.Put(zc.bufHolder) |
| 95 | zc.bufHolder = nil |
| 96 | } |
| 97 | zc.bufHolderMux.Unlock() |
| 98 | } |
| 99 | return |
| 100 | } |
| 101 | |
| 102 | var authRegexp = regexp.MustCompile(`((?i)\r\nauthorization:\s+)(\S+\s+)(\S+)`) |
| 103 |