           Accept: 'application/json'
         }
       }
+      ask_options.path = path + ask_options.path if path?
 
       ask_res ->
         data = ''

#   them
#
# Dependencies:
#   None
#
# Configuration:
#   HUBOT_YOUTRACK_HOSTNAME = <host:port>

username = process.env.HUBOT_YOUTRACK_USERNAME
password = process.env.HUBOT_YOUTRACK_PASSWORD

if yt_url?
  url_parts = URL.parse(yt_url)
  scheme = url_parts.protocol
  username = url_parts.auth.split(":")[0]
  password = url_parts.auth.split(":")[1]
  host = url_parts.host
  path = url_parts.pathname if url_parts.pathname?
else
  scheme = 'http://'

