response: Remove unnecessary length check
This commit is contained in:
parent
72d437c82e
commit
056e55abbb
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user