Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/app/hero-in-mem-data-override.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class HeroInMemDataOverrideService extends HeroInMemDataService {
// add a response header and report interception to console.log
responseInterceptor(resOptions: ResponseOptions, reqInfo: RequestInfo) {

resOptions.headers.set('x-test', 'test-header');
resOptions.headers = resOptions.headers.set('x-test', 'test-header');
const method = reqInfo.method.toUpperCase();
const body = JSON.stringify(resOptions);
console.log(`responseInterceptor: ${method} ${reqInfo.req.url}: \n${body}`);
Expand Down