Skip to content

Avoid extra & if we have no params at all - #297

Open
samuelwei wants to merge 1 commit into
bigbluebutton:masterfrom
samuelwei:cleanup-url
Open

samuelwei wants to merge 1 commit into
bigbluebutton:masterfrom
samuelwei:cleanup-url

Conversation

@samuelwei

Copy link
Copy Markdown
Contributor

Fixes #295

Removes the extra "&" when buildQs / buildUrl is called with empty query params

Before
https://bigbluebutton.tld/bigbluebutton/api?&checksum=123

After
https://bigbluebutton.tld/bigbluebutton/api?checksum=123

Same is done in the Fork: https://github.com/littleredbutton/bigbluebutton-api-php/blob/master/src/Util/UrlBuilder.php#L57

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.

HTTP Query encoding

1 participant