Plugins: require xml header for detection
This commit is contained in:
parent
7c2a651728
commit
306169219a
1 changed files with 1 additions and 1 deletions
|
|
@ -113,7 +113,7 @@ func (p *Pipeline) transformXML(value []byte) []byte {
|
|||
value = bytes.TrimSpace(value)
|
||||
|
||||
// only do a simple check, as some devices e.g. Kostal Piko MP plus don't seem to send proper XML
|
||||
if !bytes.HasPrefix(value, []byte("<")) {
|
||||
if !bytes.HasPrefix(value, []byte("<?xml")) {
|
||||
return value
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue