diff options
author | Adam Kocoloski <adam@cloudant.com> | 2012-06-13 12:57:34 -0400 |
---|---|---|
committer | Robert Newson <robert.newson@cloudant.com> | 2012-11-14 17:38:58 +0000 |
commit | f7adbbe008ec2c22d48f61876a159804c4772d2e (patch) | |
tree | 2f729300413983f9a76e6ea21326df64245d40b0 /apps/couch | |
parent | 5eb7447ad4be97f633cc42432059a67bafcf9009 (diff) |
Allow 202 as a valid status code
BugzID: 13940
Diffstat (limited to 'apps/couch')
-rw-r--r-- | apps/couch/src/couch_rep_httpc.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/couch/src/couch_rep_httpc.erl b/apps/couch/src/couch_rep_httpc.erl index e22c8f81..f15cba33 100644 --- a/apps/couch/src/couch_rep_httpc.erl +++ b/apps/couch/src/couch_rep_httpc.erl @@ -165,7 +165,7 @@ full_url(Req) -> process_response({ok, Status, Headers, Body}, Req) -> Code = list_to_integer(Status), - if Code =:= 200; Code =:= 201 -> + if Code =:= 200; Code =:= 201; Code =:= 202 -> ?JSON_DECODE(maybe_decompress(Headers, Body)); Code =:= 301; Code =:= 302 ; Code =:= 303 -> do_request(redirected_request(Code, Headers, Req)); |