SAT>IP client: UPnP header field names are case insensitive

This commit is contained in:
Mihai Renea 2022-10-25 14:04:51 +02:00
parent 0a216f1cf9
commit c0a60781d4
1 changed files with 2 additions and 2 deletions

View File

@ -76,13 +76,13 @@ void cSatipMsearch::Process(void)
if (status) {
// Check the location data
// LOCATION: http://192.168.0.115:8888/octonet.xml
if (startswith(r, "LOCATION:")) {
if (strcasestr(r, "LOCATION:") == r) {
location = compactspace(r + 9);
debug1("%s location='%s'", __PRETTY_FUNCTION__, location);
}
// Check the source type
// ST: urn:ses-com:device:SatIPServer:1
else if (startswith(r, "ST:")) {
else if (strcasestr(r, "ST:") == r) {
char *st = compactspace(r + 3);
if (strstr(st, "urn:ses-com:device:SatIPServer:1"))
valid = true;