mirror of
https://github.com/withastro/astro.git
synced 2024-12-30 22:03:56 -05:00
[ci] format
This commit is contained in:
parent
2aa2dfd05d
commit
59a2fbc213
1 changed files with 1 additions and 2 deletions
|
@ -87,8 +87,7 @@ export class NodeApp extends App {
|
||||||
|
|
||||||
const portInHostname = typeof hostname === 'string' && /:\d+$/.test(hostname);
|
const portInHostname = typeof hostname === 'string' && /:\d+$/.test(hostname);
|
||||||
const hostnamePort = portInHostname ? hostname : `${hostname}${port ? `:${port}` : ''}`;
|
const hostnamePort = portInHostname ? hostname : `${hostname}${port ? `:${port}` : ''}`;
|
||||||
|
|
||||||
|
|
||||||
const url = `${protocol}://${hostnamePort}${req.url}`;
|
const url = `${protocol}://${hostnamePort}${req.url}`;
|
||||||
const options: RequestInit = {
|
const options: RequestInit = {
|
||||||
method: req.method || 'GET',
|
method: req.method || 'GET',
|
||||||
|
|
Loading…
Reference in a new issue