You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b173098
Browse filesBrowse the repository at this point in the historyBrowse files
feat: default query encoding to RFC 3986 (space as %20) (#190)
Closes: #189
Flip `DefaultQueryEncoder` from `NetURLQueryEncoder` to
`RFC3986QueryEncoder`, so generated clients encode a space in query
parameters as `%20` instead of `+`.
OpenAPI's default `style: form` for query parameters is defined by
RFC 6570, which encodes a space as `%20`; `+` belongs to
`application/x-www-form-urlencoded`, which applies to request bodies.
Servers that accept `+` as a space also accept `%20`, but strict
RFC 3986 servers reject `+`.
This changes default client behavior. To restore the previous encoding,
set `runtime.DefaultQueryEncoder = runtime.NetURLQueryEncoder{}` during
program initialization.
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments