Skip to content

Commit

Permalink
release v2.3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Oct 31, 2024
1 parent dcf3b9b commit efcae14
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions CyberCP/secMiddleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,22 @@ def __call__(self, request):
pass

from plogical.processUtilities import ProcessUtilities
FinalURL = request.build_absolute_uri().split('?')[0]

# if os.path.exists(ProcessUtilities.debugPath):
# logging.writeToFile(request.build_absolute_uri())
if os.path.exists(ProcessUtilities.debugPath):
logging.writeToFile(request.build_absolute_uri())
logging.writeToFile(FinalURL)


if FinalURL == '/' or FinalURL == '/verifyLogin' or FinalURL == '/logout':
if os.path.exists(ProcessUtilities.debugPath):
logging.writeToFile(request.build_absolute_uri())

FinalURL = request.build_absolute_uri().split('?')[0]

# if os.path.exists(ProcessUtilities.debugPath):
# logging.writeToFile(f'Final actual URL without QS {FinalURL}')

if request.method == 'POST' or request.method == 'OPTIONS':
if request.method.lower() == 'post' or request.method.lower() == 'options':
try:

# logging.writeToFile(request.body)
Expand Down

0 comments on commit efcae14

Please sign in to comment.