Sha256: 4b7a96c4af542f9e292816b06a9fa74c498efdd7196d124b6572070ee2c6143a
Contents?: true
Size: 774 Bytes
Versions: 35
Compression:
Stored size: 774 Bytes
Contents
var AWS = require('../core'); AWS.util.update(AWS.Route53.prototype, { /** * @api private */ setupRequestListeners: function setupRequestListeners(request) { request.on('build', this.sanitizeUrl); }, /** * @api private */ sanitizeUrl: function sanitizeUrl(request) { var path = request.httpRequest.path; request.httpRequest.path = path.replace(/\/%2F\w+%2F/, '/'); }, /** * @return [Boolean] whether the error can be retried * @api private */ retryableError: function retryableError(error) { if (error.code === 'PriorRequestNotComplete' && error.statusCode === 400) { return true; } else { var _super = AWS.Service.prototype.retryableError; return _super.call(this, error); } } });
Version data entries
35 entries across 35 versions & 1 rubygems