From bc6b1f25ee1476de867614452734afdd14a1747c Mon Sep 17 00:00:00 2001 From: Sean Sica <23294618+seansica@users.noreply.github.com> Date: Tue, 10 Sep 2024 13:58:08 -0400 Subject: [PATCH] fix: remove portion of SetResponseMediaType interceptor that replaces 'taxii' with 'stix' --- .../interceptors/set-response-media-type.interceptor.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/common/interceptors/set-response-media-type.interceptor.ts b/src/common/interceptors/set-response-media-type.interceptor.ts index 783db0d..6d8269e 100644 --- a/src/common/interceptors/set-response-media-type.interceptor.ts +++ b/src/common/interceptors/set-response-media-type.interceptor.ts @@ -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); }) );