Skip to content

Commit

Permalink
address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Oct 11, 2024
1 parent 0ae3a42 commit e6d38f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/astro/src/core/app/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export class NodeApp extends App {
forwardedPort ?? (isEncrypted ? '443' : '80');

const portInHostname = typeof hostname === 'string' && /:\d+$/.test(hostname);
const hostnamePort = portInHostname ? hostname : `${hostname}${port ? `:${port}` : ''}`;
const hostnamePort = portInHostname ? hostname : `${hostname}${port}`;

const url = `${protocol}://${hostnamePort}${req.url}`;
const options: RequestInit = {
Expand Down

0 comments on commit e6d38f1

Please sign in to comment.