Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into http2-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
marty1885 committed Jun 18, 2024
2 parents 29c8540 + a2f759e commit 70f1f8f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions config.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -278,11 +278,11 @@ app:
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:
# name: The class name of the plugin
Expand Down
4 changes: 2 additions & 2 deletions drogon_ctl/templates/config_yaml.csp
Original file line number Diff line number Diff line change
Expand Up @@ -278,11 +278,11 @@ app:
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:
# name: The class name of the plugin
Expand Down
8 changes: 4 additions & 4 deletions lib/src/AccessLogger.cc
Original file line number Diff line number Diff line change
Expand Up @@ -367,12 +367,12 @@ void AccessLogger::outputDate(trantor::LogStream &stream,
{
if (useLocalTime_)
{
stream << trantor::Date::now().toCustomedFormattedStringLocal(
stream << trantor::Date::now().toCustomFormattedStringLocal(
timeFormat_, showMicroseconds_);
}
else
{
stream << trantor::Date::now().toCustomedFormattedString(
stream << trantor::Date::now().toCustomFormattedString(
timeFormat_, showMicroseconds_);
}
}
Expand All @@ -398,12 +398,12 @@ void AccessLogger::outputReqDate(trantor::LogStream &stream,
{
if (useLocalTime_)
{
stream << req->creationDate().toCustomedFormattedStringLocal(
stream << req->creationDate().toCustomFormattedStringLocal(
timeFormat_, showMicroseconds_);
}
else
{
stream << req->creationDate().toCustomedFormattedString(
stream << req->creationDate().toCustomFormattedString(
timeFormat_, showMicroseconds_);
}
}
Expand Down
6 changes: 3 additions & 3 deletions lib/src/Utilities.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1039,9 +1039,9 @@ char *getHttpFullDate(const trantor::Date &date)
return lastTimeString;
}
lastSecond = nowSecond;
date.toCustomedFormattedString("%a, %d %b %Y %H:%M:%S GMT",
lastTimeString,
sizeof(lastTimeString));
date.toCustomFormattedString("%a, %d %b %Y %H:%M:%S GMT",
lastTimeString,
sizeof(lastTimeString));
return lastTimeString;
}

Expand Down
2 changes: 1 addition & 1 deletion trantor

0 comments on commit 70f1f8f

Please sign in to comment.