Fix typo in config (#1593)
change 'enabled_compresed_request' to 'enabled_compressed_request'
This commit is contained in:
parent
42bbc185e1
commit
bf4ff759ad
|
@ -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": [
|
||||
|
|
|
@ -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": [
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue