We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2f36d5 commit 7168ba2Copy full SHA for 7168ba2
1 file changed
emulator.py
@@ -390,9 +390,10 @@ def get_odata():
390
391
odata_json = ""
392
393
- if os.path.exists('Resources/odata/index.json'):
+ if os.path.exists('Resources//odata//index.json'):
394
# Use dynamic data source
395
filename = 'Resources/odata/index.json'
396
+ logging.info ('Resources path exists:', filename)
397
else:
398
# Use static mockup
399
mockup_path = MOCKUPFOLDERS[0]
@@ -404,6 +405,7 @@ def get_odata():
404
405
odata_json += line
406
407
resp = make_response(odata_json, 200)
408
+ resp.headers['Content-Type'] = 'application/json'
409
return resp
410
411
except Exception:
0 commit comments