Skip to content

Commit 7168ba2

Browse files
committed
Fix Content-Type for odata.
1 parent f2f36d5 commit 7168ba2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

emulator.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,9 +390,10 @@ def get_odata():
390390

391391
odata_json = ""
392392

393-
if os.path.exists('Resources/odata/index.json'):
393+
if os.path.exists('Resources//odata//index.json'):
394394
# Use dynamic data source
395395
filename = 'Resources/odata/index.json'
396+
logging.info ('Resources path exists:', filename)
396397
else:
397398
# Use static mockup
398399
mockup_path = MOCKUPFOLDERS[0]
@@ -404,6 +405,7 @@ def get_odata():
404405
odata_json += line
405406

406407
resp = make_response(odata_json, 200)
408+
resp.headers['Content-Type'] = 'application/json'
407409
return resp
408410

409411
except Exception:

0 commit comments

Comments
 (0)