remove reject of the headets

This commit is contained in:
Eudes Inácio
2023-10-25 09:08:49 +01:00
parent f92cdc5816
commit 97d86455cf
17 changed files with 108 additions and 71 deletions
@@ -7137,7 +7137,7 @@ class HttpHeaders {
*/
clone(update) {
/** @type {?} */
const clone = new HttpHeaders({'rejectUnauthorized': environment.rejectUnauthorized });;
const clone = new HttpHeaders();;
clone.lazyInit =
(!!this.lazyInit && this.lazyInit instanceof HttpHeaders) ? this.lazyInit : this;
clone.lazyUpdate = (this.lazyUpdate || []).concat([update]);
@@ -7688,7 +7688,7 @@ class HttpRequest {
}
// If no headers have been passed in, construct a new HttpHeaders instance.
if (!this.headers) {
this.headers = new HttpHeaders({'rejectUnauthorized': environment.rejectUnauthorized });;
this.headers = new HttpHeaders();;
}
// If no parameters have been passed in, construct a new HttpUrlEncodedParams instance.
if (!this.params) {
@@ -7970,7 +7970,7 @@ class HttpResponseBase {
constructor(init, defaultStatus = 200, defaultStatusText = 'OK') {
// If the hash has values passed, use them to initialize the response.
// Otherwise use the default values.
this.headers = init.headers || new HttpHeaders({'rejectUnauthorized': environment.rejectUnauthorized });;
this.headers = init.headers || new HttpHeaders();;
this.status = init.status !== undefined ? init.status : defaultStatus;
this.statusText = init.statusText || defaultStatusText;
this.url = init.url || null;