Ignore the "fd" field for the time being (for the shm extension only).

This commit is contained in:
Andrew Gallant 2013-12-28 09:23:15 -05:00 committed by Přemysl Janouch
parent 3b4adabee1
commit efe87cb908
Signed by: p
GPG Key ID: A0420B94F92B9493

View File

@ -207,7 +207,7 @@ func (x *XMLRequest) Translate() *Request {
Reply: x.Reply.Translate(),
}
for _, field := range x.Fields {
if field.XMLName.Local == "doc" {
if field.XMLName.Local == "doc" || field.XMLName.Local == "fd" {
continue
}
r.Fields = append(r.Fields, field.Translate(r))
@ -238,7 +238,7 @@ func (x *XMLReply) Translate() *Reply {
Fields: make([]Field, 0, len(x.Fields)),
}
for _, field := range x.Fields {
if field.XMLName.Local == "doc" {
if field.XMLName.Local == "doc" || field.XMLName.Local == "fd" {
continue
}
r.Fields = append(r.Fields, field.Translate(r))