Repository URL to install this package:
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
import * as tslib_1 from "tslib";
import { HttpUrlEncodingCodec } from '@angular/common/http';
/**
* CustomHttpUrlEncodingCodec
* Fix plus sign (+) not encoding, so sent as blank space
* See: https://github.com/angular/angular/issues/11058#issuecomment-247367318
*/
var /**
* CustomHttpUrlEncodingCodec
* Fix plus sign (+) not encoding, so sent as blank space
* See: https://github.com/angular/angular/issues/11058#issuecomment-247367318
*/
CustomHttpUrlEncodingCodec = /** @class */ (function (_super) {
tslib_1.__extends(CustomHttpUrlEncodingCodec, _super);
function CustomHttpUrlEncodingCodec() {
return _super !== null && _super.apply(this, arguments) || this;
}
/**
* @param {?} k
* @return {?}
*/
CustomHttpUrlEncodingCodec.prototype.encodeKey = /**
* @param {?} k
* @return {?}
*/
function (k) {
k = _super.prototype.encodeKey.call(this, k);
return k.replace(/\+/gi, '%2B');
};
/**
* @param {?} v
* @return {?}
*/
CustomHttpUrlEncodingCodec.prototype.encodeValue = /**
* @param {?} v
* @return {?}
*/
function (v) {
v = _super.prototype.encodeValue.call(this, v);
return v.replace(/\+/gi, '%2B');
};
return CustomHttpUrlEncodingCodec;
}(HttpUrlEncodingCodec));
/**
* CustomHttpUrlEncodingCodec
* Fix plus sign (+) not encoding, so sent as blank space
* See: https://github.com/angular/angular/issues/11058#issuecomment-247367318
*/
export { CustomHttpUrlEncodingCodec };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW5jb2Rlci5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B3YS1tb3RpZi1vcGVuLWFwaS9tZXNzYWdpbmctc2VydmljZS8iLCJzb3VyY2VzIjpbImxpYi9lbmNvZGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUksT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sc0JBQX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