Skip to content

Commit e037487

Browse files
committed
リンクヘッダーのキーを修正
1 parent ee08cbe commit e037487

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/client/linkHeader.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as LinkHeader from 'http-link-header';
22

3-
export const getNextUrl = (headers: Headers): string | null => {
4-
const link = headers.get('Link') || '';
3+
export const getNextUrl = (headers: { [K: string]: any }): string | null => {
4+
const link = headers.link || '';
55
const refs = LinkHeader.parse(link).refs.filter((ref) => ref.rel === 'next');
66

77
return refs.length > 0

0 commit comments

Comments
 (0)