File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
packages/cubejs-api-gateway/src Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -1990,17 +1990,17 @@ class ApiGateway {
19901990 }
19911991
19921992 protected resToResultFn ( res : ExpressResponse ) {
1993- return ( message , { status } : { status ?: number } = { } ) => ( status ? res . status ( status ) . json ( message ) : res . json ( message ) ) ;
1994- }
1995-
1996- protected resToRawResultFn ( res : ExpressResponse ) {
1997- return ( jsonBuffer : ArrayBuffer , { status } : { status ?: number } = { } ) => {
1993+ return ( message , { status } : { status ?: number } = { } ) => {
19981994 if ( status ) {
19991995 res . status ( status ) ;
20001996 }
20011997
2002- res . set ( 'Content-Type' , 'application/json' ) ;
2003- res . send ( jsonBuffer ) ;
1998+ if ( message instanceof ArrayBuffer ) {
1999+ res . set ( 'Content-Type' , 'application/json' ) ;
2000+ res . send ( message ) ;
2001+ }
2002+
2003+ res . json ( message ) ;
20042004 } ;
20052005 }
20062006
You can’t perform that action at this time.
0 commit comments