Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flask request.args contains the (?arg) with socketify wsgi #170

Open
altunyurt opened this issue Apr 7, 2024 · 0 comments
Open

flask request.args contains the (?arg) with socketify wsgi #170

altunyurt opened this issue Apr 7, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@altunyurt
Copy link

altunyurt commented Apr 7, 2024

Describe the bug
I've tried flask with many other wsgi servers without any problems, but running the same application with socketify as follows, causes the app to receive query string arguments as (?arg, val) instead of (arg, val)

To Reproduce

Run a flask application containing an endpoint defined as follows

from flask import request
...
@app.route("/", methods=["GET"])
def index():
    print(request.args)
    return ""

Run the application with socketify

python -m socketify app:app -w 1 -p 9000 --interface wsgi

Request a url on the app, say: http://localhost:9000/?page=1
It will print out ImmutableMultiDict([('?page', '1')])

Expected behavior
It should print out ImmutableMultiDict([('page', '1')])
which is the correct print out when the same app is run with flask dev server or any other wsgi server.

Versions
socketify 0.0.27
flask 3.0.3
python 3.9.7

@cirospaciari cirospaciari added the bug Something isn't working label Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants