Skip to content

Commit

Permalink
liblab SDK update for version v0.9.0-alpha.4
Browse files Browse the repository at this point in the history
  • Loading branch information
seniorquico committed Oct 5, 2024
1 parent 8a4886d commit 5534893
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .manifest.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -156,7 +156,7 @@
},
"multiTenant": true,
"hooksLocation": {
"bucketKey": "7538/hooks.zip",
"bucketKey": "7539/hooks.zip",
"bucketName": "prod-liblab-api-stack-hooks"
},
"includeWatermark": false,
Expand Down
4 changes: 2 additions & 2 deletions src/http/hooks/custom-hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import { HttpError } from '../error';
export class CustomHook implements Hook {
public async beforeRequest(request: HttpRequest, params: Map<string, string>): Promise<HttpRequest> {
if (request.headers == null) {
request.headers = {};
request.headers = new Map<string, unknown>();
}

request.headers['Metadata'] = 'true';
request.headers.set('Metadata', 'true');
return request;
}

Expand Down

0 comments on commit 5534893

Please sign in to comment.