From 26a59e1d451309a79109d41a1234c20eb7700329 Mon Sep 17 00:00:00 2001 From: Alejo Thomas Ortega Date: Fri, 11 Oct 2024 22:00:41 -0300 Subject: [PATCH] complete --- content/src/controller/handlers/get-content-handler.ts | 1 - content/test/integration/controller/entity-metadata.spec.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/content/src/controller/handlers/get-content-handler.ts b/content/src/controller/handlers/get-content-handler.ts index e949ae2cc..c0dc55d80 100644 --- a/content/src/controller/handlers/get-content-handler.ts +++ b/content/src/controller/handlers/get-content-handler.ts @@ -5,7 +5,6 @@ import { createContentFileHeaders } from '../utils' // Method: GET or HEAD export async function getContentHandler(context: HandlerContextWithPath<'storage', '/contents/:hashId'>) { const shouldCalculateContentType = context.request.headers.get('Accept') === 'Any' - //url.searchParams.has('calculateContentType') const hash = context.params.hashId const content: ContentItem | undefined = await context.components.storage.retrieve(hash) diff --git a/content/test/integration/controller/entity-metadata.spec.ts b/content/test/integration/controller/entity-metadata.spec.ts index 7c5e42098..0e2fb609f 100644 --- a/content/test/integration/controller/entity-metadata.spec.ts +++ b/content/test/integration/controller/entity-metadata.spec.ts @@ -170,7 +170,7 @@ describe('Integration - Get wearable image and thumbnail', () => { for (const response of responses) { expect(response.status).toEqual(200) - expect(response.headers.get('content-type')).toEqual('image/png') + expect(response.headers.get('content-type')).toEqual('application/octet-stream') expect(response.headers.get('ETag')).toBeTruthy() expect(response.headers.get('Cache-Control')).toBeTruthy() }