Skip to content

Commit

Permalink
Fix Flask example
Browse files Browse the repository at this point in the history
  • Loading branch information
egon-okerman-sonarsource committed Dec 26, 2023
1 parent 5a6e7fd commit 39d10d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rules/S5131/python/how-to-fix-it/flask.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ from flask import make_response, request
@app.route('/')
def index():
return make_response(request.args.get("input"), mimetype="text/plain")
response = make_response(request.args.get("input"))
response.mimetype = "text/plain"
return response
----

=== How does this work?
Expand Down

0 comments on commit 39d10d2

Please sign in to comment.