From b3cdd5b3bf4b37a0b80b421718803aaa5ba38975 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Fri, 20 Jun 2014 16:36:15 +0200 Subject: [PATCH] reformat to cut long line --- Server/Http/Reply.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Server/Http/Reply.cpp b/Server/Http/Reply.cpp index 0a3885710..b3247ece8 100644 --- a/Server/Http/Reply.cpp +++ b/Server/Http/Reply.cpp @@ -44,10 +44,7 @@ void Reply::SetSize(const unsigned size) } // Sets the size of the uncompressed output. -void Reply::SetUncompressedSize() -{ - SetSize(static_cast(content.size())); -} +void Reply::SetUncompressedSize() { SetSize(static_cast(content.size())); } std::vector Reply::ToBuffers() { @@ -90,7 +87,8 @@ Reply Reply::StockReply(Reply::status_type status) const std::string status_string = reply.ToString(status); reply.content.insert(reply.content.end(), status_string.begin(), status_string.end()); reply.headers.emplace_back("Access-Control-Allow-Origin", "*"); - reply.headers.emplace_back("Content-Length", UintToString(static_cast(reply.content.size()))); + reply.headers.emplace_back("Content-Length", + UintToString(static_cast(reply.content.size()))); reply.headers.emplace_back("Content-Type", "text/html"); return reply; }