nghttp: Fix port checking to share connection

This commit is contained in:
Tatsuhiro Tsujikawa 2014-01-10 00:59:14 +09:00
parent 88d31ada75
commit 8721631287
1 changed files with 1 additions and 1 deletions

View File

@ -1562,7 +1562,7 @@ int run(char **uris, int n)
u.port : get_default_port(uri.c_str(), u);
if(!fieldeq(uri.c_str(), u, UF_SCHEMA, prev_scheme.c_str()) ||
!fieldeq(uri.c_str(), u, UF_HOST, prev_host.c_str()) ||
u.port != prev_port) {
port != prev_port) {
if(!requests.empty()) {
if (communicate(prev_scheme, prev_host, prev_port,
std::move(requests), &callbacks) != 0) {