Skip to content

Commit 0cbbebc

Browse files
committed
Fix: triggerActions http request
1 parent fe17e34 commit 0cbbebc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/triggerActions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import {parse} from 'url';
22
import {IncomingMessage, request} from "http";
33

44
export function exec(action: string, opts: any) {
5-
const {protocol, auth, host, port, path} = parse(opts.url);
5+
const {protocol, auth, hostname, port, path} = parse(opts.url);
66
return new Promise((resolve, reject) => {
77
request({
8-
protocol, auth, host, port, path,
8+
protocol, auth, hostname, port, path,
99
method: (action === 'httpPost') ? 'POST' : 'GET'
1010
},
1111
(res: IncomingMessage) => {

0 commit comments

Comments
 (0)