diff --git a/src/couchbeam.erl b/src/couchbeam.erl index daf4970c..df984a81 100644 --- a/src/couchbeam.erl +++ b/src/couchbeam.erl @@ -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),