Commit ef3ef1f
committed
Return a fresh dict from Server.namespace so callers cannot pollute shared state
Copilot flagged that Server.namespace returned the module-level
_NAMESPACE_MAP directly, so a caller mutating the returned dict would
have polluted every other Server instance in the process. Old namespace-
handling code returned a per-instance dict, so no cross-instance
pollution was possible. Wrap in dict(...) to restore that behavior.1 parent fcd07ca commit ef3ef1f
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
| 296 | + | |
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
| |||
0 commit comments