From 55348930a6bf99de550feb0a05bdd5172c9078b7 Mon Sep 17 00:00:00 2001 From: SaladTechnologies <415806+seniorquico@users.noreply.github.com> Date: Sat, 5 Oct 2024 04:27:39 +0000 Subject: [PATCH] liblab SDK update for version v0.9.0-alpha.4 --- .manifest.json | 4 ++-- src/http/hooks/custom-hook.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.manifest.json b/.manifest.json index ceedf39..47186ab 100644 --- a/.manifest.json +++ b/.manifest.json @@ -1,6 +1,6 @@ { "liblabVersion": "2.5.1", - "date": "2024-10-05T04:00:42.516Z", + "date": "2024-10-05T04:27:11.235Z", "config": { "apiId": 1126, "sdkName": "salad-cloud-imds-sdk", @@ -156,7 +156,7 @@ }, "multiTenant": true, "hooksLocation": { - "bucketKey": "7538/hooks.zip", + "bucketKey": "7539/hooks.zip", "bucketName": "prod-liblab-api-stack-hooks" }, "includeWatermark": false, diff --git a/src/http/hooks/custom-hook.ts b/src/http/hooks/custom-hook.ts index e05aa4d..2d79182 100644 --- a/src/http/hooks/custom-hook.ts +++ b/src/http/hooks/custom-hook.ts @@ -5,10 +5,10 @@ import { HttpError } from '../error'; export class CustomHook implements Hook { public async beforeRequest(request: HttpRequest, params: Map): Promise { if (request.headers == null) { - request.headers = {}; + request.headers = new Map(); } - request.headers['Metadata'] = 'true'; + request.headers.set('Metadata', 'true'); return request; }