diff --git a/src/DigNetwork/ContentServer.ts b/src/DigNetwork/ContentServer.ts index 84b2883..4a816b0 100644 --- a/src/DigNetwork/ContentServer.ts +++ b/src/DigNetwork/ContentServer.ts @@ -79,7 +79,7 @@ export class ContentServer { key: string ): Promise<{ success: boolean; headers?: http.IncomingHttpHeaders }> { const url = `https://${this.ipAddress}/${this.storeId}/${key}`; - return this.head(url); // Return the object from head method + return this.head(url); } // Method to check if a specific store exists (HEAD request) @@ -93,7 +93,7 @@ export class ContentServer { url += `?hasRootHash=${options.hasRootHash}`; } - return this.head(url); // Return the object from head method + return this.head(url); } public streamKey(key: string): Promise { diff --git a/src/DigNetwork/DigNetwork.ts b/src/DigNetwork/DigNetwork.ts index ed934b5..950d2a5 100644 --- a/src/DigNetwork/DigNetwork.ts +++ b/src/DigNetwork/DigNetwork.ts @@ -178,7 +178,7 @@ export class DigNetwork { hasRootHash: rootHash, }); - console.log(peerIp, storeResponse.headers); + console.log(peerIp, storeResponse, storeResponse.headers); if ( storeResponse.success &&