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

nginx 时http反向代理时, 浏览器报net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK)错误 #40

Open
lobtao opened this issue Apr 5, 2020 · 0 comments

Comments

@lobtao
Copy link

lobtao commented Apr 5, 2020

nginx 时http反向代理时报 net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK)错误

解决方法:
Application worker方法

$connection->send($content);
修改为
if (\strtolower($_SERVER['HTTP_CONNECTION']) === "keep-alive") {
$connection->send($content);
} else {
$connection->close($content);
}

@lobtao lobtao changed the title nginx 不能http反向代理? nginx 时http反向代理时报 net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK)错误 Apr 5, 2020
@lobtao lobtao changed the title nginx 时http反向代理时报 net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK)错误 nginx 时http反向代理时, 浏览器报net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK)错误 Apr 5, 2020
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

1 participant