Skip to content

Commit 3ca5432

Browse files
committed
Fix bug with multiple answer choices
1 parent 8edbf2d commit 3ca5432

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/HW/S3.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ makeObjectKey = do
4343
toRqBody :: LazyByteString.ByteString -> Aws.RqBody
4444
toRqBody = Aws.toBody
4545
. Aeson.encode
46-
. Map.fromList
46+
. Map.fromListWith (<>)
4747
. Maybe.mapMaybe (\ (key, maybeValue) -> do
4848
value <- maybeValue
4949
Monad.guard . not $ Text.null value
50-
pure (key, value))
50+
pure (key, [value]))
5151
. Http.parseQueryText
5252
. LazyByteString.toStrict

0 commit comments

Comments
 (0)