From 246af91c7d13f04e4a320e71b31d0febd0cbdf6f Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Mon, 22 Feb 2016 23:27:31 +0100 Subject: [PATCH] - yhook: rename var outSingle -> nonPair --- src/nhttpd/yhttpd_core/yhook.cpp | 6 +++--- src/nhttpd/yhttpd_core/yhook.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/nhttpd/yhttpd_core/yhook.cpp b/src/nhttpd/yhttpd_core/yhook.cpp index c8f437b7d..6e6d13c51 100644 --- a/src/nhttpd/yhttpd_core/yhook.cpp +++ b/src/nhttpd/yhttpd_core/yhook.cpp @@ -28,7 +28,7 @@ CyhookHandler::CyhookHandler() Method = M_UNKNOWN; httpStatus = HTTP_NIL; outType = plain; - outSingle = false; + nonPair = false; LastModified=0; } @@ -407,7 +407,7 @@ TOutType CyhookHandler::getOutType() { //----------------------------------------------------------------------------- TOutType CyhookHandler::outStart(bool single) { // for compatibility - outSingle = single; + nonPair = single; // get outType outType = getOutType(); // set response header @@ -437,7 +437,7 @@ std::string CyhookHandler::outPair(std::string _key, std::string _content, bool result += ","; break; default: - if (outSingle) + if (nonPair) result = _content; else result = _key + "=" + _content; diff --git a/src/nhttpd/yhttpd_core/yhook.h b/src/nhttpd/yhttpd_core/yhook.h index 986e016b8..ca82f9572 100644 --- a/src/nhttpd/yhttpd_core/yhook.h +++ b/src/nhttpd/yhttpd_core/yhook.h @@ -139,7 +139,7 @@ public: std::string Sendfile; // Path & Name (local os style) of file to send bool keep_alive; bool cached; // cached by mod_cache - bool outSingle; + bool nonPair; // Input CStringList ParamList; // local copy of ParamList (Request)