Skip to content

Commit

Permalink
feat(connection): use GET request instead of HEAD request #34
Browse files Browse the repository at this point in the history
  • Loading branch information
wadackel committed Jan 4, 2021
1 parent 9e46134 commit 5a48d8a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/connection/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@ const waitForServer = (url: string, timeout: number) =>
return;
}

const resource = url.replace(/^(https?)/, '$1-get');

debug('connection resource: %s', resource);

waitOn({
resources: [url],
resources: [resource],
timeout,
})
.then(() => {
Expand Down

0 comments on commit 5a48d8a

Please sign in to comment.