response: Remove unnecessary length check

This commit is contained in:
Adnan Maolood 2021-03-20 18:29:40 -04:00
parent 72d437c82e
commit 056e55abbb

View File

@ -80,7 +80,7 @@ func ReadResponse(r io.ReadCloser) (*Response, error) {
if !ok {
return nil, ErrInvalidResponse
}
if len(meta) == 0 || len(meta) > 1024 {
if len(meta) == 0 {
return nil, ErrInvalidResponse
}
resp.Meta = string(meta)