(req: HttpRequest<unknown>, tag: string)
| 658 | } |
| 659 | |
| 660 | function addTagToRequest(req: HttpRequest<unknown>, tag: string): HttpRequest<unknown> { |
| 661 | const prevTagHeader = req.headers.get('X-Tag') ?? ''; |
| 662 | const tagHeader = prevTagHeader.length > 0 ? prevTagHeader + ',' + tag : tag; |
| 663 | |
| 664 | return req.clone({ |
| 665 | setHeaders: { |
| 666 | 'X-Tag': tagHeader, |
| 667 | }, |
| 668 | }); |
| 669 | } |
| 670 | |
| 671 | const FAKE_JSONP_BACKEND_PROVIDER = { |
| 672 | provide: JsonpClientBackend, |
no test coverage detected