Skip to content

Commit 0d2feda

Browse files
authored
use outgoing instead of incoming http headers on request headers (#142)
1 parent 2b36e16 commit 0d2feda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { request as httpsRequest } from 'https';
66
import {
77
ServerResponse,
88
request as httpRequest,
9-
IncomingHttpHeaders,
9+
OutgoingHttpHeaders,
1010
} from 'http';
1111

1212
import pb from '@bitpatty/imgproxy-url-builder';
@@ -21,7 +21,7 @@ type HandlerOptions = {
2121
authToken?: string;
2222
bucketWhitelist?: string[];
2323
forwardedHeaders?: string[];
24-
requestHeaders?: IncomingHttpHeaders;
24+
requestHeaders?: OutgoingHttpHeaders;
2525
logging?: LoggerOptions;
2626
};
2727

0 commit comments

Comments
 (0)