Skip to content

Fix QueryMap/PostFormMap curl example failing due to curl URL globbing - #422

Open
whyayen wants to merge 1 commit into
gin-gonic:masterfrom
whyayen:patch-1
Open

whyayen wants to merge 1 commit into
gin-gonic:masterfrom
whyayen:patch-1

Conversation

@whyayen

@whyayen whyayen commented Sep 18, 2026

Copy link
Copy Markdown

The current example uses query parameters such as ids[a] and ids[b]. curl interprets square brackets in URLs as URL globbing syntax, causing the example to fail with:

curl: (3) bad range in URL

Adding --globoff keeps the bracket notation readable while making the documented command directly executable.

The current example uses query parameters such as `ids[a]` and
`ids[b]`. curl interprets square brackets in URLs as URL globbing
syntax, causing the example to fail with:

curl: (3) bad range in URL

Adding `--globoff` keeps the bracket notation readable while making
the documented command directly executable.

This branch has not been deployed

No deployments
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