Skip to content

Commit

Permalink
_view_cleanup expect content-type header
Browse files Browse the repository at this point in the history
  • Loading branch information
icehess committed Sep 1, 2017
1 parent e0c7c4c commit bb6a3e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/couchbeam.erl
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,8 @@ view_cleanup(#db{server=Server, name=DbName, options=Opts}) ->
Url = hackney_url:make_url(couchbeam_httpc:server_url(Server),
[DbName, <<"_view_cleanup">>],
[]),
Resp = couchbeam_httpc:db_request(post, Url, [], <<>>, Opts, [200]),
Headers = [{<<"Content-Type">>, <<"application/json">>}],
Resp = couchbeam_httpc:db_request(post, Url, Headers, <<>>, Opts, [200]),
case Resp of
{ok, _, _, Ref} ->
catch hackney:skip_body(Ref),
Expand Down

0 comments on commit bb6a3e5

Please sign in to comment.