diff --git a/lib/bus.js b/lib/bus.js index e0bf43c1..4a2734bf 100644 --- a/lib/bus.js +++ b/lib/bus.js @@ -25,7 +25,7 @@ const prepare = (unit, application) => { } const body = metarhia.metautil.serializeArguments(unit.method.body, args); const url = target.join('/'); - const options = { method: verb.toUpperCase(), body }; + const options = { method: verb.toUpperCase(), headers: unit.headers, body }; const result = await metarhia.metautil.httpApiCall(url, options); if (returns) { const { valid, errors } = returns.check(result);