Skip to content

Commit

Permalink
Remove import URL from url.
Browse files Browse the repository at this point in the history
This line isn't necessary and gives issues in the browser.
  • Loading branch information
jasny committed Aug 26, 2024
1 parent ed7ce93 commit 19e6bee
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
/node_modules/
.idea
.nyc_output
.yarn
yarn.lock
package-lock.json
1 change: 0 additions & 1 deletion src/build.ts
Original file line number Diff line number Diff line change
@@ -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) ?? '';
Expand Down

0 comments on commit 19e6bee

Please sign in to comment.