diff --git a/src/ddb.erl b/src/ddb.erl index 7c20dfd..6d5cc05 100644 --- a/src/ddb.erl +++ b/src/ddb.erl @@ -381,7 +381,7 @@ request(Target, JSON) -> lager:debug("request: json = ~p", [Body]), Headers = headers(Target, Body), Opts = [{'response_format', 'binary'}], - F = fun() -> ibrowse:request(?DDB_ENDPOINT, [{'Content-type', ?CONTENT_TYPE} | Headers], 'post', Body, Opts) end, + F = fun() -> ibrowse:send_req(?DDB_ENDPOINT, [{'Content-type', ?CONTENT_TYPE} | Headers], 'post', Body, Opts) end, ddb_aws:retry(F, ?MAX_RETRIES, fun jsx:json_to_term/1). -spec headers(string(), binary()) -> proplists:proplist().