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

swoole_http_server response header redirect #431

Closed
xiaoshen opened this issue Dec 15, 2015 · 1 comment
Closed

swoole_http_server response header redirect #431

xiaoshen opened this issue Dec 15, 2015 · 1 comment

Comments

@xiaoshen
Copy link

我在onRequest方法里使用
$response->header('Location','http://www.baidu.com')
或者header('Location: http://www.baidu.com');进行页面跳转都无法实现。
有什么办法可以实现跳转么?

@matyhtf
Copy link
Member

matyhtf commented Dec 16, 2015

增加$response->status(301) or 302

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