diff --git a/bruno/Get A Collection.bru b/bruno/Get A Collection.bru index 1a79216..22b407c 100644 --- a/bruno/Get A Collection.bru +++ b/bruno/Get A Collection.bru @@ -26,7 +26,7 @@ tests { test("Verify response content type", function() { const contentType = res.getHeader('content-type'); - expect(contentType).to.include('application/stix+json'); + expect(contentType).to.include('application/taxii+json'); expect(contentType).to.include('version=2.1'); }); diff --git a/bruno/Get API Root Information.bru b/bruno/Get API Root Information.bru index f648a20..dc90915 100644 --- a/bruno/Get API Root Information.bru +++ b/bruno/Get API Root Information.bru @@ -21,7 +21,7 @@ tests { test("Verify response content type", function() { const contentType = res.getHeader('content-type'); - expect(contentType).to.include('application/stix+json'); + expect(contentType).to.include('application/taxii+json'); expect(contentType).to.include('version=2.1'); }); diff --git a/bruno/Get An Object.bru b/bruno/Get An Object.bru index 1f0d441..f12caa2 100644 --- a/bruno/Get An Object.bru +++ b/bruno/Get An Object.bru @@ -28,7 +28,7 @@ tests { test("Verify response content type", function() { const contentType = res.getHeader('content-type'); - expect(contentType).to.include('application/stix+json'); + expect(contentType).to.include('application/taxii+json'); expect(contentType).to.include('version=2.1'); }); diff --git a/bruno/Get Collections.bru b/bruno/Get Collections.bru index 4f0d8b3..2fa99a3 100644 --- a/bruno/Get Collections.bru +++ b/bruno/Get Collections.bru @@ -21,7 +21,7 @@ tests { test("Verify response content type", function() { const contentType = res.getHeader('content-type'); - expect(contentType).to.include('application/stix+json'); + expect(contentType).to.include('application/taxii+json'); expect(contentType).to.include('version=2.1'); }); diff --git a/bruno/Get Object Manifests.bru b/bruno/Get Object Manifests.bru index 0427944..1c46823 100644 --- a/bruno/Get Object Manifests.bru +++ b/bruno/Get Object Manifests.bru @@ -25,7 +25,7 @@ tests { test("Verify response content type", function() { const contentType = res.getHeader('content-type'); - expect(contentType).to.include('application/stix+json'); + expect(contentType).to.include('application/taxii+json'); expect(contentType).to.include('version=2.1'); }); diff --git a/bruno/Get Object Versions.bru b/bruno/Get Object Versions.bru index b58e6c2..ddba14d 100644 --- a/bruno/Get Object Versions.bru +++ b/bruno/Get Object Versions.bru @@ -30,7 +30,7 @@ tests { test("Verify response content type", function() { const contentType = res.getHeader('content-type'); - expect(contentType).to.include('application/stix+json'); + expect(contentType).to.include('application/taxii+json'); expect(contentType).to.include('version=2.1'); }); diff --git a/bruno/Get Objects.bru b/bruno/Get Objects.bru index 277c4e3..37d7ac1 100644 --- a/bruno/Get Objects.bru +++ b/bruno/Get Objects.bru @@ -37,7 +37,7 @@ tests { test("Verify response content type", function() { const contentType = res.getHeader('content-type'); - expect(contentType).to.include('application/stix+json'); + expect(contentType).to.include('application/taxii+json'); expect(contentType).to.include('version=2.1'); }); diff --git a/bruno/Server Discovery.bru b/bruno/Server Discovery.bru index 1b0e4f0..067ca2b 100644 --- a/bruno/Server Discovery.bru +++ b/bruno/Server Discovery.bru @@ -21,7 +21,7 @@ tests { test("Verify response content type", function() { const contentType = res.getHeader('content-type'); - expect(contentType).to.include('application/stix+json'); + expect(contentType).to.include('application/taxii+json'); expect(contentType).to.include('version=2.1'); }); diff --git a/src/common/interceptors/set-response-media-type.interceptor.ts b/src/common/interceptors/set-response-media-type.interceptor.ts index d5ed332..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); }) );