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