summaryrefslogtreecommitdiff
path: root/src/mongo/scripting
diff options
context:
space:
mode:
authorJason Carey <jcarey@argv.me>2019-02-04 10:32:18 -0500
committerJason Carey <jcarey@argv.me>2019-02-05 16:15:54 -0500
commit5fd66f15797c45c9bab7b59f9e55e0a2f7ad5cd0 (patch)
tree9cc5e965d7f1abb0a280beee279b337152622d76 /src/mongo/scripting
parent5647fa34c70e1d7d255fcd85840115e95d81466b (diff)
downloadmongo-5fd66f15797c45c9bab7b59f9e55e0a2f7ad5cd0.tar.gz
SERVER-39317 Make uri options case insensitive
Diffstat (limited to 'src/mongo/scripting')
-rw-r--r--src/mongo/scripting/mozjs/uri.cpp2
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);