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 11b8389 commit ee05c33Copy full SHA for ee05c33
src/crypto/crypto_cipher.cc
@@ -128,7 +128,7 @@ void GetCipherInfo(const FunctionCallbackInfo<Value>& args) {
128
129
// Lowercase the name in place before we create the JS string from it.
130
std::string name_str(cipher.getName());
131
- for (char& c : name_str) c = static_cast<char>(ToLower(c));
+ name_str = ToLower(name_str);
132
133
values[0] = ToV8Value(env->context(), cipher.getModeLabel(), env->isolate());
134
values[1] = ToV8Value(env->context(), name_str, env->isolate());
0 commit comments