Skip to content

Commit 340c85a

Browse files
authored
Fix a typo that makes the --auth flag unusable (#801)
1 parent d470399 commit 340c85a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/load.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export default async function load(
127127
const headers: Headers = {
128128
"User-Agent": "openapi-typescript",
129129
};
130-
if (options.auth) headers.Authorizaton = options.auth;
130+
if (options.auth) headers.Authorization = options.auth;
131131

132132
// Add custom parsed HTTP headers
133133
if (options.httpHeaders) {

0 commit comments

Comments
 (0)