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

mix-httpd下的http_user_agent问题 #20

Closed
zhyfor opened this issue Apr 16, 2018 · 4 comments
Closed

mix-httpd下的http_user_agent问题 #20

zhyfor opened this issue Apr 16, 2018 · 4 comments

Comments

@zhyfor
Copy link

zhyfor commented Apr 16, 2018

我在mix-httpd下打印出来的的\Mix::app->request->server()里没有http_user_agent,这个信息是丢失了吗,还是要用其它方式去取

@fuyoo
Copy link

fuyoo commented Apr 16, 2018

老哥在这个里面\Mix::app()->request-header()

@zhyfor
Copy link
Author

zhyfor commented Apr 16, 2018

\Mix::app()->request-header('user-agent')

@zhyfor
Copy link
Author

zhyfor commented Apr 16, 2018

呖 不是下划线,差点又进坑

@onanying
Copy link
Member

onanying commented Apr 16, 2018

对,\Mix::app()->request->header('user-agent'),mix 里 server 超级变量分为了 header 与 server 两个方法获取,而且 key 全部为小写,为了与 swooleServer 兼容。

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

3 participants