diff options
author | Robert Newson <rnewson@apache.org> | 2023-05-04 10:39:52 +0100 |
---|---|---|
committer | Robert Newson <rnewson@apache.org> | 2023-05-09 15:15:25 +0100 |
commit | 039da4a8b7e69847802ca34901bd3af159347d36 (patch) | |
tree | 7abce2ab12ebc06e00375ab90dc20317fb9dff9e /test/elixir/test/attachments_test.exs | |
parent | 92c338a3a20e4b2c174a52e4783fef65601fbdee (diff) | |
download | couchdb-039da4a8b7e69847802ca34901bd3af159347d36.tar.gz |
remove Content-MD5 header support
Part of a series of changes to expunge MD5 entirely.
Diffstat (limited to 'test/elixir/test/attachments_test.exs')
-rw-r--r-- | test/elixir/test/attachments_test.exs | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/test/elixir/test/attachments_test.exs b/test/elixir/test/attachments_test.exs index f1dd3ef61..13a5c84f9 100644 --- a/test/elixir/test/attachments_test.exs +++ b/test/elixir/test/attachments_test.exs @@ -431,29 +431,6 @@ defmodule AttachmentsTest do end @tag :with_db - test "md5 header for attachments", context do - db_name = context[:db_name] - md5 = "MntvB0NYESObxH4VRDUycw==" - - bin_data = "foo bar" - - resp = - Couch.put( - "/#{db_name}/bin_doc8/attachment.txt", - body: bin_data, - headers: ["Content-Type": "application/octet-stream", "Content-MD5": md5], - query: %{w: 3} - ) - - assert resp.status_code in [201, 202] - assert resp.body["ok"] - - resp = Couch.get("/#{db_name}/bin_doc8/attachment.txt") - assert resp.status_code == 200 - assert md5 == resp.headers["Content-MD5"] - end - - @tag :with_db test "attachment via multipart/form-data", context do db_name = context[:db_name] |