diff options
author | Jason Carey <jcarey@argv.me> | 2019-02-04 10:32:18 -0500 |
---|---|---|
committer | Jason Carey <jcarey@argv.me> | 2019-02-05 16:15:54 -0500 |
commit | 5fd66f15797c45c9bab7b59f9e55e0a2f7ad5cd0 (patch) | |
tree | 9cc5e965d7f1abb0a280beee279b337152622d76 /src/mongo/scripting | |
parent | 5647fa34c70e1d7d255fcd85840115e95d81466b (diff) | |
download | mongo-5fd66f15797c45c9bab7b59f9e55e0a2f7ad5cd0.tar.gz |
SERVER-39317 Make uri options case insensitive
Diffstat (limited to 'src/mongo/scripting')
-rw-r--r-- | src/mongo/scripting/mozjs/uri.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/scripting/mozjs/uri.cpp b/src/mongo/scripting/mozjs/uri.cpp index 92cb0053b17..011d201918a 100644 --- a/src/mongo/scripting/mozjs/uri.cpp +++ b/src/mongo/scripting/mozjs/uri.cpp @@ -83,7 +83,7 @@ void URIInfo::construct(JSContext* cx, JS::CallArgs args) { BSONObjBuilder optsBuilder; for (const auto& kvpair : parsed.getOptions()) { - optsBuilder.append(kvpair.first, kvpair.second); + optsBuilder.append(kvpair.first.original(), kvpair.second); } JS::RootedObject thisv(cx); |