]> gitweb.hhaalo.de Git - speisekarten-editor.git/commitdiff
add: css load with accept content header
authorBastian Dehn <hhaalo@arcor.de>
Mon, 13 Jun 2022 16:03:05 +0000 (18:03 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Mon, 13 Jun 2022 16:03:05 +0000 (18:03 +0200)
src/app/html-export.service.ts

index e1560b15cdbe02bc9575f6f6a7792288eeeaa968..340464bcc064e90b346e37267a08c553032f2c5b 100644 (file)
@@ -51,7 +51,14 @@ export class HtmlExportService
        private loadCssFile(): void
        {
                let loadcss = this.httpclient.get("assets/htmlexport.css",
-                       { responseType: 'text' });
+                       {
+                               headers:
+                               {
+                                       'Accept': 'text/css',
+                                       'Content-Type': 'text/css'
+                               },
+                               responseType: 'text'
+                       });
                loadcss.subscribe((content: any) => {
                        this.cssExportContent = content as string; });
        }