From the mailing list, post (with patch) by Ron Gomes:
We use mod_python to rewrite URLs internally based on request criteria. As part of our processing, in our request handler we grab and then remove any request query parameters by setting
so that they will be invisible to later phases.
A change was necessary to src/requestobject.c in order to make this work since, as delivered, that line causes an exception to be thrown because the code only allows Python strings to be assigned to req.args.
Assigning an empty string would work but the semantics of that are slightly different and are indistinguishable from an explictly-empty query string.
From the mailing list, post (with patch) by Ron Gomes:
We use mod_python to rewrite URLs internally based on request criteria. As part of our processing, in our request handler we grab and then remove any request query parameters by setting
so that they will be invisible to later phases.
A change was necessary to src/requestobject.c in order to make this work since, as delivered, that line causes an exception to be thrown because the code only allows Python strings to be assigned to req.args.
Assigning an empty string would work but the semantics of that are slightly different and are indistinguishable from an explictly-empty query string.