Skip to content
Snippets Groups Projects

add response type

1 file
+ 3
1
Compare changes
  • Side-by-side
  • Inline
@@ -52,7 +52,9 @@ export class AppComponent implements OnInit {
@@ -52,7 +52,9 @@ export class AppComponent implements OnInit {
// Check swagger endpoint first
// Check swagger endpoint first
this.httpClient
this.httpClient
.get(url)
.get(url, {
 
responseType: 'text',
 
})
.pipe(
.pipe(
catchError((error: Error) => {
catchError((error: Error) => {
this.spinnerRef.close();
this.spinnerRef.close();
Loading