From 29df79e4e5c9a428105856844f791f3c0f20c1d2 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Fri, 25 Aug 2006 14:36:44 +0000 Subject: Fixed parsing when space occurs at the end of the field value. --- src/contentDisposition.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/contentDisposition.cpp') diff --git a/src/contentDisposition.cpp b/src/contentDisposition.cpp index 46176636..e90c77ca 100644 --- a/src/contentDisposition.cpp +++ b/src/contentDisposition.cpp @@ -50,8 +50,8 @@ contentDisposition::contentDisposition(const contentDisposition& type) void contentDisposition::parse(const string& buffer, const string::size_type position, const string::size_type end, string::size_type* newPosition) { - m_name = utility::stringUtils::toLower - (string(buffer.begin() + position, buffer.begin() + end)); + m_name = utility::stringUtils::trim(utility::stringUtils::toLower + (string(buffer.begin() + position, buffer.begin() + end))); setParsedBounds(position, end); -- cgit v1.2.3