fix: delete file request

This commit is contained in:
Desmond
2024-05-27 14:46:26 +08:00
parent 3f49b5a4ab
commit 70fea6c6b6
2 changed files with 4 additions and 7 deletions

View File

@@ -244,19 +244,16 @@ Rule everything\n\n\r\n\
(progn
(should
(equal
(khoj--render-update-files-as-request-body (list upgrade-file act-file "/tmp/deleted-file.org") "khoj")
(khoj--render-delete-files-as-request-body (list upgrade-file act-file "/tmp/deleted-file.org") "khoj")
(format
"\n--khoj\r\n\
Content-Disposition: form-data; name=\"files\"; filename=\"%s\"\r\n\
Content-Type: text/org\r\n\r\n\
# Become God\n\
## Upgrade\n\n\
Penance to Immortality\n\n\r
\r
--khoj\r\n\
Content-Disposition: form-data; name=\"files\"; filename=\"%s\"\r\n\
Content-Type: text/org\r\n\r\n\
## Act\n\n\
Rule everything\n\n\r
\r
--khoj\r\n\
Content-Disposition: form-data; name=\"files\"; filename=\"%s\"\r\n\
Content-Type: text/org\r\n\r\n\