Skip to content

Commit

Permalink
http endpoint fix
Browse files Browse the repository at this point in the history
Signed-off-by: Elena Kolevska <[email protected]>
  • Loading branch information
elena-kolevska committed Oct 24, 2023
1 parent df7bb88 commit 7c23892
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/implementation/Client/HTTPClient/HTTPClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,7 @@ export default class HTTPClient implements IClient {
this.options = options;
this.logger = new Logger("HTTPClient", "HTTPClient", this.options.logger);
this.isInitialized = false;

this.clientUrl = `${this.options.daprHost}:${this.options.daprPort}/v1.0`;
if (!this.clientUrl.startsWith("http://") && !this.clientUrl.startsWith("https://")) {
this.clientUrl = `http://${this.clientUrl}`;
}
this.clientUrl = `${this.options.daprEndpoint.endpoint}/v1.0`;

if (!HTTPClient.client) {
HTTPClient.client = fetch;
Expand Down

0 comments on commit 7c23892

Please sign in to comment.