Skip to content

Commit

Permalink
feat: OpenAPI spec update via Stainless API (#1545)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Mar 12, 2024
1 parent 2d66983 commit 755286e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/requestconfig/requestconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,11 @@ func NewRequestConfig(ctx context.Context, method string, u string, body interfa
hasSerializationFunc = true
}
if body, ok := body.(apiquery.Queryer); ok {
u = u + "?" + body.URLQuery().Encode()
hasSerializationFunc = true
params := body.URLQuery().Encode()
if params != "" {
u = u + "?" + params
}
}

// Fallback to json serialization if none of the serialization functions that we expect
Expand Down

0 comments on commit 755286e

Please sign in to comment.