Skip to content

Commit

Permalink
allow 202 result in put_attachment
Browse files Browse the repository at this point in the history
  • Loading branch information
lazedo committed Jan 5, 2017
1 parent 2f992c4 commit 290e16d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/couchbeam.erl
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ put_attachment(#db{server=Server, options=Opts}=Db, DocId, Name, Body,
QueryArgs),

case couchbeam_httpc:db_request(put, Url, FinalHeaders, Body, Opts,
[201]) of
[201, 202]) of
{ok, _, _, Ref} ->
JsonBody = couchbeam_httpc:json_body(Ref),
{[{<<"ok">>, true}|R]} = JsonBody,
Expand Down

0 comments on commit 290e16d

Please sign in to comment.