Revert accidental change in nghttp.cc

This commit is contained in:
Tatsuhiro Tsujikawa 2015-04-16 22:36:31 +09:00
parent 1a8da6caec
commit 8f4e2d941f
1 changed files with 2 additions and 3 deletions

View File

@ -2062,12 +2062,11 @@ int communicate(
dep_stream_id = ANCHOR_ID_HIGH;
}
nghttp2_priority_spec_init(&pri_spec, dep_stream_id, config.weight, 0);
for (auto req : requests) {
for (int i = 0; i < config.multiply; ++i) {
auto dep = std::make_shared<Dependency>();
nghttp2_priority_spec_init(&pri_spec, dep_stream_id,
config.weight * (i + 1), 0);
client.add_request(std::get<0>(req), std::get<1>(req), std::get<2>(req),
pri_spec, std::move(dep));
}