Python: Apply suggestions from code review

Co-authored-by: yoff <lerchedahl@gmail.com>
This commit is contained in:
Rasmus Wriedt Larsen
2021-06-21 10:43:25 +02:00
committed by GitHub
parent 7c758f5c81
commit 8208aebd7e
3 changed files with 3 additions and 3 deletions

View File

@@ -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() {

View File

@@ -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")

View File

@@ -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,
)