   robot.respond /rabbit vhosts/i, (msg) ->
     results = []
     msg
-      .http("http://#{host}/api/vhosts")
+      .http("#{scheme}://#{host}/api/vhosts")
       .headers(Authorization: auth, Accept: 'application/json')
       .get() (err, res, body) ->
         if err

    sub = msg.match[1]
    results = []
    msg
      .http("http://#{host}/api/queues/#{virt}/#{sub}/bindings")
      .headers(Authorization: auth, Accept: 'application/json')
      .get() (err, res, body) ->
        if err

# Notes:
#
# Author:
#   kevwil, davidsulpy

host = process.env.HUBOT_RABBITMQ_HOST
scheme = process.env.HUBOT_RABBITMQ_SCHEME ?= 'http'
user = process.env.HUBOT_RABBITMQ_USER ?= 'guest'
pwd = process.env.HUBOT_RABBITMQ_PWD ?= 'guest'
virt = process.env.HUBOT_RABBITMQ_VIRT_HOST ?= '%2F'
