kean / Get

Web API client built using async/await
MIT License
937 stars 74 forks source link

Fix trailing ? when creating the request with empty query items #29

Closed grdsdev closed 2 years ago

grdsdev commented 2 years ago

When creating a request with an empty query params, the request is created with a trailing ? without any parameter.

This PR adds a fix for setting the component's queryItems only when the query is non-empty.

kean commented 2 years ago

Thanks for the fix!