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

support a must: prefix for gets #336

Merged
merged 1 commit into from
Aug 27, 2024
Merged

support a must: prefix for gets #336

merged 1 commit into from
Aug 27, 2024

Conversation

bagder
Copy link
Member

@bagder bagder commented Aug 27, 2024

using a must: prefix for gets makes trurl return error for missing parts

If libcurl is new enough a present but zero-length query or fragment does not cause an error when must: is used.

Normally a missing component just causes a blank output. This currently
does not work "scheme" (it defaults to the "guessed" scheme).

"must:" deos not return error if query/fragment was there but empty

(this latter part requires libcurl 8.8.0 or later. The feature is named
'get-empty' in the version output.)

Added tests

Closes #336
@bagder bagder merged commit a1e18d4 into master Aug 27, 2024
11 checks passed
@bagder bagder deleted the bagder/must-component branch August 27, 2024 14:00
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