Skip to content

Commit

Permalink
fix(statuscake): remove trailing = from query string
Browse files Browse the repository at this point in the history
  • Loading branch information
codepuncher committed Nov 6, 2023
1 parent aa1ff42 commit ff8356d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/statuscake.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ export async function createUptimeTest(token: string, args: FlagOutput): Promise
if (websiteUrl?.length) {
const websiteUrlFixed = new URL(websiteUrl)
websiteUrlFixed.searchParams.set('statuscake', '')
query.set('website_url', websiteUrlFixed.toString())
query.set('website_url', websiteUrlFixed.toString().replace('?statuscake=', '?statuscake'))
}

const url = `uptime`
Expand Down

0 comments on commit ff8356d

Please sign in to comment.