diff -up pegasus/src/Pegasus/Common/XmlWriter.cpp_old pegasus/src/Pegasus/Common/XmlWriter.cpp --- pegasus/src/Pegasus/Common/XmlWriter.cpp_old 2008-07-15 14:24:21.000000000 +0200 +++ pegasus/src/Pegasus/Common/XmlWriter.cpp 2008-07-15 14:25:38.000000000 +0200 @@ -2094,6 +2094,8 @@ void XmlWriter::appendUnauthorizedRespon const String& content) { out << STRLIT("HTTP/1.1 " HTTP_STATUS_UNAUTHORIZED "\r\n"); + Uint32 contentLength = 0; + OUTPUT_CONTENTLENGTH; out << content << STRLIT("\r\n"); out << STRLIT("\r\n");