Fix headers
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good

This commit is contained in:
Willem Dantuma 2021-02-02 17:25:26 +01:00
parent cb222770d8
commit bb71c043a1

View File

@ -63,7 +63,7 @@ export class ItemService {
getItemData(code: string,start?:number,size?:number): Observable<ArrayBuffer> {
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' });
}