Skip to content

Commit

Permalink
Fix bug with url queries
Browse files Browse the repository at this point in the history
  • Loading branch information
vocksel committed Jan 20, 2024
1 parent 7cdfd30 commit b2047c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/src/requests/createUrl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ local function createUrl(baseUrl: string, query: { [string]: any }?)
-- Remove the last ampersand (&) from the query string
joinedQuery = joinedQuery:gsub("&$", "")

return `{baseUrl}?joinedQuery`
return `{baseUrl}?{joinedQuery}`
else
return baseUrl
end
Expand Down

0 comments on commit b2047c5

Please sign in to comment.