Skip to content
2 changes: 0 additions & 2 deletions mealie/pkgs/safehttp/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ async def handle_async_request(self, request):
netloc = request.url.netloc.decode()
if ":" in netloc: # Either an IP, or a hostname:port combo
netloc_parts = netloc.split(":")
if len(netloc_parts) > 1: # netloc of username:password@hostname:port not supported
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hay-kot see this log.. showing that even when user:pass is included in the url, it was being stripped out before getting to this netloc variable. Thus, the check on parts is irrelevant here.

image

raise InvalidDomainError(f"unsupported request format: {request.url} -> {ip}")

netloc = netloc_parts[0]

Expand Down