We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 659c344 commit afb9cb9Copy full SHA for afb9cb9
src/cares_wrap.cc
@@ -1413,9 +1413,11 @@ static void Query(const FunctionCallbackInfo<Value>& args) {
1413
Local<String> string = args[1].As<String>();
1414
auto wrap = std::make_unique<Wrap>(channel, req_wrap_obj);
1415
1416
- node::Utf8Value name(env->isolate(), string);
+ node::Utf8Value utf8name(env->isolate(), string);
1417
+ auto plain_name = utf8name.ToStringView();
1418
+ std::string name = ada::idna::to_ascii(plain_name);
1419
channel->ModifyActivityQueryCount(1);
- int err = wrap->Send(*name);
1420
+ int err = wrap->Send(name.c_str());
1421
if (err) {
1422
channel->ModifyActivityQueryCount(-1);
1423
} else {
0 commit comments