Skip to content

Commit

Permalink
Merge PR #31
Browse files Browse the repository at this point in the history
  • Loading branch information
kazu-yamamoto committed Nov 29, 2021
2 parents d6ab3a8 + afd30c1 commit 2658f4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Network/HTTP2/Arch/Status.hs
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ fromStatus status = unsafeCreate 3 $ \p -> do
toStatus :: ByteString -> Maybe H.Status
toStatus bs = case C8.readInt bs of
Nothing -> Nothing
Just (code,_) -> Just $ H.mkStatus code "fixme"
Just (code,_) -> Just $ toEnum code
1 change: 1 addition & 0 deletions test/HTTP2/ServerSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ client0 sendRequest = do
let req = C.requestNoBody methodGet "/" []
sendRequest req $ \rsp -> do
C.responseStatus rsp `shouldBe` Just ok200
fmap statusMessage (C.responseStatus rsp) `shouldBe` Just "OK"

client1 :: C.Client ()
client1 sendRequest = do
Expand Down

0 comments on commit 2658f4d

Please sign in to comment.