rtspconnection: Update capitalization of x-sessioncookie
authorEvan Callaway <evan.callaway@ipconfigure.com>
Wed, 2 Dec 2015 14:00:31 +0000 (09:00 -0500)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 2 Dec 2015 14:29:53 +0000 (16:29 +0200)
Some servers incorrectly parse header names with strict case-sensitivity.  For
compatibility with these systems change X-Sessioncookie to x-sessioncookie.

https://bugzilla.gnome.org/show_bug.cgi?id=758921

gst-libs/gst/rtsp/gstrtspdefs.c
gst-libs/gst/rtsp/gstrtspdefs.h

index 4f9dc9fa4c9df6277897f20c68208f8994c0d881..a27f579956eba99a75f4d38bd51cd41a870789b6 100644 (file)
@@ -163,7 +163,7 @@ static struct rtsp_header rtsp_headers[] = {
   {"Host", FALSE},
   {"Pragma", TRUE},
   {"X-Server-IP-Address", FALSE},
-  {"X-Sessioncookie", FALSE},
+  {"x-sessioncookie", FALSE},
 
   {"RTCP-Interval", FALSE},
 
index 4297a5385291c2645dc9f7f59553be6626d008cd..2a1608e6cafbc5d27a862fc9cc5b4bb37960ca6e 100644 (file)
@@ -326,7 +326,7 @@ typedef enum {
   GST_RTSP_HDR_HOST,                /* Host */
   GST_RTSP_HDR_PRAGMA,              /* Pragma */
   GST_RTSP_HDR_X_SERVER_IP_ADDRESS, /* X-Server-IP-Address */
-  GST_RTSP_HDR_X_SESSIONCOOKIE,     /* X-Sessioncookie */
+  GST_RTSP_HDR_X_SESSIONCOOKIE,     /* x-sessioncookie */
 
   GST_RTSP_HDR_RTCP_INTERVAL,       /* RTCP-Interval */