code: function (req) {
                  var protocol = req.secure ? 'https://' : 'http://',
                      hostname = req.headers.host,
                      originalUrl = req.originalUrl !== '/' ? req.originalUrl : '',
                      fullUrl = protocol + hostname + originalUrl,
                      // Split out the query string
                      urlParts = fullUrl.split('?'),
                      origin = urlParts[0],
                      search = urlParts[1] ? '?' + urlParts[1] : '';
                  return {
                      // Protocol, hostname and port 
                      origin: origin,
                      // Query string
                      search: search,
                      protocol: protocol,
                      hostname: hostname,
                      href: originalUrl
                  };
              }
docs: Set strict routing that /buckets/test/abc is not the same as /buckets/test/abc/ adding the slash at the end denotes creating a folder and not a file