mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Python: Apply suggestions from code review
Co-authored-by: yoff <lerchedahl@gmail.com>
This commit is contained in:
committed by
GitHub
parent
7c758f5c81
commit
8208aebd7e
@@ -79,7 +79,7 @@ private module Twisted {
|
||||
|
||||
/**
|
||||
* A "render" method on a `twisted.web.resource.Resource` subclass, whose return value
|
||||
* is written as the body fo the HTTP response.
|
||||
* is written as the body of the HTTP response.
|
||||
*/
|
||||
class TwistedResourceRenderMethod extends TwistedResourceRequestHandler {
|
||||
TwistedResourceRenderMethod() {
|
||||
|
||||
@@ -45,7 +45,7 @@ class Redirect(Resource):
|
||||
|
||||
|
||||
class NonHttpBodyOutput(Resource):
|
||||
"""Examples of provides values in response that is not in the body
|
||||
"""Examples of providing values in response that is not in the body
|
||||
"""
|
||||
def render_GET(self, request: Request): # $ requestHandler
|
||||
request.responseHeaders.addRawHeader("key", "value")
|
||||
|
||||
@@ -57,7 +57,7 @@ class MyTaintTest(Resource):
|
||||
request.getRequestHostname(), # $ tainted
|
||||
)
|
||||
|
||||
# technically user-controlled, but unlike to lead to vulnerabilities.
|
||||
# technically user-controlled, but unlikely to lead to vulnerabilities.
|
||||
ensure_not_tainted(
|
||||
request.method,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user