Core: Fixed xmlize issue with missing value in XML

git-svn-id: svn://ultimatepp.org/upp/trunk@6054 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2013-05-12 10:19:26 +00:00
parent a571fbba4f
commit bc686db2b5
3 changed files with 4 additions and 2 deletions

View file

@ -471,7 +471,6 @@ bool HttpResponse(TcpSocket& socket, bool scgi, int code, const char *phrase,
if(content_type)
r << "Content-Type: " << content_type << "\r\n";
r << "\r\n";
LOG(r + data);
if(!socket.PutAll(r))
return false;
return data.GetCount() == 0 || socket.PutAll(data);

View file

@ -390,6 +390,9 @@ void Value::Xmlize(XmlIO& xio)
}
else {
String name = xio.GetAttr("type");
if(Upp::IsNull(name))
*this = Value();
else
if(name == s_binary) {
String s;
Upp::Xmlize(xio, s);

View file

@ -36,7 +36,7 @@ enum { XML_DOC, XML_TAG, XML_END, XML_TEXT, XML_DECL, XML_PI, XML_COMMENT, XML_E
struct XmlError : public Exc
{
XmlError(const char *s) : Exc(s) {}
XmlError(const char *s) : Exc(s) { DDUMP(s); }
};
class XmlParser {