Skip to content
Snippets Groups Projects
Commit 7483bcab authored by Vladimir Davydov's avatar Vladimir Davydov Committed by Vladimir Davydov
Browse files

uri: don't create params table in parse if there's no params

uri.parse always creates params table even if there's no query
parameters in the given uri:

tarantool> require('uri').parse('localhost:3301')
---
- host: localhost
  service: '3301'
  params: []
...

This is confusing and inconsistent with other uri properties, which are
created only if they actually exist. Let's create the params table only
if the given uri actually has any params.
parent 4b24cf55
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment