     robot.adapter.customMessage payload
 
   fetch = (url, opts) ->
-    robot.logger.info "Fetching: #{url}"
     options =
       headers:
         "X-Atlassian-Token": "no-check"
         "Content-Type": "application/json"
         "Authorization": 'Basic ' + new Buffer("#{process.env.HUBOT_JIRA_USERNAME}:#{process.env.HUBOT_JIRA_PASSWORD}").toString('base64')
     options = _(options).extend opts
-
+    options.headers["Content-Length"] = options.body.length if options.method is "POST"
+
+    robot.logger.info "Fetching: #{url}"
     nodeFetch(url,options).then (response) ->
       if response.status >= 200 and response.status < 300
         return response

      robot.logger.error error.stack

  handleTransitionRequest = (msg, includeAttachment=yes) ->
    msg.finish()
    [ __, ticket, toState ] = msg.match
    ticket = ticket.toUpperCase()


      keywords: "experiment exploratory task"
      color: "#f6c342"
    ]
    result = fuzzyFind json.fields.issuetype.name, colors, ['keywords']

    fields = []
    fieldsFallback = ""
