]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
SAT>IP client: UPnP header field names are case insensitive
authorMatthieu Poullet <matthieu.poullet@gmail.com>
Tue, 15 Mar 2022 09:40:44 +0000 (10:40 +0100)
committerFlole998 <Flole998@users.noreply.github.com>
Tue, 15 Mar 2022 10:27:41 +0000 (11:27 +0100)
- SAT>IP Protocol Specification 1.2.2: 3.3.2 Server Advertisements

src/input/mpegts/satip/satip.c

index 4d522e19c4f468612e775684cfc3a4c150a33415..58e91d30bb016fb265ff081a644f157aeed5b9da 100644 (file)
@@ -1175,19 +1175,19 @@ satip_discovery_service_received
     if (ptr == NULL)
       break;
     if (http_tokenize(ptr, argv, 2, ':') == 2) {
-      if (strcmp(argv[0], "ST") == 0)
+      if (strcasecmp(argv[0], "ST") == 0)
         st = argv[1];
-      else if (strcmp(argv[0], "LOCATION") == 0)
+      else if (strcasecmp(argv[0], "LOCATION") == 0)
         location = argv[1];
-      else if (strcmp(argv[0], "SERVER") == 0)
+      else if (strcasecmp(argv[0], "SERVER") == 0)
         server = argv[1];
-      else if (strcmp(argv[0], "BOOTID.UPNP.ORG") == 0)
+      else if (strcasecmp(argv[0], "BOOTID.UPNP.ORG") == 0)
         bootid = argv[1];
-      else if (strcmp(argv[0], "CONFIGID.UPNP.ORG") == 0)
+      else if (strcasecmp(argv[0], "CONFIGID.UPNP.ORG") == 0)
         configid = argv[1];
-      else if (strcmp(argv[0], "DEVICEID.SES.COM") == 0)
+      else if (strcasecmp(argv[0], "DEVICEID.SES.COM") == 0)
         deviceid = argv[1];
-      else if (strcmp(argv[0], "USN") == 0) {
+      else if (strcasecmp(argv[0], "USN") == 0) {
         n = http_tokenize(argv[1], argv, ARRAY_SIZE(argv), ':');
         for (i = 0; i < n-1; i++)
           if (argv[i] && strcmp(argv[i], "uuid") == 0) {