aboutsummaryrefslogtreecommitdiffstats
path: root/tests/zotapi.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/zotapi.rs')
-rw-r--r--tests/zotapi.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/zotapi.rs b/tests/zotapi.rs
index 9ad5cf9..1a81dc3 100644
--- a/tests/zotapi.rs
+++ b/tests/zotapi.rs
@@ -114,7 +114,7 @@ fn upload_item_with_media_file() {
"Content-Disposition: form-data; name=\"title\"\r\n" +
"\r\nA title\r\n" +
"--.+\r\n" +
- "Content-Disposition: form-data; name=\"files\"; filename=\"testfile.txt\"\r\n" +
+ "Content-Disposition: form-data; name=\"media\"; filename=\"testfile.txt\"\r\n" +
"Content-Type: text/plain\r\n" +
"\r\ntestfile contents\n" +
"\r\n--.+--\r\n"))
@@ -146,11 +146,11 @@ fn upload_item_with_two_files() {
"Content-Disposition: form-data; name=\"title\"\r\n" +
"\r\nA title\r\n" +
"--.+\r\n" +
- "Content-Disposition: form-data; name=\"files\"; filename=\"testfile.txt\"\r\n" +
+ "Content-Disposition: form-data; name=\"media\"; filename=\"testfile.txt\"\r\n" +
"Content-Type: text/plain\r\n" +
"\r\ntestfile contents\n" +
"\r\n--.+\r\n" +
- "Content-Disposition: form-data; name=\"files\"; filename=\"testfile.txt\"\r\n" +
+ "Content-Disposition: form-data; name=\"media\"; filename=\"testfile.txt\"\r\n" +
"Content-Type: text/plain\r\n" +
"\r\ntestfile contents\n" +
"\r\n--.+--\r\n"))