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

Extensions crashes when you return string "I need arguments..." from python code #190

Open
hvma411 opened this issue Jan 27, 2021 · 0 comments

Comments

@hvma411
Copy link

hvma411 commented Jan 27, 2021

Hi, me and my friends found some strange bug in RESTED extension. Simple example of code (python) that crashes it below:

@app.route('/sum')
def sum():

    a = request.args.get('a')
    b = request.args.get('b')

    if a and b:
        return f"<h1>{a} + {b} = {int(a) + int(b)}</h1>"


    return "I need arguments..."

When you use RESTED request GET with "http://localhost:5000/sum" without arguments it should show you returned string "I need arguments..." but it crashes, but if you return "I need arguments" without 3 dots at the end of the string it just works ok. The problem was tested just in chrome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant