Fix JSON spelling.

GitOrigin-RevId: ea2602f1e9a808ff1e28eb289936f9608aae7517
This commit is contained in:
levlam 2019-08-26 05:06:00 +03:00
parent 197acde4d4
commit f27dac69e1
2 changed files with 3 additions and 3 deletions

View File

@ -145,7 +145,7 @@ static tl_object_ptr<td_api::paymentsProviderStripe> convert_payment_provider(
string data = native_parameters->data_;
auto r_value = json_decode(data);
if (r_value.is_error()) {
LOG(ERROR) << "Can't parse json object \"" << native_parameters->data_ << "\": " << r_value.error();
LOG(ERROR) << "Can't parse JSON object \"" << native_parameters->data_ << "\": " << r_value.error();
return nullptr;
}

View File

@ -586,13 +586,13 @@ Status HttpReader::parse_json_parameters(MutableSlice parameters) {
if (total_parameters_length_ > MAX_TOTAL_PARAMETERS_LENGTH) {
return Status::Error(413, "Request Entity Too Large: too much parameters");
}
LOG(DEBUG) << "Parse json parameters: \"" << parameters << "\"";
LOG(DEBUG) << "Parse JSON parameters: \"" << parameters << "\"";
Parser parser(parameters);
parser.skip_whitespaces();
parser.skip('{');
if (parser.status().is_error()) {
return Status::Error(400, "Bad Request: json object expected");
return Status::Error(400, "Bad Request: JSON object expected");
}
while (true) {
parser.skip_whitespaces();