config2setopts: use default protocol properly#21983
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adjusts how the curl tool derives the “active” protocol from a URL when --proto-default is set, aiming to ensure the default protocol is used (and scheme guessing is avoided) for schemeless URLs.
Changes:
- Update
url_proto_and_rewrite()to useCURLU_NO_GUESS_SCHEMEwhen--proto-defaultis provided. - Update documentation for
--proto-defaultto clarify thatipfs/ipnscannot be used as default protocols.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/config2setopts.c | Changes scheme extraction logic in url_proto_and_rewrite() when --proto-default is set. |
| docs/cmdline-opts/proto-default.md | Documents that ipfs/ipns cannot be used as default protocols. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This comment was marked as resolved.
This comment was marked as resolved.
|
augment review |
🤖 Augment PR SummarySummary: Adjusts curl tool URL scheme detection so Changes:
Technical Notes: The change continues to use 🤖 Was this summary useful? React with 👍 or 👎 |
Verified by test 1724, 1725 and 2036 Closes #21983
345bc8b to
092fab0
Compare
No description provided.