       cb err
 
   _findBoredInstanceUrl: (cb) ->
-    url = "http://infra-#{@_region}.transloadit.com.s3.amazonaws.com/"
+    url  = "http://infra-#{@_region}.transloadit.com.s3.amazonaws.com/"
     url += "cached_instances.json"
 
     opts =


  _getBoredInstance: (url, customBoredLogic, cb) ->
    if url == null
      url  = @_serviceUrl() + "/instances/bored"

    opts =
      url     : url


  calcSignature: (toSign) ->
    return crypto
      .createHmac("sha1", @_authSecret)
      .update(new Buffer(toSign, "utf-8"))
      .digest "hex"

  _appendForm: (req, params, fields) ->
    jsonParams = @_prepareParams params
