Skip to content

Commit

Permalink
Fix: EDV storage always pass default headers
Browse files Browse the repository at this point in the history
  • Loading branch information
cykoder committed Sep 19, 2024
1 parent 05bcc66 commit a1d1dfc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
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 a1d1dfc

Please sign in to comment.