about summary refs log tree commit diff
path: root/client/src/Utils.elm
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/Utils.elm')
-rw-r--r--client/src/Utils.elm5
1 files changed, 3 insertions, 2 deletions
diff --git a/client/src/Utils.elm b/client/src/Utils.elm
index 0f6c61ed286f..28f15fb5c101 100644
--- a/client/src/Utils.elm
+++ b/client/src/Utils.elm
@@ -62,17 +62,18 @@ postWithCredentials { url, body, expect } =
 
 deleteWithCredentials :
     { url : String
+    , body : Http.Body
     , expect : Http.Expect msg
     }
     -> Cmd msg
-deleteWithCredentials { url, expect } =
+deleteWithCredentials { url, body, expect } =
     Http.riskyRequest
         { url = url
         , headers = [ Http.header "Origin" Shared.clientOrigin ]
         , method = "DELETE"
         , timeout = Nothing
         , tracker = Nothing
-        , body = Http.emptyBody
+        , body = body
         , expect = expect
         }