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

req.status_line should be writable to allow custom status lines.

    Details

    • Type: New Feature
    • Status: In Progress
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.3.1
    • Fix Version/s: 3.3.x
    • Component/s: core
    • Labels:
      None

      Description

      If req.status_line is writable it allows a handler to return a custom status line description. For example:

      req.status_line = "200 ALL OKAY WITH ME"
      req.write('hello world!\n')
      return apache.OK

      The ability to change the description may be useful in testing. See thread:

      http://www.modpython.org/pipermail/mod_python/2007-May/023567.html

      for discussion where lack of this feature arose.

        Activity

        Hide
        grahamd Graham Dumpleton added a comment -

        Fixed in revision 687027 of trunk.

        Show
        grahamd Graham Dumpleton added a comment - Fixed in revision 687027 of trunk.

          People

          • Assignee:
            grahamd Graham Dumpleton
            Reporter:
            grahamd Graham Dumpleton
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development