# # # patch "http_client.cc" # from [ba03745920c4b8ee284d8616a26324dda9cec46f] # to [810e141e9c3a48ad8845aee74a4826e38f5b2610] # ============================================================ --- http_client.cc ba03745920c4b8ee284d8616a26324dda9cec46f +++ http_client.cc 810e141e9c3a48ad8845aee74a4826e38f5b2610 @@ -72,7 +72,8 @@ http_client::transact_json(json_value_t { L(FL("reopening connection")); stream = build_stream_to_server(opts, lua, u, include_pattern, exclude_pattern, - constants::default_http_port, + (u.port.empty() ? constants::default_http_port + : lexical_cast(u.port)), Netxx::Timeout(static_cast(constants::netsync_timeout_seconds))); nb = shared_ptr< Netbuf >(new Netbuf(*stream)); io = shared_ptr(new iostream(&(*nb)));