on master help sign in
Revert "Add failing test case to demonstrate #644"

This reverts commit 661257ff6eaad454b83572604013f4998d5478a5. I don't know how this commit made it to master, but #644 was determined to be intentional behavior, so the failing test case should not be included.

commit508ee0145a2cdfa573b4c73963dc19ba74caa655 authorMichael Snoyman <michael@snoyman.com> dateTue 7 Nov 2017, 18:10 (9 years ago) parenta1cb17f
1 file changed−6
warp/test/RunSpec.hs−6
warp/test/RunSpec.hs−6
@@ -377,12 +377,6 @@ spec = do
377377 res <- sendGET $ "http://127.0.0.1:" ++ show port
378378 rspBody res `shouldBe` "HelloHelloHelloHello"
379379
380− it "file with non-200 status #644" $ do
381− let app _ f = f $ responseFile status404 [] "attic/test.txt" Nothing
382− withApp defaultSettings app $ \port -> do
383− res <- sendHEAD $ "http://127.0.0.1:" ++ show port
384− rspCode res `shouldBe` (4, 0, 4)
385−
386380 describe "head requests" $ do
387381 let fp = "test/head-response"
388382 let app req f =