mirror of
https://github.com/github/codeql.git
synced 2026-04-26 17:25:19 +02:00
Added NextResponse to the ResponseCall class it models similar near idential behaviour.
This commit is contained in:
@@ -19,10 +19,13 @@ private class HeadersEntryPoint extends API::EntryPoint {
|
||||
}
|
||||
|
||||
/**
|
||||
* A call to the `Response` constructor.
|
||||
* A call to the `Response` and `NextResponse` constructor.
|
||||
*/
|
||||
private class ResponseCall extends API::InvokeNode {
|
||||
ResponseCall() { this = any(ResponseEntryPoint e).getANode().getAnInstantiation() }
|
||||
ResponseCall() {
|
||||
this = any(ResponseEntryPoint e).getANode().getAnInstantiation() or
|
||||
this = API::moduleImport("next/server").getMember("NextResponse").getAnInstantiation()
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user