Skip to content

Commit

Permalink
weird matching removed
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasArts committed Mar 8, 2023
1 parent b641ea7 commit 4fd3ffa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/riak_kv_wm_object.erl
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ extract_index_fields(RD) ->
content_types_provided(RD, Ctx=#ctx{method=Method, ctype=ContentType})
when Method =:= 'PUT'; Method =:= 'POST' ->
{[{ContentType, produce_doc_body}], RD, Ctx};
content_types_provided(RD, Ctx=#ctx{method=Method}=Ctx)
content_types_provided(RD, Ctx=#ctx{method=Method})
when Method =:= 'DELETE' ->
{[{"text/html", to_html}], RD, Ctx};
content_types_provided(RD, Ctx0) ->
Expand Down Expand Up @@ -662,7 +662,7 @@ charsets_provided(RD, Ctx=#ctx{method=Method})
Charset ->
{[{Charset, fun(X) -> X end}], RD, Ctx}
end;
charsets_provided(RD, Ctx=#ctx{method=Method}=Ctx)
charsets_provided(RD, Ctx=#ctx{method=Method})
when Method =:= 'DELETE' ->
{no_charset, RD, Ctx};
charsets_provided(RD, Ctx0) ->
Expand Down

0 comments on commit 4fd3ffa

Please sign in to comment.