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 0023f27 commit 91fe0f3Copy full SHA for 91fe0f3
lib/mongo/uri.rb
@@ -490,7 +490,7 @@ def raise_invalid_error_no_fmt!(details)
490
end
491
492
def decode(value)
493
- ::URI.decode(value)
+ ::URI::DEFAULT_PARSER.unescape(value)
494
495
496
def encode(value)
spec/mongo/uri_spec.rb
@@ -352,7 +352,7 @@
352
let(:servers) { '%2Ftmp%2Fmongodb-27017.sock' }
353
354
it 'returns an array with the parsed server' do
355
- expect(uri.servers).to eq([URI.unescape(servers)])
+ expect(uri.servers).to eq([URI::DEFAULT_PARSER.unescape(servers)])
356
357
358
0 commit comments