mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-09 08:02:48 +08:00
改进Request的type方法对image类型的判断 统一返回image
This commit is contained in:
@@ -97,9 +97,7 @@ class Request
|
||||
'atom' => 'application/atom+xml',
|
||||
'pdf' => 'application/pdf',
|
||||
'text' => 'text/plain',
|
||||
'png' => 'image/png',
|
||||
'jpg' => 'image/jpg,image/jpeg,image/pjpeg',
|
||||
'gif' => 'image/gif',
|
||||
'image' => 'image/png,image/jpg,image/jpeg,image/pjpeg,image/gif,image/webp,image/*',
|
||||
'csv' => 'text/csv',
|
||||
'html' => 'text/html,application/xhtml+xml,*/*',
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user