From c2cf4a7fe7c1ae4b94a74596d221dbe9470471b9 Mon Sep 17 00:00:00 2001 From: antao Date: Thu, 3 Jan 2019 22:15:59 +0800 Subject: [PATCH] Format files --- lib/src/HttpRequestImpl.h | 2 +- lib/src/HttpResponseImpl.h | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/src/HttpRequestImpl.h b/lib/src/HttpRequestImpl.h index 64a5d601..44d704cd 100755 --- a/lib/src/HttpRequestImpl.h +++ b/lib/src/HttpRequestImpl.h @@ -283,7 +283,7 @@ class HttpRequestImpl : public HttpRequest } return defaultVal; } - + const std::string &getCookie(const std::string &field, const std::string &defaultVal = std::string()) const override { std::unordered_map::const_iterator it = _cookies.find(field); diff --git a/lib/src/HttpResponseImpl.h b/lib/src/HttpResponseImpl.h index faef9906..14ff3f30 100755 --- a/lib/src/HttpResponseImpl.h +++ b/lib/src/HttpResponseImpl.h @@ -93,13 +93,13 @@ class HttpResponseImpl : public HttpResponse { auto field = key; transform(field.begin(), field.end(), field.begin(), ::tolower); - return getHeaderBy(field,defaultVal); + return getHeaderBy(field, defaultVal); } virtual const std::string &getHeader(std::string &&key, const std::string &defaultVal = std::string()) const override { transform(key.begin(), key.end(), key.begin(), ::tolower); - return getHeaderBy(key,defaultVal); + return getHeaderBy(key, defaultVal); } const std::string &getHeaderBy(const std::string &lowerKey, const std::string &defaultVal = std::string()) const @@ -112,7 +112,6 @@ class HttpResponseImpl : public HttpResponse return iter->second; } - virtual void addHeader(const std::string &key, const std::string &value) override { _fullHeaderString.reset();