Skip to content

Commit

Permalink
Merge pull request #13 from docknetwork/fix/always-pass-default-headers
Browse files Browse the repository at this point in the history
Fix: EDV storage always pass default headers
  • Loading branch information
cykoder authored Sep 19, 2024
2 parents 05bcc66 + 58dcb63 commit e33b5cc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
with:
node-version: '16.x'
- run: yarn install --frozen-lockfile --ignore-scripts
- run: docker-compose -f ./docker-compose.edv.yml up -d
- run: docker compose -f ./docker-compose.edv.yml up -d
- run: yarn build
- run: yarn test
- run: yarn run-examples
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@docknetwork/universal-wallet",
"version": "2.1.0",
"version": "2.1.1",
"main": "index.js",
"license": "MIT",
"repository": {
Expand Down
6 changes: 5 additions & 1 deletion src/storage/edv-http-storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ class EDVHTTPStorageInterface extends StorageInterface {
url: `${this.serverUrl}/edvs`,
controller,
referenceId,
headers: this.defaultHeaders,
});
} catch (e) {
return null;
Expand Down Expand Up @@ -214,7 +215,10 @@ class EDVHTTPStorageInterface extends StorageInterface {
disabledinvocationSigner: invocationSigner || this.invocationSigner,
disabledcapability: capability || this.capability,
httpsAgent,
headers,
headers: {
...this.defaultHeaders,
...headers,
},
config,
});
return id;
Expand Down

0 comments on commit e33b5cc

Please sign in to comment.