git-off

git off handles large files in git repos
git clone https://noulin.net/git/git-off.git
Log | Files | Refs | README

route53.js (774B)


      1 var AWS = require('../core');
      2 
      3 AWS.util.update(AWS.Route53.prototype, {
      4   /**
      5    * @api private
      6    */
      7   setupRequestListeners: function setupRequestListeners(request) {
      8     request.on('build', this.sanitizeUrl);
      9   },
     10 
     11   /**
     12    * @api private
     13    */
     14   sanitizeUrl: function sanitizeUrl(request) {
     15     var path = request.httpRequest.path;
     16     request.httpRequest.path = path.replace(/\/%2F\w+%2F/, '/');
     17   },
     18 
     19   /**
     20    * @return [Boolean] whether the error can be retried
     21    * @api private
     22    */
     23   retryableError: function retryableError(error) {
     24     if (error.code === 'PriorRequestNotComplete' &&
     25         error.statusCode === 400) {
     26       return true;
     27     } else {
     28       var _super = AWS.Service.prototype.retryableError;
     29       return _super.call(this, error);
     30     }
     31   }
     32 });