Commit daa1ae3a authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpx: Cosmetic change

parent 44ee67ff
...@@ -1747,7 +1747,7 @@ int parse_config(const char *opt, const char *optarg, ...@@ -1747,7 +1747,7 @@ int parse_config(const char *opt, const char *optarg,
auto addr_end = std::find(std::begin(src), std::end(src), ';'); auto addr_end = std::find(std::begin(src), std::end(src), ';');
DownstreamAddrConfig addr{}; DownstreamAddrConfig addr{};
if (util::istarts_with(optarg, SHRPX_UNIX_PATH_PREFIX)) { if (util::istarts_with_l(src, SHRPX_UNIX_PATH_PREFIX)) {
auto path = std::begin(src) + str_size(SHRPX_UNIX_PATH_PREFIX); auto path = std::begin(src) + str_size(SHRPX_UNIX_PATH_PREFIX);
addr.host = ImmutableString(path, addr_end); addr.host = ImmutableString(path, addr_end);
addr.host_unix = true; addr.host_unix = true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment