Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simplify libcurl IDN detection #258

Merged
merged 1 commit into from
Nov 17, 2023
Merged

Conversation

vszakats
Copy link
Member

@vszakats vszakats commented Nov 17, 2023

Make it use the feature bitmask instead of walking through the list of
feature strings.

This isn't future-proof of course and the feature bitmask is almost full
as of curl v8.4.0. In case we need to check for a yet-to-be-added curl
feature that is only available through the feature string list, we will
have to reintroduce the list parsing.

Also avoid mid block variable declaration.

Ref: #257 (comment)

@vszakats vszakats force-pushed the easy-idn-detection branch 3 times, most recently from 9f8b328 to 4b1091b Compare November 17, 2023 02:35
@vszakats vszakats changed the title simplify IDN detection simplify libcurl IDN detection Nov 17, 2023
Make it use the feature bitmask instead of walking through the list of
feature strings.

This isn't future-proof of course and the feature bitmask is almost full
as of curl v8.4.0. In case we need to check for a yet-to-be-added curl
feature that is only available through the feature string list, we will
have to reintroduce the list parsing.

Also avoid mid block variable declaration.

Ref: curl#257 (comment)
@vszakats vszakats merged commit 71d039b into curl:master Nov 17, 2023
9 checks passed
@vszakats vszakats deleted the easy-idn-detection branch November 17, 2023 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant