Fix headers
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
This commit is contained in:
parent
cb222770d8
commit
bb71c043a1
@ -63,7 +63,7 @@ export class ItemService {
|
|||||||
|
|
||||||
getItemData(code: string,start?:number,size?:number): Observable<ArrayBuffer> {
|
getItemData(code: string,start?:number,size?:number): Observable<ArrayBuffer> {
|
||||||
var headers = new HttpHeaders();
|
var headers = new HttpHeaders();
|
||||||
if(start && size) headers=headers.append("Range",`bytes=${start}-${size-1}`);
|
if(start && size) headers=headers.set("Range",`bytes=${start}-${size-1}`);
|
||||||
return this.httpClient.get(`${this.ApiEndpoint()}/api/v1/items/${code}/data`,{ headers: headers,responseType: 'arraybuffer' });
|
return this.httpClient.get(`${this.ApiEndpoint()}/api/v1/items/${code}/data`,{ headers: headers,responseType: 'arraybuffer' });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user