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 d437a09 commit 71703aaCopy full SHA for 71703aa
go/ql/lib/semmle/go/frameworks/stdlib/NetHttp.qll
@@ -179,12 +179,11 @@ module NetHttp {
179
private class RequestCall extends Http::ClientRequest::Range, DataFlow::CallNode {
180
RequestCall() {
181
exists(string functionName |
182
- (
183
- this.getTarget().hasQualifiedName("net/http", functionName)
184
- or
185
- this.getTarget().(Method).hasQualifiedName("net/http", "Client", functionName)
186
- ) and
187
- (functionName = "Get" or functionName = "Post" or functionName = "PostForm")
+ this.getTarget().hasQualifiedName("net/http", functionName)
+ or
+ this.getTarget().(Method).hasQualifiedName("net/http", "Client", functionName)
+ |
+ functionName = ["Get", "Post", "PostForm"]
188
)
189
}
190
0 commit comments