httpd_MsgAdd( answer, "Server", PACKAGE_STRING );
httpd_MsgAdd( answer, "Content-Length", "%d", answer->i_body );
psz_cseq = httpd_MsgGet( query, "Cseq" );
- httpd_MsgAdd( answer, "Cseq", "%u", psz_cseq ? psz_cseq : "0" );
+ httpd_MsgAdd( answer, "Cseq", "%s", psz_cseq ? psz_cseq : "0" );
httpd_MsgAdd( answer, "Cache-Control", "%s", "no-cache" );
if( psz_session )
else if( i_msg == HTTPD_MSG_OPTIONS )
{
const char *psz_cseq;
- int i_cseq;
/* unimplemented */
answer->i_proto = query->i_proto ;
answer->p_body = NULL;
psz_cseq = httpd_MsgGet( query, "Cseq" );
- if( psz_cseq )
- i_cseq = atoi( psz_cseq );
- else
- i_cseq = 0;
- httpd_MsgAdd( answer, "Cseq", "%d", i_cseq );
+ httpd_MsgAdd( answer, "Cseq", "%s", psz_cseq ? psz_cseq : "0" );
httpd_MsgAdd( answer, "Server", "VLC Server" );
httpd_MsgAdd( answer, "Public", "DESCRIBE, SETUP, "
"TEARDOWN, PLAY, PAUSE" );