Skip to content

Commit bd894ae

Browse files
committed
Fix flask test
1 parent 3be916e commit bd894ae

File tree

1 file changed

+2
-2
lines changed
  • python/ql/src/experimental/Security/CWE-113/tests

1 file changed

+2
-2
lines changed

python/ql/src/experimental/Security/CWE-113/tests/flask_bad.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from flask import Response, request, Flask
1+
from flask import Response, request, Flask, make_response
22
from werkzeug.datastructures import Headers
33

44
app = Flask(__name__)
@@ -35,7 +35,7 @@ def flask_make_response_extend():
3535
rfs_header = request.args["rfs_header"]
3636
resp = make_response("hello")
3737
resp.headers.extend(
38-
{'HeaderName': request.args["rfs_header"]})
38+
{'HeaderName': rfs_header})
3939
return resp
4040

4141

0 commit comments

Comments
 (0)