diff options
author | 2020-10-07 13:51:14 +0200 | |
---|---|---|
committer | 2020-10-07 13:51:14 +0200 | |
commit | aee5dc5c1a62ba13c792028e9eea5886a680eb79 (patch) | |
tree | 1d821337a3f01b7b4374dae2662bb2420958b55b /sdnr/wt/odlux/framework/src/services | |
parent | d5bea98dfb5ff7dafb9adaecea53a4d6a9987102 (diff) |
ConfigApp bugfixes
fix remove button in lists and boolean filters not working, fix delay-period not configurable
Issue-ID: CCSDK-2878
Signed-off-by: Aijana Schumann <aijana.schumann@highstreet-technologies.com>
Change-Id: I49f03840de6092f9ac4641b7c98785b5feb760b4
Diffstat (limited to 'sdnr/wt/odlux/framework/src/services')
-rw-r--r-- | sdnr/wt/odlux/framework/src/services/restService.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sdnr/wt/odlux/framework/src/services/restService.ts b/sdnr/wt/odlux/framework/src/services/restService.ts index 19ef34f91..f05c7b89f 100644 --- a/sdnr/wt/odlux/framework/src/services/restService.ts +++ b/sdnr/wt/odlux/framework/src/services/restService.ts @@ -85,7 +85,7 @@ export async function requestRestExt<TData>(path: string = '', init: RequestInit }; } const contentType = fetchResult.headers.get("Content-Type") || fetchResult.headers.get("content-type"); - const isJson = contentType && contentType.toLowerCase().startsWith("application/json"); + const isJson = contentType && (contentType.toLowerCase().startsWith("application/json") || contentType.toLowerCase().startsWith("application/yang-data+json")); try { const data = (isJson ? await fetchResult.json() : await fetchResult.text()) as TData; return { |