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 e52e2c6 commit c746b02Copy full SHA for c746b02
lib/api/borrow.ts
@@ -1,4 +1,3 @@
1
-import { headers } from 'next/headers'
2
import { Borrow } from '../types/borrow'
3
import { QueryParams, ResList, ResSingle } from '../types/common'
4
import { BASE_URL } from './common'
@@ -72,7 +71,7 @@ export const returnBorrow = async (
72
71
method: 'POST',
73
body: JSON.stringify(data),
74
headers: {
75
- ...headers,
+ ...init?.headers,
76
'Content-Type': 'application/json',
77
},
78
})
0 commit comments