nghttpx: Interleave text/html pushed resources with associated resource

This commit is contained in:
Tatsuhiro Tsujikawa 2016-02-14 00:28:08 +09:00
parent 6b12f17f44
commit d8c8a4631d
1 changed files with 3 additions and 1 deletions

View File

@ -1558,7 +1558,9 @@ int Http2Upstream::adjust_pushed_stream_priority(Downstream *downstream) {
} }
if (!util::istarts_with_l(ct->value, "application/javascript") && if (!util::istarts_with_l(ct->value, "application/javascript") &&
!util::istarts_with_l(ct->value, "text/css")) { !util::istarts_with_l(ct->value, "text/css") &&
// for polymer...
!util::istarts_with_l(ct->value, "text/html")) {
return 0; return 0;
} }