Ticket #7296: patch samsung

File patch samsung, 1.3 KB (added by jean-marc@…, 15 years ago)

patch_samsung

Line 
1Index: mythtv/libs/libmythupnp/httprequest.cpp
2===================================================================
3--- mythtv/libs/libmythupnp/httprequest.cpp     (révision 22354)
4+++ mythtv/libs/libmythupnp/httprequest.cpp     (copie de travail)
5@@ -201,9 +201,16 @@
6 
7     sHeader += GetAdditionalHeaders();
8 
9+    sHeader += QString( "Connection: %1\r\n"
10+                        "Content-Type: %2\r\n"
11+                        "Content-Length: %3\r\n" )
12+                        .arg( GetKeepAlive() ? "Keep-Alive" : "Close" )
13+                        .arg( sContentType )
14+                        .arg( nSize );
15+
16     // ----------------------------------------------------------------------
17     // Temp Hack to process DLNA header
18-                             
19+
20     QString sValue = GetHeaderValue( "getcontentfeatures.dlna.org", "0" );
21 
22     if (sValue == "1")
23@@ -212,14 +219,6 @@
24 
25     // ----------------------------------------------------------------------
26 
27-
28-
29-    sHeader += QString( "Connection: %1\r\n"
30-                        "Content-Type: %2\r\n"
31-                        "Content-Length: %3\r\n" )
32-                        .arg( GetKeepAlive() ? "Keep-Alive" : "Close" )
33-                        .arg( sContentType )
34-                        .arg( nSize );
35     sHeader += "\r\n";
36 
37     return sHeader;