We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05765c4 commit b1c0e28Copy full SHA for b1c0e28
python/ql/test/library-tests/frameworks/bottle/bottle_test.py
@@ -5,6 +5,7 @@
5
@app.route('/test', method=['OPTIONS', 'GET']) # $ routeSetup="/test"
6
def test1(): # $ requestHandler
7
response.headers['Content-type'] = 'application/json' # $ headerWriteName='Content-type' headerWriteValue='application/json'
8
+ response.set_header('Content-type', 'application/json') # $ headerWriteName='Content-type' headerWriteValue='application/json'
9
return '[1]' # $ HttpResponse responseBody='[1]' mimetype=text/html
10
11
app.run()
0 commit comments