Fix bug ID 0000004 reported by darkservant.

Missing X_USER_AGENT parameter for "Xc" fmt (i.e. HTTP X-User-Agent header).


git-svn-id: https://pupnp.svn.sourceforge.net/svnroot/pupnp/trunk@67 119443c7-1b9e-41f8-b6fc-b9c35fce742c
This commit is contained in:
Nektarios K. Papadopoulos 2006-07-25 06:26:15 +00:00
parent 8625298899
commit d17eb5fcfc

View File

@ -41,6 +41,7 @@
#include "statcodes.h" #include "statcodes.h"
#include "httpparser.h" #include "httpparser.h"
#include "httpreadwrite.h" #include "httpreadwrite.h"
#include "ssdplib.h"
#include "unixutil.h" #include "unixutil.h"
@ -1166,7 +1167,7 @@ respond_ok( IN SOCKINFO * info,
response.size_inc = 30; response.size_inc = 30;
if( http_MakeMessage( &response, major, minor, if( http_MakeMessage( &response, major, minor,
"R" "D" "S" "N" "Xc" "ssc" "sc" "c", "R" "D" "S" "N" "Xc" "ssc" "sc" "c",
HTTP_OK, 0, HTTP_OK, 0, X_USER_AGENT
"SID: ", sub->sid, timeout_str ) != 0 ) { "SID: ", sub->sid, timeout_str ) != 0 ) {
membuffer_destroy( &response ); membuffer_destroy( &response );
error_respond( info, HTTP_INTERNAL_SERVER_ERROR, request ); error_respond( info, HTTP_INTERNAL_SERVER_ERROR, request );