… | |
… | |
50 | |
50 | |
51 | if ($uri =~ m%^/([0-9a-f]+)$%) { # faces |
51 | if ($uri =~ m%^/([0-9a-f]+)$%) { # faces |
52 | my $idx = $cf::FACEHASH{pack "H*", $1}; |
52 | my $idx = $cf::FACEHASH{pack "H*", $1}; |
53 | |
53 | |
54 | $idx |
54 | $idx |
55 | or return $self->respond ("404 illegal face name"); |
55 | or do { $self->respond ("404 illegal face name"), next }; |
56 | |
56 | |
57 | if ($req =~ /if-none-match/i) { # dirtiest hack evar |
57 | if ($req =~ /if-none-match/i) { # dirtiest hack evar |
58 | $self->respond ("304 not modified", "", $cache_headers); |
58 | $self->respond ("304 not modified", "", $cache_headers); |
59 | return; |
59 | next; |
60 | } |
60 | } |
61 | |
61 | |
62 | my $type = cf::face::get_type $idx, 1; |
62 | my $type = cf::face::get_type $idx, 1; |
63 | |
63 | |
64 | if ($type & 1) { |
64 | if ($type & 1) { |