Content-Length :0 in subscription response

"Hodot D.A." <[email protected]> Wed, 5 Apr 2006 16:01:14 +0300
Newsgroups gmane.linux.upnp-sdk.general
Organization Sam-Solutions
Message-ID <[email protected]>
In universal Plug and Play Device Architecture 
Specification in section 4.1.1 (4.1.1 Eventing: 
Subscribing: SUBSCRIBE with NT and CALLBACK) 
specified this message to answer on subscription 
rquest: 
[QUOTE] 
HTTP/1.1 200 OK 
DATE: when response was generated 
SERVER: OS/version UPnP/1.0 product/version 
SID : uuid: subscription-UUID 
TIMEOUT: Second- actual subscription duration 

(No body for response to a request with method 
SUBSCRIBE, but note that the message must have a 
blank line following the last HTTP header.) 
[/QUOTE] 
 
This message does not include 'Content-Length: 0' 
HTTP header/value. It is necessary for DLNA test. 
Patch for cvs libupnp version in attachment.
-- 
Best regards,
Dmitry Hodot
E-mail: [email protected]
Jabber: [email protected]
subscription_content-length.patch (text/x-diff, 1020 B)
--- libupnp/upnp/src/gena/gena_device.c	2006-02-26 23:13:30.000000000 +0200
+++ libupnp.patched/upnp/src/gena/gena_device.c	2006-03-21 14:40:27.000000000 +0200
@@ -572,6 +572,9 @@
     sprintf( headers, "CONTENT-TYPE: text/xml\r\nCONTENT-LENGTH: "
              "%d\r\nNT: upnp:event\r\nNTS: upnp:propchange\r\n",
              strlen( propertySet ) + 1 );
+	     
+//    if (strlen ( propertySet ) > 0)
+//	sprintf ( headers, "TRANSFER-ENCODING: chunked\r\n" );
 
     //schedule thread for initial notification
 
@@ -1165,8 +1168,8 @@
     membuffer_init( &response );
     response.size_inc = 30;
     if( http_MakeMessage( &response, major, minor,
-                          "R" "D" "S" "ssc" "sc" "c",
-                          HTTP_OK,
+                          "R" "D" "S" "N" "ssc" "sc" "c",
+                          HTTP_OK, 0,
                           "SID: ", sub->sid, timeout_str ) != 0 ) {
         membuffer_destroy( &response );
         error_respond( info, HTTP_INTERNAL_SERVER_ERROR, request );