@@ -200,7 +200,7 @@ Result<size_t> HttpReader::read_next(HttpQuery *query, bool can_be_slow) {
200
200
case State::ReadArgs: {
201
201
auto size = content_->size ();
202
202
if (size > MAX_TOTAL_PARAMETERS_LENGTH - total_parameters_length_) {
203
- return Status::Error (413 , " Request Entity Too Large: too much parameters" );
203
+ return Status::Error (413 , " Request Entity Too Large: too many parameters" );
204
204
}
205
205
206
206
if (flow_sink_.is_ready ()) {
@@ -406,7 +406,7 @@ Result<bool> HttpReader::parse_multipart_form_data(bool can_be_slow) {
406
406
if (has_file_name_) {
407
407
// file
408
408
if (query_->files_ .size () == max_files_) {
409
- return Status::Error (413 , " Request Entity Too Large: too much files attached" );
409
+ return Status::Error (413 , " Request Entity Too Large: too many files attached" );
410
410
}
411
411
auto file = open_temp_file (file_name_);
412
412
if (file.is_error ()) {
@@ -432,7 +432,7 @@ Result<bool> HttpReader::parse_multipart_form_data(bool can_be_slow) {
432
432
case FormDataParseState::ReadPartValue:
433
433
if (find_boundary (content_->clone (), boundary_, form_data_read_length_)) {
434
434
if (total_parameters_length_ + form_data_read_length_ > MAX_TOTAL_PARAMETERS_LENGTH) {
435
- return Status::Error (413 , " Request Entity Too Large: too much parameters in form data" );
435
+ return Status::Error (413 , " Request Entity Too Large: too many parameters in form data" );
436
436
}
437
437
438
438
query_->container_ .emplace_back (content_->cut_head (form_data_read_length_).move_as_buffer_slice ());
@@ -460,7 +460,7 @@ Result<bool> HttpReader::parse_multipart_form_data(bool can_be_slow) {
460
460
CHECK (content_->size () < form_data_read_length_ + boundary_.size ());
461
461
462
462
if (total_parameters_length_ + form_data_read_length_ > MAX_TOTAL_PARAMETERS_LENGTH) {
463
- return Status::Error (413 , " Request Entity Too Large: too much parameters in form data" );
463
+ return Status::Error (413 , " Request Entity Too Large: too many parameters in form data" );
464
464
}
465
465
return false ;
466
466
case FormDataParseState::ReadFile: {
@@ -594,7 +594,7 @@ Status HttpReader::parse_url(MutableSlice url) {
594
594
Status HttpReader::parse_parameters (MutableSlice parameters) {
595
595
total_parameters_length_ += parameters.size ();
596
596
if (total_parameters_length_ > MAX_TOTAL_PARAMETERS_LENGTH) {
597
- return Status::Error (413 , " Request Entity Too Large: too much parameters" );
597
+ return Status::Error (413 , " Request Entity Too Large: too many parameters" );
598
598
}
599
599
LOG (DEBUG) << " Parse parameters: \" " << parameters << " \" " ;
600
600
@@ -620,7 +620,7 @@ Status HttpReader::parse_json_parameters(MutableSlice parameters) {
620
620
621
621
total_parameters_length_ += parameters.size ();
622
622
if (total_parameters_length_ > MAX_TOTAL_PARAMETERS_LENGTH) {
623
- return Status::Error (413 , " Request Entity Too Large: too much parameters" );
623
+ return Status::Error (413 , " Request Entity Too Large: too many parameters" );
624
624
}
625
625
LOG (DEBUG) << " Parse JSON parameters: \" " << parameters << " \" " ;
626
626
0 commit comments