         headers: res.headers
         body: body
         timestamp: new Date()
-        
+
     callback true
 
 # post DXF data to DHIS2 api

handler = (req, res) ->
  openhimTransactionID = req.headers['x-openhim-transactionid']

  _out = ->
    body = ""
    orchestrations = []

    cert: nullIfEmpty config.getConf()['sync-type']['both-trigger-client-cert']
    key: nullIfEmpty config.getConf()['sync-type']['both-trigger-client-key']
    ca: nullIfEmpty config.getConf()['sync-type']['both-trigger-ca-cert']
  if out.adxAdapterID
    options.url += '/' + adxAdapterID

  beforeTimestamp = new Date()
  request.post options, (err, res, body) ->
    if err
      out.error "Send to Async Receiver failed: #{err}"
      return callback false

    if !(200 <= res.statusCode <= 399)
      out.error "Send to Async Receiver responded with non 2/3xx statusCode #{res.statusCode}"
      return callback false
