mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-05 16:13:51 +00:00
The three URLs were built by string surgery, so anything after the database number was mangled rather than kept: rediss://host:6380/0?ssl_cert_reqs=required came out as .../0?ssl_cert_reqs=required/0, and a URL carrying a query but no database had /0 appended after the query. TLS and managed Redis endpoints usually carry exactly those parameters. The URL is split properly now, the three databases go in the path, and scheme, credentials, host, query and fragment are preserved. A URL that cannot be numbered this way — one that is not redis:// or rediss://, or that has something other than a number where the database goes — is refused with a message instead of being turned into something that merely looks like a URL.