Fix typo in config (#1593)

change 'enabled_compresed_request' to 'enabled_compressed_request'
This commit is contained in:
Omar Mohamed Khallaf 2023-05-08 18:37:52 +03:00 committed by GitHub
parent 42bbc185e1
commit bf4ff759ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -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": [

View File

@ -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": [

View File

@ -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)