Skip to content

Commit 8125d82

Browse files
committed
fix: explicitly set options override the options from the URL.
1 parent 76b2064 commit 8125d82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mongo/url_parser.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ defmodule Mongo.UrlParser do
119119

120120
value = decode_percent(key, value)
121121

122-
Keyword.put(opts, @driver_option_map[key] || key, value)
122+
Keyword.put_new(opts, @driver_option_map[key] || key, value)
123123
end
124124
end
125125

0 commit comments

Comments
 (0)