lib/services/s3.js
function correctBucketRegionFromCache(req) {
    var bucket = req.params.Bucket || null;
    if (bucket) {
      var service = req.service;
      var requestRegion = req.httpRequest.region;
      var cachedRegion = service.bucketRegionCache[bucket];
      if (cachedRegion && cachedRegion !== requestRegion) {
        service.updateReqBucketRegion(req, cachedRegion);
      }
    }
  }
function correctBucketRegionFromCache(req) {
    var bucket = req.params.Bucket || null;
    if (bucket) {
      var service = req.service;
      var requestRegion = req.httpRequest.region;
      var cachedRegion = service.bucketRegionCache[bucket];
      if (cachedRegion && cachedRegion !== requestRegion) {
        service.updateReqBucketRegion(req, cachedRegion);
      }
    }
  }
function correctBucketRegionFromCache ( req ) { var bucket = req . params . Bucket || null ; if ( bucket ) { var service = req . service ; var requestRegion = req . httpRequest . region ; var cachedRegion = service . bucketRegionCache [ bucket ] ; if ( cachedRegion && cachedRegion !== requestRegion ) { service . updateReqBucketRegion ( req , cachedRegion ) ; } } }
Corrects request region if bucket's cached region is different

@api private
Corrects request region if bucket s cached region is different