nghttpx: Don't do mruby push with --no-server-push option
This commit is contained in:
parent
7273c7d688
commit
1df682140c
|
@ -1689,7 +1689,7 @@ int Http2Upstream::initiate_push(Downstream *downstream, const char *uri,
|
||||||
size_t len) {
|
size_t len) {
|
||||||
int rv;
|
int rv;
|
||||||
|
|
||||||
if (len == 0 ||
|
if (len == 0 || get_config()->no_server_push ||
|
||||||
nghttp2_session_get_remote_settings(session_,
|
nghttp2_session_get_remote_settings(session_,
|
||||||
NGHTTP2_SETTINGS_ENABLE_PUSH) == 0 ||
|
NGHTTP2_SETTINGS_ENABLE_PUSH) == 0 ||
|
||||||
get_config()->http2_proxy || get_config()->client_proxy ||
|
get_config()->http2_proxy || get_config()->client_proxy ||
|
||||||
|
|
Loading…
Reference in New Issue