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.
getSubscript
1 parent 4f47461 commit f865fa3Copy full SHA for f865fa3
python/ql/lib/semmle/python/frameworks/Aiohttp.qll
@@ -570,12 +570,8 @@ module AiohttpWebModel {
570
override DataFlow::Node getMimetypeOrContentTypeArg() {
571
result = this.getArgByName("content_type")
572
or
573
- exists(DataFlow::Node headers, Dict d |
574
- headers = this.getArgByName("headers").getALocalSource()
575
- |
576
- headers.asExpr() = d and
577
- d.getAKey().(StrConst).getText().toLowerCase() = "content-type" and
578
- d.getAValue() = result.asExpr()
+ exists(string key | key.toLowerCase() = "content-type" |
+ result = this.getKeywordParameter("headers").getSubscript(key).getAValueReachingSink()
579
)
580
}
581
0 commit comments