(req: HttpRequest<unknown>, tag: string)
| 836 | } |
| 837 | |
| 838 | function addTagToRequest(req: HttpRequest<unknown>, tag: string): HttpRequest<unknown> { |
| 839 | const prevTagHeader = req.headers.get('X-Tag') ?? ''; |
| 840 | const tagHeader = prevTagHeader.length > 0 ? prevTagHeader + ',' + tag : tag; |
| 841 | |
| 842 | return req.clone({ |
| 843 | setHeaders: { |
| 844 | 'X-Tag': tagHeader, |
| 845 | }, |
| 846 | }); |
| 847 | } |
| 848 | |
| 849 | const FAKE_JSONP_BACKEND_PROVIDER = { |
| 850 | provide: JsonpClientBackend, |
no test coverage detected