]> git.sesse.net Git - vlc/commitdiff
Fix Server: HTTP and RTSP header syntax
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 29 May 2010 16:15:03 +0000 (19:15 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 29 May 2010 16:15:03 +0000 (19:15 +0300)
modules/misc/rtsp.c
modules/stream_out/rtsp.c
src/network/httpd.c

index b02756c6c59c26d4846473ba23af67b03631f092..9a60a716bf4c7c3a9375a6170586652791553878 100644 (file)
@@ -1273,7 +1273,7 @@ static int RtspCallback( httpd_callback_sys_t *p_args, httpd_client_t *cl,
             return VLC_EGENERIC;
     }
 
-    httpd_MsgAdd( answer, "Server", "VLC Server" );
+    httpd_MsgAdd( answer, "Server", "VLC/%s", VERSION );
     httpd_MsgAdd( answer, "Content-Length", "%d", answer->i_body );
     psz_cseq = httpd_MsgGet( query, "Cseq" );
     psz_cseq ? i_cseq = atoi( psz_cseq ) : 0;
@@ -1514,7 +1514,7 @@ static int RtspCallbackES( httpd_callback_sys_t *p_args, httpd_client_t *cl,
             break;
     }
 
-    httpd_MsgAdd( answer, "Server", "VLC Server" );
+    httpd_MsgAdd( answer, "Server", "VLC/%s", VERSION );
     httpd_MsgAdd( answer, "Content-Length", "%d", answer->i_body );
     psz_cseq = httpd_MsgGet( query, "Cseq" );
     if (psz_cseq)
index e237c0386494ecbda87f3ca6acca9a99b2f34a24..a1cc95317051da7d790541f7943e66f8f86d9a59 100644 (file)
@@ -398,7 +398,7 @@ static int RtspHandler( rtsp_stream_t *rtsp, rtsp_stream_id_t *id,
     answer->i_body = 0;
     answer->p_body = NULL;
 
-    httpd_MsgAdd( answer, "Server", "%s", PACKAGE_STRING );
+    httpd_MsgAdd( answer, "Server", "VLC/%s", VERSION );
 
     /* Date: is always allowed, and sometimes mandatory with RTSP/2.0. */
     struct tm ut;
index 271ee0486edebe710319ae9a5e7761d4cd0896ca..2e95eedc38ffd0d352de06c6e87bc50101db38dc 100644 (file)
@@ -2144,7 +2144,7 @@ static void* httpd_HostThread( void *data )
                     answer->i_body = 0;
                     answer->p_body = NULL;
 
-                    httpd_MsgAdd( answer, "Server", "%s", PACKAGE_STRING );
+                    httpd_MsgAdd( answer, "Server", "VLC/%s", VERSION );
                     httpd_MsgAdd( answer, "Content-Length", "0" );
 
                     switch( query->i_proto )