예제 #1
0
파일: O.php 프로젝트: hfw/h
 /**
  * Get or set the pending `Content-Type` header (with `nosniff`).
  * @param string $type
  * @return string|null
  */
 public static function type($type = null)
 {
     if (isset($type)) {
         self::$headers['Content-Type'] = $type;
         self::$headers['X-Content-Type-Options'] = 'nosniff';
         return $type;
     }
     return X::elem(self::$headers, 'Content-Type');
 }