Fix USPS URL

The current URL used is seemingly no longer valid.
master
Chris Yeninas 2014-07-23 03:02:40 -04:00
parent f9c3c07aa2
commit 257b4d43b4
2 changed files with 3 additions and 3 deletions

View File

@ -86,7 +86,7 @@ handle query_nowhitespace_nodash => sub {
}
if ($is_usps) {
return $package_number, heading => "USPS Shipment Tracking", html => qq(Track this shipment at <a href="http://trkcnfrm1.smi.usps.com/PTSInternetWeb/InterLabelInquiry.do?origTrackNum=$package_number">USPS</a>.);
return $package_number, heading => "USPS Shipment Tracking", html => qq(Track this shipment at <a href="https://tools.usps.com/go/TrackConfirmAction.action?tLabels=$package_number">USPS</a>.);
}
return;

View File

@ -13,12 +13,12 @@ ddg_goodie_test(
'EA 000 000 000 US' => test_zci(
"EA000000000US",
heading => 'USPS Shipment Tracking',
html => qq(Track this shipment at <a href="http://trkcnfrm1.smi.usps.com/PTSInternetWeb/InterLabelInquiry.do?origTrackNum=EA000000000US">USPS</a>.)
html => qq(Track this shipment at <a href="https://tools.usps.com/go/TrackConfirmAction.action?tLabels=EA000000000US">USPS</a>.)
),
'usps 7000 0000 0000 0000 0000' => test_zci(
"70000000000000000000",
heading => 'USPS Shipment Tracking',
html => qq(Track this shipment at <a href="http://trkcnfrm1.smi.usps.com/PTSInternetWeb/InterLabelInquiry.do?origTrackNum=70000000000000000000">USPS</a>.)
html => qq(Track this shipment at <a href="https://tools.usps.com/go/TrackConfirmAction.action?tLabels=70000000000000000000">USPS</a>.)
),
);