Uploaded image for project: 'mod_python'
  1. mod_python
  2. MODPYTHON-207

The attribute req.args should be modifiable.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.3.x
    • 3.3.1
    • core
    • None

    Description

      For completeness, the req.args attribute should be modifiable. Updating req.args is done in modules like mod_rewrite and so something that emulates that may find it useful. It also may be necessary when wishing to interact with mod_proxy where one wants to add additional query args to the request as it is passed through to the downstream web server.

      One use within mod_python itself may be to allow GET style query args when a POST request has been submitted to be wiped out before util.FieldStorage is used to process form fields. This would avoid using the hack approach of creating a wrapper class around the request object which returns an empty string when req.args is accessed.

      Attachments

        Activity

          People

            grahamd Graham Phillip Dumpleton
            grahamd Graham Phillip Dumpleton
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: