mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-05 17:44:55 -06:00
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:
parent
a571fbba4f
commit
bc686db2b5
3 changed files with 4 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue