File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ export class {{classname}} {
185185 let headers = { {#useHttpClient} }this.defaultHeaders;{ {/useHttpClient} }{ {^useHttpClient} }new Headers(this.defaultHeaders.toJSON()); // https://github.com/angular/angular/issues/6845{ {/useHttpClient} }
186186{ {#headerParams} }
187187 if(typeof this.configuration.defaultHeaderValue === 'function' && ({ {paramName} } === undefined || { {paramName} } === null)) {
188- {{paramName} } = this.configuration.defaultHeaderValue('{ {paramName} }');
188+ {{paramName} } = this.configuration.defaultHeaderValue('{ {paramName} }', ' { {operationIdOriginal } }' );
189189 }
190190 { {#isListContainer} }
191191 if ({ {paramName} }) {
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export interface ConfigurationParameters {
1414 password?: string;
1515 accessToken?: string | (() => string);
1616 errorHandler?: (err: any, operationName: string) => Observable<never >;
17- defaultHeaderValue?: (headerName: string) => string;
17+ defaultHeaderValue?: (headerName: string, operationName: string ) => string;
1818 basePath?: string;
1919 withCredentials?: boolean;
2020}
@@ -25,7 +25,7 @@ export class Configuration {
2525 password?: string;
2626 accessToken?: string | (() => string);
2727 errorHandler?: (err: any, operationName: string) => Observable<never >;
28- defaultHeaderValue?: (headerName: string) => string;
28+ defaultHeaderValue?: (headerName: string, operationName: string ) => string;
2929 basePath?: string;
3030 withCredentials?: boolean;
3131
You can’t perform that action at this time.
0 commit comments