mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
16 lines
295 B
Plaintext
16 lines
295 B
Plaintext
/**
|
|
* @name Field read
|
|
* @description Finds code that reads `Request.Method`.
|
|
* @id go/examples/readofrequestmethod
|
|
* @tags field
|
|
* read
|
|
*/
|
|
|
|
import go
|
|
|
|
from Field reqm, Read read
|
|
where
|
|
reqm.hasQualifiedName("net/http", "Request", "Method") and
|
|
read = reqm.getARead()
|
|
select read
|