Skip to content

Commit

Permalink
feature: git获取文件内容超过1M应返回指定的错误码 TencentBlueKing#4284
Browse files Browse the repository at this point in the history
  • Loading branch information
mingshewhe committed Jun 1, 2021
1 parent 8a5ff6f commit 24b2996
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ object OkhttpUtils {
totalBytesRead += len
if (totalBytesRead >= readLimit) {
throw ErrorCodeException(
statusCode = 200,
statusCode = 413,
errorCode = ERROR_HTTP_RESPONSE_BODY_TOO_LARGE,
defaultMessage = errorMsg ?: "response body cannot be exceeded $readLimit"
)
Expand Down

0 comments on commit 24b2996

Please sign in to comment.