File tree Expand file tree Collapse file tree 2 files changed +0
-9
lines changed Expand file tree Collapse file tree 2 files changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ import {
1313 handleOctetStreamResponse ,
1414 handleStreamingMode ,
1515 handleTextResponse ,
16- handleTextStreamResponse ,
1716} from './streamHandler' ;
1817import { HookSpan } from '../middlewares/hooks' ;
1918import { env } from 'hono/adapter' ;
@@ -153,10 +152,6 @@ export async function responseHandler(
153152 return { response : textResponse , responseJson : null } ;
154153 }
155154
156- if ( responseContentType ?. startsWith ( CONTENT_TYPES . EVENT_STREAM ) ) {
157- return { response : handleTextStreamResponse ( response ) , responseJson : null } ;
158- }
159-
160155 if ( ! responseContentType && response . status === 204 ) {
161156 return {
162157 response : new Response ( response . body , response ) ,
Original file line number Diff line number Diff line change @@ -282,10 +282,6 @@ export function handleOctetStreamResponse(response: Response) {
282282 return new Response ( response . body , response ) ;
283283}
284284
285- export function handleTextStreamResponse ( response : Response ) {
286- return new Response ( response . body , response ) ;
287- }
288-
289285export function handleImageResponse ( response : Response ) {
290286 return new Response ( response . body , response ) ;
291287}
You can’t perform that action at this time.
0 commit comments