mirror of
https://github.com/github/codeql.git
synced 2025-12-25 21:26:37 +01:00
Move the stdlib tests from test/{2,3}/library-tests/ into /test/library-tests/,
and deal with version by using sys.version_info (results should be the same for
both versions).
six tests were moved from /library-tests/web/client/stdlib => /library-tests/web/client/six
12 lines
284 B
Plaintext
12 lines
284 B
Plaintext
import python
|
|
|
|
import semmle.python.web.Http
|
|
import semmle.python.web.ClientHttpRequest
|
|
|
|
from Client::HttpRequest req, string method
|
|
where
|
|
if exists(req.getMethodUpper())
|
|
then method = req.getMethodUpper()
|
|
else method = "<NO METHOD>"
|
|
select req, req.getAUrlPart(), method
|