Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

finfo_file不能正确按照更好的预期运行,不能识别css,js等mimeType #24

Open
augushong opened this issue Jan 11, 2019 · 2 comments

Comments

@augushong
Copy link

augushong commented Jan 11, 2019

如截图的效果,使用官方的workerman组件,并不能正确返回预期的类型,比如css,并没有返回css,而是text/plain,js也是.

我是继承了官方组件http,重写了几行内容,但并非我重写的原因,官方组件的效果也是如此.

我的php版本是7.2.13,系统是fedora29.

求证是否存在此问题或如何修复,我临时打算重写为其他方法.

@augushong
Copy link
Author

augushong commented Jan 11, 2019

/home/augushong/project/aphpnsfw/public/static/lib/layui/layui.js
text/plain
/home/augushong/project/aphpnsfw/public/static/lib/layui/css/layui.css
text/plain
/home/augushong/project/aphpnsfw/public/static/js/common.js
inode/x-empty
/home/augushong/project/aphpnsfw/public/static/lib/jquery/jquery-3.3.1.min.js
text/plain
/home/augushong/project/aphpnsfw/public/static/lib/layui/lay/modules/element.js
text/plain
/home/augushong/project/aphpnsfw/public/favicon.ico
image/x-icon

截图似乎没能生效,以上是我输出的内容,输出文件和解析的mimeType,显然,css返回的是text/plain

@zoujingli
Copy link

遇到了同样的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants