-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve parsing of broken XML on responses by ignoring namespaces (#224)
- Loading branch information
1 parent
55121ed
commit e6d464f
Showing
4 changed files
with
172 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Try discarding namespaces when in non-strict mode to improve handling of broken devices |
8 changes: 8 additions & 0 deletions
8
tests/fixtures/igd/action_WANPIPConnection_DeletePortMapping.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" | ||
xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> | ||
<s:Body> | ||
<u:DeletePortMappingResponse xmlns:u0="urn:schemas-upnp-org:service:WANIPConnection:1"> | ||
</u:DeletePortMappingResponse> | ||
</s:Body> | ||
</s:Envelope> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters