diff --git a/indra/llmessage/llhttpclient.cpp b/indra/llmessage/llhttpclient.cpp index 97fce1373..5b23997f9 100644 --- a/indra/llmessage/llhttpclient.cpp +++ b/indra/llmessage/llhttpclient.cpp @@ -309,9 +309,15 @@ void LLHTTPClient::ResponderBase::decode_llsd_body(U32 status, std::string const #ifdef SHOW_ASSERT if (!should_be_llsd) { + char const* str = ss.str().c_str(); // Make sure that the server indeed never returns LLSD as body when the http status is an error. LLSD dummy; - bool server_sent_llsd_with_http_error = LLSDSerialize::fromXML(dummy, ss) > 0; + bool server_sent_llsd_with_http_error = + strncmp(str, " 0; if (server_sent_llsd_with_http_error) { llwarns << "The server sent us a response with http status " << status << " and LLSD(!) body: \"" << ss.str() << "\"!" << llendl;