Skip to content

Conversation

@bagder
Copy link
Member

@bagder bagder commented Oct 15, 2025

Since it needs to be a trailing piece of the path avoiding strstr() is faster and more reliable.

Also stopped checking the host name since it cannot actually be there since quite a long while back. The URL parser doesn't allow such a hostname.

Moved the check into its own subfunction too.

Since it needs to be a trailing piece of the path avoiding strstr() is
faster and more reliable.

Also stopped checking the host name since it cannot actually be there
since quite a long while back. The URL parser doesn't allow such a
hostname.

Moved the check into its own subfunction too.
@bagder bagder marked this pull request as ready for review October 15, 2025 06:30
@bagder bagder closed this in 5ac3541 Oct 15, 2025
@bagder bagder deleted the bagder/ftp-type branch October 15, 2025 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants