mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
Python: Model redirects in twisted
This commit is contained in:
@@ -38,7 +38,7 @@ class PlainText(Resource):
|
||||
|
||||
class Redirect(Resource):
|
||||
def render_GET(self, request: Request): # $ requestHandler
|
||||
request.redirect("/new-location") # $ MISSING: HttpRedirectResponse
|
||||
request.redirect("/new-location") # $ HttpRedirectResponse redirectLocation="/new-location" HttpResponse mimetype=text/html
|
||||
# By default, this `hello` output is not returned... not even when
|
||||
# requested with curl.
|
||||
return b"hello" # $ SPURIOUS: HttpResponse mimetype=text/html responseBody=b"hello"
|
||||
|
||||
Reference in New Issue
Block a user