Commit 7281291
authored
transport/mongodb: normalize URI options to lowercase and flatten single-item lists Normalize MongoDB URI option keys to lowercase and flatten single-item lists returned by
uri_parser.parse_uri. This ensures that query params like replicaSet=test_rs are accessible as options['replicaset'] with a scalar value, matching existing Kombu tests and expectations. Normalization is performed before _prepare_client_options so that lowercased keys (e.g., readpreference) are properly handled.1 parent 4c9fb4b commit 7281291
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
324 | 332 | | |
325 | 333 | | |
326 | 334 | | |
| |||
0 commit comments