Skip to content

Commit

Permalink
Merge pull request #25 from ticket-bridge/hyper-request
Browse files Browse the repository at this point in the history
fix: Use HTTP instead of HTTPS in generated requests to HyperDurable
  • Loading branch information
travismfrank authored Sep 21, 2022
2 parents ca3eddd + 509c9c0 commit 692a5bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HyperNamespaceProxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class HyperNamespaceProxy<DO extends HyperDurable<any, Env>, Env> impleme
const hyperStub: HyperStub<DO, Env> = Object.assign<DurableObjectStub, object>(stub, {});

function createHyperRequest(action: string, key: string, payload?: object) {
return new Request(`https://hd.io/${action}/${key}`, {
return new Request(`http://hd.io/${action}/${key}`, {
body: payload ? JSON.stringify(payload) : null,
method: payload ? 'POST' : 'GET',
headers: {
Expand Down

0 comments on commit 692a5bb

Please sign in to comment.