소스 검색

Fix Content-Type header typographical error

pull/79/head
Benjamin Southall 7 년 전
부모
커밋
0feab91f31
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      b.php

+ 1
- 1
b.php 파일 보기

@@ -23,7 +23,7 @@ function serveRandomBanner($dir, $files) {
header('Cache-Control: no-cache, no-store, must-revalidate'); // HTTP 1.1
header('Pragma: no-cache'); // HTTP 1.0
header('Expires: 0'); // Proxies
header("Content-type: image/" . ext);
header("Content-type: image/" . $ext);
header("Content-Disposition: inline; filename=" . $name);

// readfile displays the image, passthru seems to spits stream.


불러오는 중...
취소
저장