mirror of
https://github.com/soypat/lneto.git
synced 2026-08-21 23:19:03 +00:00
begin working on making response quicker (why is tap interface so slow?)
This commit is contained in:
@@ -222,6 +222,9 @@ func (h *Header) peekHeader(key string) argsKV {
|
||||
|
||||
func (hb *headerBuf) mustAppendSlice(value string) headerSlice {
|
||||
L := len(hb.buf)
|
||||
if L == 0 {
|
||||
L++ // Valid key-values start after 0.
|
||||
}
|
||||
copy(hb.buf[L:L+len(value)], value)
|
||||
hb.buf = hb.buf[:L+len(value)]
|
||||
return hb.slice(hb.buf[L : L+len(value)])
|
||||
|
||||
Reference in New Issue
Block a user