nghttpx: Don't do mruby push with --no-server-push option

This commit is contained in:
Tatsuhiro Tsujikawa 2015-09-06 00:06:48 +09:00
parent 7273c7d688
commit 1df682140c
1 changed files with 1 additions and 1 deletions

View File

@ -1689,7 +1689,7 @@ int Http2Upstream::initiate_push(Downstream *downstream, const char *uri,
size_t len) {
int rv;
if (len == 0 ||
if (len == 0 || get_config()->no_server_push ||
nghttp2_session_get_remote_settings(session_,
NGHTTP2_SETTINGS_ENABLE_PUSH) == 0 ||
get_config()->http2_proxy || get_config()->client_proxy ||