diff --git a/.gitignore b/.gitignore index dc07396..bf58f85 100644 --- a/.gitignore +++ b/.gitignore @@ -2,5 +2,6 @@ /node_modules/ .idea .nyc_output +.yarn yarn.lock package-lock.json diff --git a/src/build.ts b/src/build.ts index 8507707..4cc3f2a 100644 --- a/src/build.ts +++ b/src/build.ts @@ -1,5 +1,4 @@ import { Component, Parameters, RequestLike, ResponseLike } from './types'; -import { URL } from 'url'; export function extractHeader({ headers }: RequestLike | ResponseLike, header: string): string { if (typeof headers.get === 'function') return headers.get(header) ?? '';