CPPSERV


Home Projects Jobs Clientele Contact

cppserv


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Fix getHeader() bug in HttpServletResponseImpl.cpp



From: Sergey Jukov <sergey@total-knowledge.com>

---
 ChangeLog                                 |    5 ++++-
 src/container/HttpServletResponseImpl.cpp |    2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 7f1a158..5dd3ef1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,9 @@
+2006.14.08        Sergey Jukov <sergey@total-knowledge>
+- Fix setHeader() bug in HttpServletResponseImpl.cpp
+
 2006.13.08        Sergey Jukov <sergey@total-knowledge>
 - Fix date header parsing issue in HttpServletImpl.cpp, add exception for
-date header parsing. Code sync.
+  date header parsing. Code sync.
 	
 2006.09.08        Sergey Jukov <sergey@total-knowledge>
 - Fix extra path issue in HttpServletImpl.cpp
diff --git a/src/container/HttpServletResponseImpl.cpp b/src/container/HttpServletResponseImpl.cpp
index 3f1cfa3..b507372 100644
--- a/src/container/HttpServletResponseImpl.cpp
+++ b/src/container/HttpServletResponseImpl.cpp
@@ -143,7 +143,7 @@ void container::HttpServletResponseImpl:
 	std::string lname(name);
 	std::transform(lname.begin(),lname.end(),lname.begin(),util::ToLower());
 	headers.erase(headers.lower_bound(name),headers.upper_bound(name));
-	headers.insert(util::nvpair(name,value));
+	headers.insert(util::nvpair(lname,value));
 }
 
 /*!
-- 
1.4.2


Authoright © Total Knowledge: 2001-2008