Skip to content

Commit 07d8aa1

Browse files
Merge pull request #40 from DIG-Network/release/v0.0.1-alpha.43
Release/v0.0.1 alpha.43
2 parents cd35f6d + 54b968d commit 07d8aa1

File tree

4 files changed

+18
-11
lines changed

4 files changed

+18
-11
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
### [0.0.1-alpha.43](https://github.com/DIG-Network/dig-chia-sdk/compare/v0.0.1-alpha.42...v0.0.1-alpha.43) (2024-09-20)
6+
7+
8+
### Features
9+
10+
* temp disable ssl on content server driver while ssl bug figured out ([1b55a5c](https://github.com/DIG-Network/dig-chia-sdk/commit/1b55a5c7b38bf83afee529c727b0f040d69e30ae))
11+
512
### [0.0.1-alpha.42](https://github.com/DIG-Network/dig-chia-sdk/compare/v0.0.1-alpha.41...v0.0.1-alpha.42) (2024-09-19)
613

714
### [0.0.1-alpha.41](https://github.com/DIG-Network/dig-chia-sdk/compare/v0.0.1-alpha.40...v0.0.1-alpha.41) (2024-09-19)

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@dignetwork/dig-sdk",
3-
"version": "0.0.1-alpha.42",
3+
"version": "0.0.1-alpha.43",
44
"description": "",
55
"type": "commonjs",
66
"main": "./dist/index.js",

src/DigNetwork/ContentServer.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class ContentServer {
2525
// Method to get the content of a specified key from the peer, with optional challenge query
2626
public async getKey(key: string, rootHash: string, challengeHex?: string): Promise<string> {
2727
// Construct the base URL
28-
let url = `https://${this.ipAddress}/chia.${this.storeId}.${rootHash}/${key}`;
28+
let url = `http://${this.ipAddress}/chia.${this.storeId}.${rootHash}/${key}`;
2929

3030
// If a challenge is provided, append it as a query parameter
3131
if (challengeHex) {
@@ -52,33 +52,33 @@ export class ContentServer {
5252

5353
// Method to get the .well-known information
5454
public async getWellKnown(): Promise<any> {
55-
const url = `https://${this.ipAddress}/.well-known`;
55+
const url = `http://${this.ipAddress}/.well-known`;
5656
return this.fetchJson(url);
5757
}
5858

5959
// Method to get the list of known stores
6060
public async getKnownStores(): Promise<any> {
61-
const url = `https://${this.ipAddress}/.well-known/stores`;
61+
const url = `http://${this.ipAddress}/.well-known/stores`;
6262
return this.fetchJson(url);
6363
}
6464

6565
// Method to get the index of all stores
6666
public async getStoresIndex(): Promise<any> {
67-
const url = `https://${this.ipAddress}/`;
67+
const url = `http://${this.ipAddress}/`;
6868
return this.fetchJson(url);
6969
}
7070

7171
// Method to get the index of keys in a store
7272
public async getKeysIndex(): Promise<any> {
73-
const url = `https://${this.ipAddress}/${this.storeId}`;
73+
const url = `http://${this.ipAddress}/${this.storeId}`;
7474
return this.fetchJson(url);
7575
}
7676

7777
// Method to check if a specific key exists (HEAD request)
7878
public async headKey(
7979
key: string
8080
): Promise<{ success: boolean; headers?: http.IncomingHttpHeaders }> {
81-
const url = `https://${this.ipAddress}/${this.storeId}/${key}`;
81+
const url = `http://${this.ipAddress}/${this.storeId}/${key}`;
8282
return this.head(url);
8383
}
8484

@@ -87,7 +87,7 @@ export class ContentServer {
8787
success: boolean;
8888
headers?: http.IncomingHttpHeaders;
8989
}> {
90-
let url = `https://${this.ipAddress}/${this.storeId}`;
90+
let url = `http://${this.ipAddress}/${this.storeId}`;
9191

9292
if (options?.hasRootHash) {
9393
url += `?hasRootHash=${options.hasRootHash}`;
@@ -98,7 +98,7 @@ export class ContentServer {
9898

9999
public streamKey(key: string): Promise<Readable> {
100100
return new Promise((resolve, reject) => {
101-
const url = `https://${this.ipAddress}/${this.storeId}/${key}`;
101+
const url = `http://${this.ipAddress}/${this.storeId}/${key}`;
102102
const urlObj = new URL(url);
103103

104104
const requestOptions = {

0 commit comments

Comments
 (0)