Add support for passwordless 'user:@host' URIs
Previously the URI BNF didn't allow to specify empty password. There should have been at least one symbol. Now both user@host and user:@host forms are permitted. In case of user@host, the password will parsed as nil. In case of user:@host, the password will be parsed as empty string. Fixes #1512
Showing
- src/lua/console.lua 6 additions, 0 deletionssrc/lua/console.lua
- src/uri.rl 1 addition, 1 deletionsrc/uri.rl
- test/app-tap/console.result 3 additions, 1 deletiontest/app-tap/console.result
- test/app-tap/console.test.lua 13 additions, 1 deletiontest/app-tap/console.test.lua
- test/app-tap/uri.result 12 additions, 1 deletiontest/app-tap/uri.result
- test/app-tap/uri.test.lua 17 additions, 1 deletiontest/app-tap/uri.test.lua
- test/unit/uri.c 3 additions, 1 deletiontest/unit/uri.c
- test/unit/uri.result 60 additions, 48 deletionstest/unit/uri.result
Loading
Please register or sign in to comment