--- a/mythtv/libs/libmythupnp/httprequest.cpp +++ b/mythtv/libs/libmythupnp/httprequest.cpp @@ -180,6 +180,13 @@ sHeader += GetAdditionalHeaders(); + sHeader += QString( "Connection: %1\r\n" + "Content-Type: %2\r\n" + "Content-Length: %3\r\n" ) + .arg( GetKeepAlive() ? "Keep-Alive" : "Close" ) + .arg( sContentType ) + .arg( nSize ); + // ---------------------------------------------------------------------- // Temp Hack to process DLNA header @@ -191,12 +198,6 @@ // ---------------------------------------------------------------------- - sHeader += QString( "Connection: %1\r\n" - "Content-Type: %2\r\n" - "Content-Length: %3\r\n" ) - .arg( GetKeepAlive() ? "Keep-Alive" : "Close" ) - .arg( sContentType ) - .arg( nSize ); sHeader += "\r\n"; return sHeader;