2624a9 for #86142, adding the XML declaration to the output, broke another part of the system, so work around that.

I accidentally stopped doing "recursive" tests (tests in subdirs) at some point and missed some of this fun breakage.
This commit is contained in:
Scott Walters
2014-08-28 21:01:51 -04:00
parent 3197383a7d
commit 31f5deacf5

View File

@@ -35,6 +35,7 @@ sub deserialize {
})
if not $parser_of{ ${ $self } };
$parser_of{ ${ $self } }->class_resolver( $class_resolver_of{ ${ $self } } );
$content =~ s{^<\?xml version="1.0" *\?>}{}; # XML::Parser::Expat apparently doesn't like this.
eval { $parser_of{ ${ $self } }->parse_string( $content ) };
if ($@) {
return $self->generate_fault({