Skip to content

Commit

Permalink
fix: remove portion of SetResponseMediaType interceptor that replaces…
Browse files Browse the repository at this point in the history
… 'taxii' with 'stix'
  • Loading branch information
seansica committed Sep 10, 2024
1 parent 69f33bd commit bc6b1f2
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,8 @@ export class SetResponseMediaType implements NestInterceptor {

const requestedMediaType: MediaTypeObject = req[MEDIA_TYPE_TOKEN];

// requestedMediaType._subType = requestedMediaType._subType.replace(
// "taxii",
// "stix"
// );

const contentType = requestedMediaType.toString();

contentType.replace("taxii", "stix");

res.setHeader("Content-Type", contentType);
})
);
Expand Down

0 comments on commit bc6b1f2

Please sign in to comment.