Skip to content

Commit

Permalink
update to latest ibrowse
Browse files Browse the repository at this point in the history
  • Loading branch information
joelreymont committed Apr 10, 2012
1 parent 3dbe0f0 commit abd249f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ddb.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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().
Expand Down

0 comments on commit abd249f

Please sign in to comment.