[server] Minor headers parsing fixup.
This commit is contained in:
parent
25fd707a2f
commit
7aae2fc9f5
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ func MetadataDecodeIterate (_data []byte, _callback func ([]byte, []byte) ()) (e
|
||||||
return fmt.Errorf ("[41f3756c] invalid metadata encoding")
|
return fmt.Errorf ("[41f3756c] invalid metadata encoding")
|
||||||
}
|
}
|
||||||
_key := _data[: _separator]
|
_key := _data[: _separator]
|
||||||
_value := _data[_separator + 3 :]
|
_value := _data[_separator + 2 :]
|
||||||
if len (_key) == 0 {
|
if len (_key) == 0 {
|
||||||
return fmt.Errorf ("[c3f5e8f3] invalid metadata encoding (empty key)")
|
return fmt.Errorf ("[c3f5e8f3] invalid metadata encoding (empty key)")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue