Skip to content

Commit 624f1ed

Browse files
committed
Apply deserialization to whitelisted methods
1 parent ddeada3 commit 624f1ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/deserialize.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ module.exports = function (app, options) {
2525
return regex.test(ctx.method.name);
2626
});
2727

28-
if (matches.length > 0) {
28+
if (utils.shouldApplyJsonApi(ctx, options) || matches.length > 0) {
2929
// set the JSON API Content-Type response header
3030
ctx.res.set({'Content-Type': 'application/vnd.api+json'});
3131

0 commit comments

Comments
 (0)