Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

parse_qsl problems #117

Open
Open
@mihaiush

Description

Hi,
It seems there is something wrong with parse_qsl function from .src/_apachemodule.c
For this code:

from mod_python import apache
from mod_python import util
def index(req):
 apache.log_error('args: {}'.format(req.args))
 apache.log_error('parse_qsl: {}'.format(util.parse_qsl(req.args)))
 req.content_type = "text/plain"
 return "pong\n"

I get:

[Wed Jun 08 11:09:01.207959 2022] [:error] [pid 18:tid 140612959446784] args: x=10&y=20
[Wed Jun 08 11:09:01.207974 2022] [:error] [pid 18:tid 140612959446784] parse_qsl: [('10', '10'), ('20', '20')]

instead of:

parse_qsl: [('x', '10'), ('y', '20')]

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

        AltStyle によって変換されたページ (->オリジナル) /