mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 02:00:56 +00:00
fix(object): fix content length limit
Signed-off-by: tangdeyi <tangdeyi@oppo.com>
This commit is contained in:
parent
5f3c8e3a25
commit
9b14adf492
@ -2216,7 +2216,7 @@ func VerifyContentLength(r *http.Request, bodyLimit int64) (int64, *ErrorCode) {
|
||||
if length > bodyLimit {
|
||||
return 0, EntityTooLarge
|
||||
}
|
||||
if length <= 0 {
|
||||
if length < 0 {
|
||||
return 0, MissingContentLength
|
||||
}
|
||||
return length, nil
|
||||
|
||||
Loading…
Reference in New Issue
Block a user