diff --git a/src/nhttpd/yhttpd_core/helper.cpp b/src/nhttpd/yhttpd_core/helper.cpp index 1fa303974..89d14b64a 100644 --- a/src/nhttpd/yhttpd_core/helper.cpp +++ b/src/nhttpd/yhttpd_core/helper.cpp @@ -105,6 +105,8 @@ bool ySplitString(std::string str, std::string delimiter, std::string& left, replace(left, "\n", ""); replace(right, "\r\n", ""); replace(right, "\n", ""); + left = trim(left); + right = trim(right); return (pos != std::string::npos); } //-------------------------------------------------------------------------