Skip to content

Commit

Permalink
feature: HttpProbePerformer path starts with slash (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
a179346 authored Sep 17, 2024
1 parent 12c4e8c commit ade3ca5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/http-probe-performer/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class HttpProbePerformer extends ProbePerformer {
const port = config.port;

const url = new URL(
`${scheme.toLowerCase()}://${host}${port ? `:${port}` : ''}${path}`
`${scheme.toLowerCase()}://${host}${port ? `:${port}` : ''}${path[0] === '/' ? '' : '/'}${path}`
).toString();
const headers = new Headers();
for (const key in httpHeaders) {
Expand Down

0 comments on commit ade3ca5

Please sign in to comment.