(req: HttpRequest<unknown>, tag: string)
| 671 | } |
| 672 | |
| 673 | function addTagToRequest(req: HttpRequest<unknown>, tag: string): HttpRequest<unknown> { |
| 674 | const prevTagHeader = req.headers.get('X-Tag') ?? ''; |
| 675 | const tagHeader = prevTagHeader.length > 0 ? prevTagHeader + ',' + tag : tag; |
| 676 | |
| 677 | return req.clone({ |
| 678 | setHeaders: { |
| 679 | 'X-Tag': tagHeader, |
| 680 | }, |
| 681 | }); |
| 682 | } |
| 683 | |
| 684 | const FAKE_JSONP_BACKEND_PROVIDER = { |
| 685 | provide: JsonpClientBackend, |
no test coverage detected