summaryrefslogtreecommitdiff
path: root/lib/Travel/Status/DE/HAFAS.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Travel/Status/DE/HAFAS.pm')
-rw-r--r--lib/Travel/Status/DE/HAFAS.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Travel/Status/DE/HAFAS.pm b/lib/Travel/Status/DE/HAFAS.pm
index a56ba51..eea56a5 100644
--- a/lib/Travel/Status/DE/HAFAS.pm
+++ b/lib/Travel/Status/DE/HAFAS.pm
@@ -406,7 +406,9 @@ sub post_with_cache {
if ($cache) {
my $content = $cache->thaw( $self->{post} );
- if ($content) {
+ if ( $content
+ and not $content =~ m{ CGI_NO_SERVER | CGI_READ_FAILED }x )
+ {
if ( $self->{developer_mode} ) {
say ' cache hit';
}