Skip to content

Commit

Permalink
Merge pull request #138 from stuartwoodman/AUS-4061-AusPASS-Messages
Browse files Browse the repository at this point in the history
AUS-4061 AusPASS Messages
  • Loading branch information
jia020 authored Aug 29, 2024
2 parents b9e6b97 + ddcece2 commit 1fe95ad
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@

import { throwError as observableThrowError, Observable } from 'rxjs';
import { Bbox } from '../../model/data/bbox.model';
import { LayerModel } from '../../model/data/layer.model';
import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http';
import { Injectable, Inject } from '@angular/core';
import { min } from 'rxjs/operators';

/**
* Service to download IRIS data
Expand Down Expand Up @@ -51,9 +49,9 @@ export class DownloadIrisService {
httpParams = httpParams.append('serviceUrls', url);
return this.http.post(this.env.portalBaseUrl + 'downloadDataAsZip.do', httpParams, {
headers: new HttpHeaders().set('Content-Type', 'application/x-www-form-urlencoded'),
responseType: 'blob'
responseType: 'blob',
observe: 'response'
});

} catch (e) {
console.error("Download error:", e);
return observableThrowError(e);
Expand Down Expand Up @@ -103,9 +101,9 @@ export class DownloadIrisService {
return this.http.post(this.env.portalBaseUrl + 'downloadDataAsZip.do', httpParams,
{
headers: new HttpHeaders().set('Content-Type', 'application/x-www-form-urlencoded'),
responseType: 'blob'
responseType: 'blob',
observe: 'response'
});

} catch (e) {
console.error("Download error:", e);
return observableThrowError(e);
Expand Down

0 comments on commit 1fe95ad

Please sign in to comment.