We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b82e86 commit 4156c3bCopy full SHA for 4156c3b
src/mustache/api.service.mustache
@@ -184,7 +184,7 @@ export class {{classname}} {
184
{{/hasQueryParams}}
185
let headers = {{#useHttpClient}}this.defaultHeaders;{{/useHttpClient}}{{^useHttpClient}}new Headers(this.defaultHeaders.toJSON()); // https://github.com/angular/angular/issues/6845{{/useHttpClient}}
186
{{#headerParams}}
187
- if(typeof this.configuration.defaultHeaderValue === 'function') {
+ if(typeof this.configuration.defaultHeaderValue === 'function' && ({{paramName}} === undefined || {{paramName}} === null)) {
188
{{paramName}} = this.configuration.defaultHeaderValue('{{paramName}}');
189
}
190
{{#isListContainer}}
0 commit comments