TT#50815 Fix HeaderManipulations invalidate request to kamailio

* kamailio does not accept non-sip tcp messages with an empty body,
      therefore, also sending the invalidating set_id in the body
      is correctly processed by the kamailio endpoint

Change-Id: I4e4f04bd5279e6f7e39f947d54e656737f81e0e5
changes/98/26598/2
Kirill Solomko 7 years ago
parent e9486b891d
commit 7dbbe5ea36

@ -60,7 +60,7 @@ sub invalidate_ruleset {
my $s = Net::HTTP->new(Host => $ip, KeepAlive => 0, PeerPort => $port, Timeout => 5);
$s or die "could not connect to server $hostid";
my $res = $s->write_request("POST", $path || "/", %headers, '');
my $res = $s->write_request("POST", $path || "/", %headers, $set_id);
$res or die "did not get result from $hostid";
my ($code, $status, @hdrs) = $s->read_response_headers();

Loading…
Cancel
Save