Skip to content

Commit c93e645

Browse files
committed
Rollback typing fixes for middlewares/recorder.ts
1 parent a83de60 commit c93e645

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/HttpClient/middlewares/recorder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ export const recorderMiddleware = (recorder: Recorder) =>
1313
try {
1414
await next()
1515
if (ctx.response) {
16-
(recorder as Recorder).record(ctx.response.headers as any)
16+
(recorder as Recorder).record(ctx.response.headers)
1717
}
1818
} catch (err: any) {
1919
if (err.response && err.response.headers && err.response.status === 404) {
20-
(recorder as Recorder).record(err.response.headers as any)
20+
(recorder as Recorder).record(err.response.headers)
2121
}
2222
throw err
2323
}

0 commit comments

Comments
 (0)