diff --git a/src/jesse_database.erl b/src/jesse_database.erl index 0a0c3079..f4a3e941 100644 --- a/src/jesse_database.erl +++ b/src/jesse_database.erl @@ -316,7 +316,10 @@ add_file_uri(Key0) -> add_http_uri(Key0) -> Key = jesse_state:canonical_path(Key0, Key0), HttpOptions = [{ssl, [{verify, verify_none}]}], - {ok, Response} = httpc:request(get, {Key, []}, HttpOptions, [{body_format, binary}]), + {ok, Response} = httpc:request( get + , {Key, []} + , HttpOptions + , [{body_format, binary}]), {{_Line, 200, _}, Headers, SchemaBin} = Response, Schema = jsx:decode(SchemaBin, [{return_maps, false}]), SchemaInfos = [{Key, get_http_mtime(Headers), Schema}], diff --git a/test/jesse_tests_util.erl b/test/jesse_tests_util.erl index f3b4d0a4..8bc521b0 100644 --- a/test/jesse_tests_util.erl +++ b/test/jesse_tests_util.erl @@ -151,6 +151,9 @@ get_path(Key, Schema) -> load_schema(URI) -> HttpOptions = [{ssl, [{verify, verify_none}]}], - {ok, Response} = httpc:request(get, {URI, []}, HttpOptions, [{body_format, binary}]), + {ok, Response} = httpc:request( get + , {URI, []} + , HttpOptions + , [{body_format, binary}]), {{_Line, 200, _}, _Headers, Body} = Response, jsx:decode(Body, [{return_maps, false}]).