Merge remote-tracking branch 'origin' into 7.0.x

This commit is contained in:
William Cheng
2023-03-03 21:52:50 +08:00
10595 changed files with 418520 additions and 73194 deletions

View File

@@ -1515,7 +1515,7 @@ void FakeResource::handler_DELETE_internal(const std::shared_ptr<restbed::Sessio
if (status_code == 400) {
responseHeaders.insert(std::make_pair("Content-Type", "text/plain"));
result = "Someting wrong";
result = "Something wrong";
returnResponse(session, 400, result.empty() ? "{}" : result, responseHeaders);
return;

View File

@@ -20,6 +20,7 @@
#include <sstream>
#include <stdexcept>
#include <regex>
#include <algorithm>
#include <boost/lexical_cast.hpp>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/json_parser.hpp>

View File

@@ -24,6 +24,7 @@
#include "OuterEnumInteger.h"
#include <memory>
#include <vector>
#include <array>
#include <boost/property_tree/ptree.hpp>
#include "helpers.h"

View File

@@ -32,7 +32,7 @@ public class TestingHelper {
Approvals.verify(message, removeTrailingSpaces);
}
public static void approveResponseAsJson(Object reponseObject) {
public static void approveResponseAsJson(Object responseObject) {
ObjectMapper objectMapper = new ObjectMapper();
objectMapper.registerModule(new JavaTimeModule());
objectMapper.setDateFormat(new StdDateFormat());
@@ -43,7 +43,7 @@ public class TestingHelper {
String json = "";
try {
json = objectMapper.writerWithDefaultPrettyPrinter().writeValueAsString(reponseObject);
json = objectMapper.writerWithDefaultPrettyPrinter().writeValueAsString(responseObject);
} catch (JsonProcessingException e) {
json = e.toString();
}