瀏覽代碼

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.


Loading…
取消
儲存