SAT>IP client: UPnP header field names are case insensitive (#83)

Co-authored-by: Mihai Renea <m.renea@avm.de>
This commit is contained in:
Mihai Renea 2022-10-25 18:55:50 +02:00 committed by GitHub
parent 0a216f1cf9
commit 64554ad0cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;