nghttp: Adjust weight according to Firefox stable

This commit is contained in:
Tatsuhiro Tsujikawa 2016-08-11 21:59:34 +09:00
parent 4c381611a1
commit 8df2c357d9
1 changed files with 3 additions and 3 deletions

View File

@ -244,11 +244,11 @@ nghttp2_priority_spec resolve_dep(int res_type) {
case REQ_CSS:
case REQ_JS:
anchor_id = anchors[ANCHOR_LEADERS].stream_id;
weight = 2;
weight = 32;
break;
case REQ_UNBLOCK_JS:
anchor_id = anchors[ANCHOR_UNBLOCKED].stream_id;
weight = 2;
weight = 32;
break;
case REQ_IMG:
anchor_id = anchors[ANCHOR_FOLLOWERS].stream_id;
@ -256,7 +256,7 @@ nghttp2_priority_spec resolve_dep(int res_type) {
break;
default:
anchor_id = anchors[ANCHOR_FOLLOWERS].stream_id;
weight = 2;
weight = 32;
}
nghttp2_priority_spec_init(&pri_spec, anchor_id, weight, 0);