aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2022-06-10 16:02:11 +0200
committerStefan Boberg <[email protected]>2022-06-10 16:02:11 +0200
commit1bfd27e78e1962779997a5da5dc7639fcb74fcc1 (patch)
treeab78d94247d25a6efbbb25facf63ed3ce98525f7
parentextended zen print command to also handle CbPackage and CompressedBuffer form... (diff)
downloadzen-1bfd27e78e1962779997a5da5dc7639fcb74fcc1.tar.xz
zen-1bfd27e78e1962779997a5da5dc7639fcb74fcc1.zip
clang-format fixes
-rw-r--r--zen/cmds/print.cpp4
-rw-r--r--zenhttp/httpsys.cpp2
-rw-r--r--zenserver/frontend/frontend.cpp2
3 files changed, 5 insertions, 3 deletions
diff --git a/zen/cmds/print.cpp b/zen/cmds/print.cpp
index e5bb2ed4f..a8b2215a2 100644
--- a/zen/cmds/print.cpp
+++ b/zen/cmds/print.cpp
@@ -106,7 +106,9 @@ PrintCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** argv)
if (Attachment.IsCompressedBinary())
{
AttachmentType = "Compressed";
- AttachmentSize = fmt::format("{} ({} uncompressed)", Attachment.AsCompressedBinary().GetCompressedSize(), Attachment.AsCompressedBinary().GetRawSize());
+ AttachmentSize = fmt::format("{} ({} uncompressed)",
+ Attachment.AsCompressedBinary().GetCompressedSize(),
+ Attachment.AsCompressedBinary().GetRawSize());
}
else if (Attachment.IsBinary())
{
diff --git a/zenhttp/httpsys.cpp b/zenhttp/httpsys.cpp
index 023d2215e..19dba126a 100644
--- a/zenhttp/httpsys.cpp
+++ b/zenhttp/httpsys.cpp
@@ -1248,7 +1248,7 @@ HttpSysServerRequest::HttpSysServerRequest(HttpSysTransaction& Tx, HttpService&
if (AcceptContentType != HttpContentType::kUnknownContentType)
{
- m_UriUtf8.RemoveSuffix((uint32_t) (UriSuffix8.size() + 1));
+ m_UriUtf8.RemoveSuffix((uint32_t)(UriSuffix8.size() + 1));
}
}
}
diff --git a/zenserver/frontend/frontend.cpp b/zenserver/frontend/frontend.cpp
index 93e1b5e82..842587708 100644
--- a/zenserver/frontend/frontend.cpp
+++ b/zenserver/frontend/frontend.cpp
@@ -210,7 +210,7 @@ HttpFrontendService::HandleRequest(zen::HttpServerRequest& Request)
// small subset of file extensions is allowed
HttpContentType ContentType = HttpContentType::kUnknownContentType;
-
+
if (const size_t DotIndex = Uri.rfind("."); DotIndex != Uri.npos)
{
const std::string_view DotExt = Uri.substr(DotIndex + 1);