Skip to content

Commit 535fa36

Browse files
matthewpastrobot-houston
authored andcommitted
[ci] format
1 parent dafbb1b commit 535fa36

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/astro/src/core/app/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,9 @@ export class App {
251251
// Include validated port if available, otherwise use port from forwardedHost if present
252252
const portFromHost = sanitized.includes(':') ? sanitized.split(':')[1] : undefined;
253253
const portForValidation = result.port || portFromHost;
254-
const hostWithPort = portForValidation ? `${hostnameOnly}:${portForValidation}` : hostnameOnly;
254+
const hostWithPort = portForValidation
255+
? `${hostnameOnly}:${portForValidation}`
256+
: hostnameOnly;
255257
const testUrl = new URL(`${protoForValidation}://${hostWithPort}`);
256258
const isAllowed = allowedDomains.some((pattern) => matchPattern(testUrl, pattern));
257259
if (isAllowed) {

0 commit comments

Comments
 (0)