Skip to content

Commit 30d9670

Browse files
committed
chore: remove response text check from hooks middleware for output hooks and let individual plugin handle it
1 parent ee36eab commit 30d9670

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/middlewares/hooks/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -429,9 +429,6 @@ export class HooksManager {
429429
(context.requestType === 'embed' && hook.type === HookType.MUTATOR) ||
430430
(hook.eventType === 'afterRequestHook' &&
431431
context.response.statusCode !== 200) ||
432-
(hook.eventType === 'afterRequestHook' &&
433-
context.request.isStreamingRequest &&
434-
!context.response.text) ||
435432
(hook.eventType === 'beforeRequestHook' &&
436433
span.getParentHookSpanId() !== null) ||
437434
(hook.type === HookType.MUTATOR && !!hook.async)

0 commit comments

Comments
 (0)