소스 검색

Tolerate missing v2 "Last-Modified" value

Tianon Gravi 10 년 전
부모
커밋
cda8fe4ee1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      .template-helpers/generate-tag-details.pl

+ 1 - 1
.template-helpers/generate-tag-details.pl

@@ -216,7 +216,7 @@ while (my $image = shift) {
 		say "-\t" . 'Virtual Size: ' . size($data->{virtual_size});
 		say "-\t" . 'v2 Blob: `' . $data->{blob} . '`';
 		say "-\t" . 'v2 Content-Length: ' . size($data->{blob_content_length});
-		say "-\t" . 'v2 Last-Modified: ' . date($data->{blob_last_modified});
+		say "-\t" . 'v2 Last-Modified: ' . date($data->{blob_last_modified}) if $data->{blob_last_modified};
 		$cur = $parentChild{$cur};
 	}
 }