mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Python: Model django request handlers without known route
This commit is contained in:
@@ -113,5 +113,5 @@ class PossiblyNotRouted(View):
|
||||
# Even if our analysis can't find a route-setup for this class, we should still
|
||||
# consider it to be a handle incoming HTTP requests
|
||||
|
||||
def get(self, request, possibly_not_routed=42): # $ MISSING: requestHandler routedParameter=possibly_not_routed
|
||||
def get(self, request, possibly_not_routed=42): # $ requestHandler routedParameter=possibly_not_routed
|
||||
return HttpResponse('PossiblyNotRouted get: {}'.format(possibly_not_routed)) # $HttpResponse
|
||||
|
||||
@@ -24,7 +24,7 @@ class MyBasicViewHandler(View):
|
||||
|
||||
|
||||
class MyCustomViewBaseClass(View):
|
||||
def post(self, request: HttpRequest): # $ MISSING: requestHandler
|
||||
def post(self, request: HttpRequest): # $ requestHandler
|
||||
return HttpResponse("MyCustomViewBaseClass: POST") # $ HttpResponse
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user