@@ -104,38 +104,38 @@ caseParseRequestBody = do
104104 result3' `shouldBe` expected3
105105
106106 it "parsing with memory limit" $ do
107− SRequest req4 bod4 <- toRequest'' ctype3 content3
107+ SRequest req4 _bod4 <- toRequest'' ctype3 content3
108108 result4' <- parseRequestBodyEx ( setMaxRequestNumFiles 1 $ setMaxRequestKeyLength 14 def ) lbsBackEnd req4
109109 result4' `shouldBe` expected3
110110
111111 it "exceeding number of files" $ do
112− SRequest req4 bod4 <- toRequest'' ctype3 content3
112+ SRequest req4 _bod4 <- toRequest'' ctype3 content3
113113 (parseRequestBodyEx ( setMaxRequestNumFiles 0 def ) lbsBackEnd req4) `shouldThrow` anyErrorCall
114114
115115 it "exceeding parameter length" $ do
116− SRequest req4 bod4 <- toRequest'' ctype3 content3
116+ SRequest req4 _bod4 <- toRequest'' ctype3 content3
117117 (parseRequestBodyEx ( setMaxRequestKeyLength 2 def ) lbsBackEnd req4) `shouldThrow` anyErrorCall
118118
119119 it "exceeding file size" $ do
120− SRequest req4 bod4 <- toRequest'' ctype3 content3
120+ SRequest req4 _bod4 <- toRequest'' ctype3 content3
121121 (parseRequestBodyEx ( setMaxRequestFileSize 2 def ) lbsBackEnd req4) `shouldThrow` anyErrorCall
122122
123123 it "exceeding total file size" $ do
124− SRequest req4 bod4 <- toRequest'' ctype3 content3
124+ SRequest req4 _bod4 <- toRequest'' ctype3 content3
125125 (parseRequestBodyEx ( setMaxRequestFilesSize 20 def ) lbsBackEnd req4) `shouldThrow` anyErrorCall
126− SRequest req5 bod5 <- toRequest'' ctype3 content5
126+ SRequest req5 _bod5 <- toRequest'' ctype3 content5
127127 (parseRequestBodyEx ( setMaxRequestFilesSize 20 def ) lbsBackEnd req5) `shouldThrow` anyErrorCall
128128
129129 it "exceeding max parm value size" $ do
130− SRequest req4 bod4 <- toRequest'' ctype2 content2
130+ SRequest req4 _bod4 <- toRequest'' ctype2 content2
131131 (parseRequestBodyEx ( setMaxRequestParmsSize 10 def ) lbsBackEnd req4) `shouldThrow` anyErrorCall
132132
133133 it "exceeding max header lines" $ do
134− SRequest req4 bod4 <- toRequest'' ctype2 content2
134+ SRequest req4 _bod4 <- toRequest'' ctype2 content2
135135 (parseRequestBodyEx ( setMaxHeaderLines 1 def ) lbsBackEnd req4) `shouldThrow` anyErrorCall
136136
137137 it "exceeding header line size" $ do
138− SRequest req4 bod4 <- toRequest'' ctype2 content4
138+ SRequest req4 _bod4 <- toRequest'' ctype3 content4
139139 (parseRequestBodyEx ( setMaxHeaderLineLength 8190 def ) lbsBackEnd req4) `shouldThrow` anyErrorCall
140140
141141 it "Testing parseRequestBodyEx with application/x-www-form-urlencoded" $ do
@@ -177,13 +177,14 @@ caseParseRequestBody = do
177177 <> "------WebKitFormBoundaryB1pWXPZ6lNr8RiLh--\r\n"
178178 content4 =
179179 "------WebKitFormBoundaryB1pWXPZ6lNr8RiLh\r\n"
180− <> "Content-Disposition: form-data; name=\"yaml\"; filename=\"README\"\r\n"
180+ <> "Content-Disposition: form-data; name=\"alb\"; filename=\"README\"\r\n"
181181 <> "Content-Type: application/octet-stream\r\n\r\n"
182− <> "Photo blog using Hack.\n\r\n"
182+ <> "Photo blog using Hack.\r\n\r\n"
183183 <> "------WebKitFormBoundaryB1pWXPZ6lNr8RiLh\r\n"
184− <> "Content-Disposition: form-data; name=\"bla\"; filename=\"riedmie\"\r\n"
185− <> "Content-Type: application/octet-stream=TOOLONG=" <> S8.replicate 8192 '=' <> "\r\n\r\n"
186− <> "Photo blog using Hack.\n\r\n"
184+ <> "Content-Disposition: form-data; name=\"bla\"; filename=\"riedmi"
185+ <> S8.replicate 8190 'e' <> "\"\r\n"
186+ <> "Content-Type: application/octet-stream\r\n\r\n"
187+ <> "Photo blog using Hack.\r\n\r\n"
187188 <> "------WebKitFormBoundaryB1pWXPZ6lNr8RiLh--\r\n"
188189 content5 =
189190 "------WebKitFormBoundaryB1pWXPZ6lNr8RiLh\r\n"