SimpleChatTC:SimpleProxy: Some debug prints which give info

This commit is contained in:
hanishkvc 2025-10-23 22:39:05 +05:30
parent 17365ed4b9
commit e6e0adbe90
1 changed files with 3 additions and 1 deletions

View File

@ -51,6 +51,7 @@ class ProxyHandler(http.server.BaseHTTPRequestHandler):
so that the common headers mentioned above can get added to them
else CORS failure will be triggered by the browser on fetch from browser.
"""
print(f"WARN:PH:SendError:{code}:{message}")
self.send_response(code, message)
self.send_headers_common()
@ -58,7 +59,8 @@ class ProxyHandler(http.server.BaseHTTPRequestHandler):
"""
Handle GET requests
"""
print(f"DBUG:ProxyHandler:GET:{self.path}")
print(f"\n\n\nDBUG:ProxyHandler:GET:{self.address_string()}:{self.path}")
print(f"DBUG:PH:Get:Headers:{self.headers}")
pr = urllib.parse.urlparse(self.path)
print(f"DBUG:ProxyHandler:GET:{pr}")
match pr.path: