Skip to content

Commit

Permalink
fixup! fixup! worker: support case-insensitive process.env usage on W…
Browse files Browse the repository at this point in the history
…indows

Signed-off-by: Daeyeon Jeong <daeyeon.dev@gmail.com>
  • Loading branch information
daeyeon committed Aug 3, 2023
1 parent f373f7e commit a955522
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/node_env_var.cc
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ class MapKVStore final : public KVStore {

struct Equal {
inline bool operator()(const std::string& a, const std::string& b) const {
return a.size() == b.size() && StringEqualNoCase(a.c_str(), b.c_str());
return a.size() == b.size() &&
StringEqualNoCaseN(a.data(), b.data(), b.size());
}
};

Expand Down

0 comments on commit a955522

Please sign in to comment.