summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--http_prompt/cli.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/http_prompt/cli.py b/http_prompt/cli.py
index 821fcc4..b5d52a9 100644
--- a/http_prompt/cli.py
+++ b/http_prompt/cli.py
@@ -116,7 +116,7 @@ def cli(spec, env, url, http_options):
spec = json.loads(content)
except json.JSONDecodeError:
try:
- spec = yaml.load(content)
+ spec = yaml.safe_load(content)
except yaml.YAMLError:
click.secho("Warning: Specification file '%s' is neither valid JSON nor YAML" %
spec, err=True, fg='red')