Skip to content

Commit 8b761dc

Browse files
committed
simpler multipart data
1 parent a314922 commit 8b761dc

File tree

1 file changed

+2
-3
lines changed
  • solga-client-ghcjs/src/Solga/Client

1 file changed

+2
-3
lines changed

solga-client-ghcjs/src/Solga/Client/GHCJS.hs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,6 @@ instance (Client next) => Client (WithIO next) where
226226
instance (Client next) => Client (ReqBodyMultipart a next) where
227227
type
228228
RequestData (ReqBodyMultipart a next) =
229-
WithData (a, a -> IO DOM.FormData) (RequestData next)
230-
performRequest _p Request{..} (WithData (x, f) perf) = do
231-
fd <- f x
229+
WithData DOM.FormData (RequestData next)
230+
performRequest _p Request{..} (WithData fd perf) =
232231
performRequest (Proxy @next) Request{reqBody = Just fd, ..} perf

0 commit comments

Comments
 (0)