We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f8e173 commit cb17dbcCopy full SHA for cb17dbc
source/ratelimit-header-parser.ts
@@ -7,9 +7,9 @@ import {
7
8
export function parseRateLimit(input: ResponseOrHeadersObject, options?: RateLimitOptions): RateLimit | undefined {
9
if ('headers' in input && typeof input.headers === 'object' && !Array.isArray(input.headers)) {
10
- return parseRateLimit(input.headers, options)
+ return parseHeadersObject(input.headers, options)
11
} else if ('getHeaders' in input && typeof input.getHeaders === 'function') {
12
- return parseRateLimit(input.getHeaders(), options)
+ return parseHeadersObject(input.getHeaders(), options)
13
} else {
14
return parseHeadersObject(input, options)
15
}
0 commit comments