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