Skip to content

Commit

Permalink
Fix Flask example (#3527)
Browse files Browse the repository at this point in the history
  • Loading branch information
egon-okerman-sonarsource authored Jan 3, 2024
1 parent 5a6e7fd commit 6a8c878
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 6a8c878

Please sign in to comment.