MT#13717 Add topupcash name as exception to collectionS names format

Change-Id: I4f00a04607b97327aee40aab69d15ba57c7aa07e
changes/24/2124/1
Irina Peshinskaya 10 years ago
parent 521fc6a59f
commit 7616a4cc50

@ -36,9 +36,9 @@ $ua->ssl_opts(
my @hopts = split /\s*,\s*/, $res->header('Allow');
my @links = $res->header('Link');
my $rex = qr!^</api/[a-z]+/>; rel="collection http://purl\.org/sipwise/ngcp-api/#rel-([a-z]+s|topupcash)"$!;
foreach my $link(@links) {
my $rex = qr!^</api/[a-z]+/>; rel="collection http://purl\.org/sipwise/ngcp-api/#rel-([a-z]+s)"$!;
my ($relname) = ($link =~ $rex);
(my ($relname)) = ($link =~ $rex);
# now get this rel
$req = HTTP::Request->new('OPTIONS', "$uri/api/$relname/");
$res = $ua->request($req);

Loading…
Cancel
Save