mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
fixes for listen and transcribe
This commit is contained in:
@@ -8,7 +8,7 @@ function hooks(logger, callAttributes) {
|
||||
if (auth && typeof auth === 'object' && Object.keys(auth) === 2) basicauth = auth;
|
||||
if ('GET' === method.toUpperCase()) qs = params;
|
||||
else body = params;
|
||||
const obj = {url, method, auth: basicauth, json: expectResponse || body, qs, body};
|
||||
const obj = {url, method, auth: basicauth, json: expectResponse || !!body, qs, body};
|
||||
logger.debug({opts: obj}, 'actionHook');
|
||||
return new Promise((resolve, reject) => {
|
||||
request(obj, (err, response, body) => {
|
||||
|
||||
Reference in New Issue
Block a user