File tree Expand file tree Collapse file tree
packages/integration/koa/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,9 +48,9 @@ export const jsonApiRequestMiddleware = (): Middleware<Partial<JsonApiContextSta
4848 } ,
4949 } ) . toDocument ( ) ;
5050
51- context . set ( "Content-Type" , document . getContentType ( ) ) ;
5251 context . status = document . getStatus ( ) ;
5352 context . body = document . getBody ( ) ;
53+ context . set ( "Content-Type" , document . getContentType ( ) ) ;
5454 return ;
5555 }
5656
@@ -133,9 +133,9 @@ export const jsonApiErrorMiddleware = (options?: ErrorMiddlewareOptions): Middle
133133 options ?. logError ?.( error , exposed ) ;
134134
135135 const document = jsonApiError . toDocument ( ) ;
136- context . set ( "Content-Type" , document . getContentType ( ) ) ;
137136 context . status = document . getStatus ( ) ;
138137 context . body = document . getBody ( ) ;
138+ context . set ( "Content-Type" , document . getContentType ( ) ) ;
139139 }
140140 } ;
141141} ;
You can’t perform that action at this time.
0 commit comments