From c95aea4041900b6a843ac1dd9e8e4035fa9f5f35 Mon Sep 17 00:00:00 2001 From: Alex Layton Date: Tue, 16 Nov 2021 17:16:51 -0500 Subject: [PATCH] Disable constraint validation for now --- oada/services/http-handler/src/server.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/oada/services/http-handler/src/server.ts b/oada/services/http-handler/src/server.ts index be8cdea3..258caf7c 100644 --- a/oada/services/http-handler/src/server.ts +++ b/oada/services/http-handler/src/server.ts @@ -72,10 +72,12 @@ export const app = fastify({ }, }; }, - validate(value) { + validate(_value) { + /* if (!Object.keys(EnsureLink).includes(value as string)) { throw new Error(`Invalid X-OADA-Ensure-Link: ${value}`); } + */ }, deriveConstraint(request) { return request.headers['x-oada-ensure-link'];