On the backend, avoid fetching added content data when initial request
returns 404. This prevents edge case where a specific type may be
selected (e.g. via bookmark) even though no data exists for the type.
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
$content->{status} = $code eq '200' ? 1 : 2;
$logger->debug("tpac: added content request for $type returned $code");
- if ($type eq $sel_type) {
+ if ($code eq '200' and $type eq $sel_type) {
while (1) {
my $buf;
my $n = $req->read_entity_body($buf, 1024);