(req: HttpRequest<unknown>, tag: string)
| 913 | } |
| 914 | |
| 915 | function addTagToRequest(req: HttpRequest<unknown>, tag: string): HttpRequest<unknown> { |
| 916 | const prevTagHeader = req.headers.get('X-Tag') ?? ''; |
| 917 | const tagHeader = prevTagHeader.length > 0 ? prevTagHeader + ',' + tag : tag; |
| 918 | |
| 919 | return req.clone({ |
| 920 | setHeaders: { |
| 921 | 'X-Tag': tagHeader, |
| 922 | }, |
| 923 | }); |
| 924 | } |
| 925 | |
| 926 | const FAKE_JSONP_BACKEND_PROVIDER = { |
| 927 | provide: JsonpClientBackend, |
no test coverage detected