From 7aae2fc9f50f84a258358e4fde51f4e70e1df896 Mon Sep 17 00:00:00 2001 From: Ciprian Dorin Craciun Date: Thu, 18 Nov 2021 09:09:07 +0200 Subject: [PATCH] [server] Minor headers parsing fixup. --- sources/lib/common/metadata.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/lib/common/metadata.go b/sources/lib/common/metadata.go index 3827d1d..b0e4973 100644 --- a/sources/lib/common/metadata.go +++ b/sources/lib/common/metadata.go @@ -88,7 +88,7 @@ func MetadataDecodeIterate (_data []byte, _callback func ([]byte, []byte) ()) (e return fmt.Errorf ("[41f3756c] invalid metadata encoding") } _key := _data[: _separator] - _value := _data[_separator + 3 :] + _value := _data[_separator + 2 :] if len (_key) == 0 { return fmt.Errorf ("[c3f5e8f3] invalid metadata encoding (empty key)") }