nghttp: Adjust relative priority with -a
This commit is contained in:
parent
e17f888944
commit
0b7b95923e
|
@ -1003,7 +1003,7 @@ void update_html_parser(HttpClient *client, Request *req,
|
||||||
fieldeq(uri.c_str(), u, req->uri.c_str(), req->u, UF_SCHEMA) &&
|
fieldeq(uri.c_str(), u, req->uri.c_str(), req->u, UF_SCHEMA) &&
|
||||||
fieldeq(uri.c_str(), u, req->uri.c_str(), req->u, UF_HOST) &&
|
fieldeq(uri.c_str(), u, req->uri.c_str(), req->u, UF_HOST) &&
|
||||||
porteq(uri.c_str(), u, req->uri.c_str(), req->u)) {
|
porteq(uri.c_str(), u, req->uri.c_str(), req->u)) {
|
||||||
int32_t pri = adjust_pri(req->pri, p.second);
|
int32_t pri = adjust_pri(req->pri, p.second * (1 << 26));
|
||||||
// No POST data for assets
|
// No POST data for assets
|
||||||
if ( client->add_request(uri, nullptr, 0, pri, req->level+1) ) {
|
if ( client->add_request(uri, nullptr, 0, pri, req->level+1) ) {
|
||||||
submit_request(client, config.headers,
|
submit_request(client, config.headers,
|
||||||
|
|
Loading…
Reference in New Issue