From a88203e98f3171ff3455f0ccfa95c3e7833405fc Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Wed, 24 May 2023 18:15:36 +0300 Subject: [PATCH] log paths --- autoindex.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoindex.py b/autoindex.py index 99bff9a..b3cb551 100644 --- a/autoindex.py +++ b/autoindex.py @@ -2,6 +2,7 @@ import os import socket from os import environ from pathlib import Path +import logging from sanic import Sanic, HTTPResponse from sanic.request import Request @@ -24,6 +25,8 @@ j2env = get_j2env(DEBUG) @app.get(r'/') async def index(request: Request, path=''): + logging.warning(path) + path = path.replace('%20', ' ') domain = request.host query = f'?{request.query_string}' if request.query_string else ''