uri: fix incorrect parse of unix socket URI with query
Previously in case when unix socket URI with query didn't contain "unix/:" prefix, parsing of this URI was incorrect. For example "/unix.sock?q=v" was parsed into "path: /unix.sock" and "query: x=y" instead of "host: unix/", "service: /unix.sock", "unix: /unix.sock" and "query: x=y". Now parsing of unix socket URI is independent from "unix/:" prefix and correct. Pay attention, all parsing logic is realized in uri.rl file which compiled in uri.c using 'ragel'. Part of #5928
Showing
- src/lib/uri/uri.c 3903 additions, 3239 deletionssrc/lib/uri/uri.c
- src/lib/uri/uri.rl 4 additions, 2 deletionssrc/lib/uri/uri.rl
- test/app-tap/uri.test.lua 36 additions, 1 deletiontest/app-tap/uri.test.lua
- test/unit/uri.c 16 additions, 1 deletiontest/unit/uri.c
- test/unit/uri.result 86 additions, 2 deletionstest/unit/uri.result
Loading
Please register or sign in to comment