Skip to content

Commit 03f375e

Browse files
committed
missed some
1 parent 7657b3e commit 03f375e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

python/ql/lib/semmle/python/frameworks/FastApi.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ module FastApi {
6767
/**
6868
* Gets the dataflow node corresponding to the allowed CORS methods
6969
*/
70-
DataFlow::Node allowed_methods() { result = this.getArgByName("allow_methods") }
70+
DataFlow::Node getMethods() { result = this.getArgByName("allow_methods") }
7171

7272
/**
7373
* Gets the dataflow node corresponding to the allowed CORS headers
7474
*/
75-
DataFlow::Node allowed_headers() { result = this.getArgByName("allow_headers") }
75+
DataFlow::Node getHeaders() { result = this.getArgByName("allow_headers") }
7676
}
7777

7878
/**

python/ql/lib/semmle/python/frameworks/Starlette.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ module Starlette {
6868
/**
6969
* Gets the dataflow node corresponding to the allowed CORS methods
7070
*/
71-
DataFlow::Node allowed_methods() { result = this.getArgByName("allow_methods") }
71+
DataFlow::Node getMethods() { result = this.getArgByName("allow_methods") }
7272

7373
/**
7474
* Gets the dataflow node corresponding to the allowed CORS headers
7575
*/
76-
DataFlow::Node allowed_headers() { result = this.getArgByName("allow_headers") }
76+
DataFlow::Node getHeaders() { result = this.getArgByName("allow_headers") }
7777
}
7878

7979
/**

0 commit comments

Comments
 (0)