Commit 150f0413 authored by rygelgit's avatar rygelgit

Added logic to include DLNA version in User-Agent header in Soap actions

parent fb28a86c
......@@ -41,6 +41,7 @@ sub invoke_soap_request {
my $post_url = $SoapHeaders::http_prefix . $_[0] . $SoapHeaders::separator . $_[1] . $_[4];
#print $post_url;
my $user_agent = LWP::UserAgent->new();
$user_agent->agent($user_agent->_agent . ' DLNADOC/1.50');
my $soap_request = HTTP::Request->new(POST => $post_url);
$soap_request->header(SOAPAction => $_[3]);
$soap_request->content($_[2]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment