diff --git a/config.example.json b/config.example.json index f8f8bd2e..a70ef5bc 100644 --- a/config.example.json +++ b/config.example.json @@ -294,11 +294,11 @@ "client_max_websocket_message_size": "128K", //reuse_port: Defaults to false, users can run multiple processes listening on the same port at the same time. "reuse_port": false, - // enabled_compresed_request: Defaults to false. If true the server will automatically decompress compressed request bodies. + // enabled_compressed_request: Defaults to false. If true the server will automatically decompress compressed request bodies. // Currently only gzip and br are supported. Note: max_memory_body_size and max_body_size applies twice for compressed requests. // Once when receiving and once when decompressing. i.e. if the decompressed body is larger than max_body_size, the request // will be rejected. - "enabled_compresed_request": false + "enabled_compressed_request": false }, //plugins: Define all plugins running in the application "plugins": [ diff --git a/drogon_ctl/templates/config.csp b/drogon_ctl/templates/config.csp index 14213a9e..e66a8523 100644 --- a/drogon_ctl/templates/config.csp +++ b/drogon_ctl/templates/config.csp @@ -294,11 +294,11 @@ "client_max_websocket_message_size": "128K", //reuse_port: Defaults to false, users can run multiple processes listening on the same port at the same time. "reuse_port": false, - // enabled_compresed_request: Defaults to false. If true the server will automatically decompress compressed request bodies. + // enabled_compressed_request: Defaults to false. If true the server will automatically decompress compressed request bodies. // Currently only gzip and br are supported. Note: max_memory_body_size and max_body_size applies twice for compressed requests. // Once when receiving and once when decompressing. i.e. if the decompressed body is larger than max_body_size, the request // will be rejected. - "enabled_compresed_request": false + "enabled_compressed_request": false }, //plugins: Define all plugins running in the application "plugins": [ diff --git a/lib/src/ConfigLoader.cc b/lib/src/ConfigLoader.cc index 585712b9..a007a33a 100644 --- a/lib/src/ConfigLoader.cc +++ b/lib/src/ConfigLoader.cc @@ -508,7 +508,7 @@ static void loadApp(const Json::Value &app) } } bool enableCompressedRequests = - app.get("enabled_compresed_request", false).asBool(); + app.get("enabled_compressed_request", false).asBool(); drogon::app().enableCompressedRequest(enableCompressedRequests); } static void loadDbClients(const Json::Value &dbClients)