Skip to content

Allow None as value for req.args. #29

Description

@grisha

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

req.args = None

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions